aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-02 19:22:42 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:41 -0700
commit1ff960b29aace99f69979fc78cf5ef204e1262a6 (patch)
treeaf3616af10dc862638c0dc51717358c7f7f0159d /test-parsing.c
parentNow that BITS_IN_XXXX aren't defined contstants any more, (diff)
downloadsparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.tar.gz
sparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.tar.bz2
sparse-1ff960b29aace99f69979fc78cf5ef204e1262a6.zip
Initialize C type system after parsing the command line arguments.
This makes "-m64" actually work.
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 e413448..c01e21b 100644
--- a/test-parsing.c
+++ b/test-parsing.c
@@ -51,6 +51,9 @@ int main(int argc, char **argv)
filename = arg;
}
+ // Initialize type system
+ init_ctype();
+
fd = open(filename, O_RDONLY);
if (fd < 0)
die("No such file: %s", argv[1]);