aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-23 23:16:28 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:39 -0700
commitf611dbc59b4f3f00a233ba89e268ab4845c4dde0 (patch)
tree97893ce330d6eda6526b9b19a18657efad60fd44 /test-parsing.c
parentOops, I got the "typeof" parsing wrong. It always needs parentheses (diff)
downloadsparse-f611dbc59b4f3f00a233ba89e268ab4845c4dde0.tar.gz
sparse-f611dbc59b4f3f00a233ba89e268ab4845c4dde0.tar.bz2
sparse-f611dbc59b4f3f00a233ba89e268ab4845c4dde0.zip
Like other type definitions, typedefs too can have multiple
type entries, ie typedef struct type type_t, *typep_t; and we shouldn't just expect one.
Diffstat (limited to 'test-parsing.c')
-rw-r--r--test-parsing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test-parsing.c b/test-parsing.c
index ad7ba41..ce7ca15 100644
--- a/test-parsing.c
+++ b/test-parsing.c
@@ -23,6 +23,7 @@ char *includepath[] = {
#if 1
"/home/torvalds/v2.5/linux/include/",
"/home/torvalds/v2.5/linux/include/asm-i386/mach-default/",
+ "/home/torvalds/v2.5/linux/drivers/scsi/",
#else
"/usr/include/",
"/usr/local/include/",
@@ -69,9 +70,11 @@ int main(int argc, char **argv)
// Parse the resulting C code
translation_unit(token, &list);
+#if 0
// Show the end result.
show_symbol_list(list, "\n\n");
printf("\n\n");
+#endif
// And show the allocation statistics
show_ident_alloc();