diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-15 13:43:32 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-15 13:43:32 +0000 |
commit | aecda0d63740bf543c769e6fed70a34cc7f052e3 (patch) | |
tree | 011c105664290fc65aee6e952c836e52aa84f722 /gcc/alloc-pool.c | |
parent | e2ee731bf11cf905827479625d69351f71201055 (diff) | |
download | gcc-aecda0d63740bf543c769e6fed70a34cc7f052e3.tar.gz |
* alloc-pool.c: Convert to ISO C90 prototypes.
* alloc-pool.h: Likewise.
* alias.c: Likewise.
* attribs.c: Likewise.
* bb-reorder.c: Likewise.
* bitmap.h: Likewise.
* bitmap.c: Likewise.
* builtins.c: Likewise.
* tree.h: Convert prototypes of attribs.c to ISO C90.
* basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
* rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
* expr.h: Convert prototypes of builtins.c to ISO C90.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67975 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alloc-pool.c')
-rw-r--r-- | gcc/alloc-pool.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/gcc/alloc-pool.c b/gcc/alloc-pool.c index 87b05ccd7f3..e247b141f76 100644 --- a/gcc/alloc-pool.c +++ b/gcc/alloc-pool.c @@ -30,7 +30,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA special abort includes one or both. toplev.h gets too few files, system.h gets too many. */ -extern void fancy_abort PARAMS ((const char *, int, const char *)) +extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; #define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__) @@ -80,10 +80,7 @@ static ALLOC_POOL_ID_TYPE last_id; allocate. */ alloc_pool -create_alloc_pool (name, size, num) - const char *name; - size_t size; - size_t num; +create_alloc_pool (const char *name, size_t size, size_t num) { alloc_pool pool; size_t pool_size, header_size; @@ -143,8 +140,7 @@ create_alloc_pool (name, size, num) /* Free all memory allocated for the given memory pool. */ void -free_alloc_pool (pool) - alloc_pool pool; +free_alloc_pool (alloc_pool pool) { alloc_pool_list block, next_block; @@ -166,8 +162,7 @@ free_alloc_pool (pool) /* Allocates one element from the pool specified. */ void * -pool_alloc (pool) - alloc_pool pool; +pool_alloc (alloc_pool pool) { alloc_pool_list header; char *block; @@ -225,9 +220,7 @@ pool_alloc (pool) /* Puts PTR back on POOL's free list. */ void -pool_free (pool, ptr) - alloc_pool pool; - void *ptr; +pool_free (alloc_pool pool, void *ptr) { alloc_pool_list header; |