diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-02 12:08:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:25 -0700 |
commit | 2035e136c41f24b9b991917fd0ead512e4fd3fd8 (patch) | |
tree | 9151d61dd60d8f1d8087e9d97b62b89e1484ccfe /lib.h | |
parent | Move declaration of "die()" to lib.h and check its format. (diff) | |
download | sparse-2035e136c41f24b9b991917fd0ead512e4fd3fd8.tar.gz sparse-2035e136c41f24b9b991917fd0ead512e4fd3fd8.tar.bz2 sparse-2035e136c41f24b9b991917fd0ead512e4fd3fd8.zip |
Split out the blob allocator from lib.c into allocate.c.
It's disgusting how intimate lib.c is with all the types,
and this is slowly trying to split things up a bit. Now
the intimate part is in allocate.c, but maybe we can get
to the point where each allocation user just declares its
own allocation strategy, and just uses the generic routines
in allocate.c
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -75,29 +75,6 @@ extern void error(struct position, const char *, ...) FORMAT_ATTR(2); extern void error_die(struct position, const char *, ...) FORMAT_ATTR(2); #undef FORMAT_ATTR -#define __DECLARE_ALLOCATOR(type, x) \ - extern type *__alloc_##x(int); \ - extern void __free_##x(type *); \ - extern void show_##x##_alloc(void); \ - extern void clear_##x##_alloc(void); -#define DECLARE_ALLOCATOR(x) __DECLARE_ALLOCATOR(struct x, x) - -DECLARE_ALLOCATOR(ident); -DECLARE_ALLOCATOR(token); -DECLARE_ALLOCATOR(symbol); -DECLARE_ALLOCATOR(expression); -DECLARE_ALLOCATOR(statement); -DECLARE_ALLOCATOR(string); -DECLARE_ALLOCATOR(scope); -__DECLARE_ALLOCATOR(void, bytes); -DECLARE_ALLOCATOR(basic_block); -DECLARE_ALLOCATOR(entrypoint); -DECLARE_ALLOCATOR(instruction); -DECLARE_ALLOCATOR(multijmp); -DECLARE_ALLOCATOR(phi); -DECLARE_ALLOCATOR(pseudo); - - #define LIST_NODE_NR (29) struct ptr_list { |