aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-26 16:45:07 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:58 -0700
commit6e78e867f10a022b3766339140fc349455db8ab2 (patch)
tree2f0124ccdf3b97fcb5ccb2eaae9a5d1d708815cf /compile-i386.c
parentWho says you can't do type-safe function-overloading in C? (diff)
downloadsparse-6e78e867f10a022b3766339140fc349455db8ab2.tar.gz
sparse-6e78e867f10a022b3766339140fc349455db8ab2.tar.bz2
sparse-6e78e867f10a022b3766339140fc349455db8ab2.zip
Make compile-i386.c get with the program. We don't just use
untyped "struct ptr_list **", we use properly typed ones.
Diffstat (limited to 'compile-i386.c')
-rw-r--r--compile-i386.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/compile-i386.c b/compile-i386.c
index c22b11e..eedd65b 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -54,12 +54,18 @@ struct loop_stack {
struct loop_stack *next;
};
+struct atom;
+struct storage;
+DECLARE_PTR_LIST(str_list, struct atom);
+DECLARE_PTR_LIST(atom_list, struct atom);
+DECLARE_PTR_LIST(storage_list, struct storage);
+
struct function {
int stack_size;
int pseudo_nr;
- struct ptr_list *pseudo_list;
- struct ptr_list *atom_list;
- struct ptr_list *str_list;
+ struct storage_list *pseudo_list;
+ struct atom_list *atom_list;
+ struct str_list *str_list;
struct loop_stack *loop_stack;
struct symbol **argv;
unsigned int argc;