|
@@ -164,17 +164,18 @@ struct obstack *_obstack;
|
|
|
allocation fails. */
|
|
|
|
|
|
int
|
|
|
-_obstack_begin (h, size, alignment, chunkfun, freefun)
|
|
|
- struct obstack *h;
|
|
|
- int size;
|
|
|
- int alignment;
|
|
|
+_obstack_begin (
|
|
|
+ struct obstack *h,
|
|
|
+ int size,
|
|
|
+ int alignment,
|
|
|
# if defined __STDC__ && __STDC__
|
|
|
- POINTER (*chunkfun) (long);
|
|
|
- void (*freefun) (void *);
|
|
|
+ POINTER (*chunkfun) (long),
|
|
|
+ void (*freefun) (void *)
|
|
|
# else
|
|
|
- POINTER (*chunkfun) ();
|
|
|
- void (*freefun) ();
|
|
|
+ POINTER (*chunkfun) (),
|
|
|
+ void (*freefun) ()
|
|
|
# endif
|
|
|
+ )
|
|
|
{
|
|
|
register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
|
|
@@ -222,18 +223,18 @@ _obstack_begin (h, size, alignment, chunkfun, freefun)
|
|
|
}
|
|
|
|
|
|
int
|
|
|
-_obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
|
|
|
- struct obstack *h;
|
|
|
- int size;
|
|
|
- int alignment;
|
|
|
+_obstack_begin_1 (
|
|
|
+ struct obstack *h,
|
|
|
+ int size,
|
|
|
+ int alignment,
|
|
|
# if defined __STDC__ && __STDC__
|
|
|
- POINTER (*chunkfun) (POINTER, long);
|
|
|
- void (*freefun) (POINTER, POINTER);
|
|
|
+ POINTER (*chunkfun) (POINTER, long),
|
|
|
+ void (*freefun) (POINTER, POINTER),
|
|
|
# else
|
|
|
- POINTER (*chunkfun) ();
|
|
|
- void (*freefun) ();
|
|
|
+ POINTER (*chunkfun) (),
|
|
|
+ void (*freefun) (),
|
|
|
# endif
|
|
|
- POINTER arg;
|
|
|
+ POINTER arg)
|
|
|
{
|
|
|
register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
|
|
@@ -288,9 +289,9 @@ _obstack_begin_1 (h, size, alignment, chunkfun, freefun, arg)
|
|
|
to the beginning of the new one. */
|
|
|
|
|
|
void
|
|
|
-_obstack_newchunk (h, length)
|
|
|
- struct obstack *h;
|
|
|
- int length;
|
|
|
+_obstack_newchunk (
|
|
|
+ struct obstack *h,
|
|
|
+ int length)
|
|
|
{
|
|
|
register struct _obstack_chunk *old_chunk = h->chunk;
|
|
|
register struct _obstack_chunk *new_chunk;
|
|
@@ -364,9 +365,9 @@ int _obstack_allocated_p (struct obstack *h, POINTER obj);
|
|
|
# endif
|
|
|
|
|
|
int
|
|
|
-_obstack_allocated_p (h, obj)
|
|
|
- struct obstack *h;
|
|
|
- POINTER obj;
|
|
|
+_obstack_allocated_p (
|
|
|
+ struct obstack *h,
|
|
|
+ POINTER obj)
|
|
|
{
|
|
|
register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
@@ -392,9 +393,9 @@ _obstack_allocated_p (h, obj)
|
|
|
This is the first one, called from non-ANSI code. */
|
|
|
|
|
|
void
|
|
|
-_obstack_free (h, obj)
|
|
|
- struct obstack *h;
|
|
|
- POINTER obj;
|
|
|
+_obstack_free (
|
|
|
+ struct obstack *h,
|
|
|
+ POINTER obj)
|
|
|
{
|
|
|
register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
@@ -426,9 +427,9 @@ _obstack_free (h, obj)
|
|
|
/* This function is used from ANSI code. */
|
|
|
|
|
|
void
|
|
|
-obstack_free (h, obj)
|
|
|
- struct obstack *h;
|
|
|
- POINTER obj;
|
|
|
+obstack_free (
|
|
|
+ struct obstack *h,
|
|
|
+ POINTER obj)
|
|
|
{
|
|
|
register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
@@ -458,8 +459,8 @@ obstack_free (h, obj)
|
|
|
}
|
|
|
|
|
|
int
|
|
|
-_obstack_memory_used (h)
|
|
|
- struct obstack *h;
|
|
|
+_obstack_memory_used (
|
|
|
+ struct obstack *h)
|
|
|
{
|
|
|
register struct _obstack_chunk* lp;
|
|
|
register int nbytes = 0;
|
|
@@ -490,7 +491,7 @@ _obstack_memory_used (h)
|
|
|
|
|
|
static void
|
|
|
attribute_noreturn
|
|
|
-print_and_abort ()
|
|
|
+print_and_abort (void)
|
|
|
{
|
|
|
/* Don't change any of these strings. Yes, it would be possible to add
|
|
|
the newline to the string and use fputs or so. But this must not
|