summaryrefslogtreecommitdiffhomepage
path: root/ir/obstack
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2010-02-14 15:38:55 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2010-02-14 15:38:55 +0100
commitabbf9492df1993d211412ba520feb81de0688c2a (patch)
tree9ffd590449a92e51ccd6da53e740c1286910e7a0 /ir/obstack
parent41aa4c0d2fa9c620f498e03547f1b13dd71ad91f (diff)
Some more cleanup: Put the return type and other specifiers on the same line as the declarator of a function declaration.
[r27155]
Diffstat (limited to 'ir/obstack')
-rw-r--r--ir/obstack/obstack.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/ir/obstack/obstack.c b/ir/obstack/obstack.c
index 4f091ff..4cdd480 100644
--- a/ir/obstack/obstack.c
+++ b/ir/obstack/obstack.c
@@ -101,11 +101,8 @@ int obstack_exit_failure = EXIT_FAILURE;
Return nonzero if successful, calls obstack_alloc_failed_handler if
allocation fails. */
-int
-_obstack_begin (struct obstack *h,
- int size, int alignment,
- void *(*chunkfun) (long),
- void (*freefun) (void *))
+int _obstack_begin(struct obstack *h, int size, int alignment,
+ void *(*chunkfun)(long), void (*freefun)(void *))
{
register struct _obstack_chunk *chunk; /* points to new chunk */
@@ -148,11 +145,9 @@ _obstack_begin (struct obstack *h,
return 1;
}
-int
-_obstack_begin_1 (struct obstack *h, int size, int alignment,
- void *(*chunkfun) (void *, long),
- void (*freefun) (void *, void *),
- void *arg)
+int _obstack_begin_1(struct obstack *h, int size, int alignment,
+ void *(*chunkfun) (void *, long),
+ void (*freefun) (void *, void *), void *arg)
{
register struct _obstack_chunk *chunk; /* points to new chunk */
@@ -202,8 +197,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
Copies any partial object from the end of the old chunk
to the beginning of the new one. */
-void
-_obstack_newchunk (struct obstack *h, int length)
+void _obstack_newchunk(struct obstack *h, int length)
{
register struct _obstack_chunk *old_chunk = h->chunk;
register struct _obstack_chunk *new_chunk;
@@ -276,8 +270,7 @@ _obstack_newchunk (struct obstack *h, int length)
obstack.h because it is just for debugging. */
int _obstack_allocated_p (struct obstack *h, void *obj);
-int
-_obstack_allocated_p (struct obstack *h, void *obj)
+int _obstack_allocated_p(struct obstack *h, void *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 */
@@ -299,8 +292,7 @@ _obstack_allocated_p (struct obstack *h, void *obj)
# undef obstack_free
-void
-obstack_free (struct obstack *h, void *obj)
+void obstack_free(struct obstack *h, void *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 */
@@ -329,8 +321,7 @@ obstack_free (struct obstack *h, void *obj)
abort ();
}
-int
-_obstack_memory_used (struct obstack *h)
+int _obstack_memory_used(struct obstack *h)
{
register struct _obstack_chunk* lp;
register int nbytes = 0;
@@ -342,9 +333,7 @@ _obstack_memory_used (struct obstack *h)
return nbytes;
}
-static void
-__attribute__ ((noreturn))
-print_and_abort (void)
+static void __attribute__((noreturn)) 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