aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-13 18:10:50 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:15 -0700
commita9400ca17ec93398a39a69079f10f429d37de18b (patch)
tree2c721188234b441b53f7f15b8ad01168d1c14249 /test-lexing.c
parentMark local parsing functions 'static'. (diff)
downloadsparse-a9400ca17ec93398a39a69079f10f429d37de18b.tar.gz
sparse-a9400ca17ec93398a39a69079f10f429d37de18b.tar.bz2
sparse-a9400ca17ec93398a39a69079f10f429d37de18b.zip
Start handling minimal semantic information, needed for types.
This adds a layer of symbol information on top of the raw tokens.
Diffstat (limited to 'test-lexing.c')
-rw-r--r--test-lexing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c
index 9db756a..007f404 100644
--- a/test-lexing.c
+++ b/test-lexing.c
@@ -5,6 +5,7 @@
#include <ctype.h>
#include <unistd.h>
#include <fcntl.h>
+
#include "token.h"
void callback(struct token *token)
@@ -20,6 +21,7 @@ int main(int argc, char **argv)
if (fd < 0)
die("No such file: %s", argv[1]);
+
token = tokenize(argv[1], fd);
line = token->line;
while (token) {