diff options
author | thegeorg <[email protected]> | 2024-06-09 16:27:06 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2024-06-09 16:36:11 +0300 |
commit | dc2056233ab4b16a84dcea43f683eaa0df0a720a (patch) | |
tree | 1c846583e9a458e31f4d4b37c60b5e2dfba5eb97 /contrib/tools/bison/lib/obstack.c | |
parent | 9d3d6bc09cab4e631a4babeefd81a1d194867658 (diff) |
contrib/tools/bison: Revert some harmless patches
7ba13f28ff2841bd4468387feaa6536b3e372bde
Diffstat (limited to 'contrib/tools/bison/lib/obstack.c')
-rw-r--r-- | contrib/tools/bison/lib/obstack.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/tools/bison/lib/obstack.c b/contrib/tools/bison/lib/obstack.c index 9b2883e4ac6..d915449defb 100644 --- a/contrib/tools/bison/lib/obstack.c +++ b/contrib/tools/bison/lib/obstack.c @@ -143,7 +143,7 @@ _obstack_begin (struct obstack *h, void *(*chunkfun) (long), void (*freefun) (void *)) { - struct _obstack_chunk *chunk; /* points to new chunk */ + register struct _obstack_chunk *chunk; /* points to new chunk */ if (alignment == 0) alignment = DEFAULT_ALIGNMENT; @@ -190,7 +190,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment, void (*freefun) (void *, void *), void *arg) { - struct _obstack_chunk *chunk; /* points to new chunk */ + register struct _obstack_chunk *chunk; /* points to new chunk */ if (alignment == 0) alignment = DEFAULT_ALIGNMENT; @@ -241,11 +241,11 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment, void _obstack_newchunk (struct obstack *h, int length) { - struct _obstack_chunk *old_chunk = h->chunk; - struct _obstack_chunk *new_chunk; - long new_size; - long obj_size = h->next_free - h->object_base; - long i; + register struct _obstack_chunk *old_chunk = h->chunk; + register struct _obstack_chunk *new_chunk; + register long new_size; + register long obj_size = h->next_free - h->object_base; + register long i; long already; char *object_base; @@ -318,8 +318,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj); int _obstack_allocated_p (struct obstack *h, void *obj) { - struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = (h)->chunk; /* We use >= rather than > since the object cannot be exactly at @@ -341,8 +341,8 @@ _obstack_allocated_p (struct obstack *h, void *obj) void __obstack_free (struct obstack *h, void *obj) { - struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ - struct _obstack_chunk *plp; /* point to previous chunk if any */ + register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ + register struct _obstack_chunk *plp; /* point to previous chunk if any */ lp = h->chunk; /* We use >= because there cannot be an object at the beginning of a chunk. @@ -377,8 +377,8 @@ strong_alias (obstack_free, _obstack_free) int _obstack_memory_used (struct obstack *h) { - struct _obstack_chunk* lp; - int nbytes = 0; + register struct _obstack_chunk* lp; + register int nbytes = 0; for (lp = h->chunk; lp != 0; lp = lp->prev) { |