db_info: remove unused print
[smatch.git] / test-lexing.c
blobf4639ecfc793c806bc057dfb0ea03ff91e72b1fe
1 /*
2 * Example test program that just uses the tokenization and
3 * preprocessing phases, and prints out the results.
5 * Copyright (C) 2003 Transmeta Corp.
6 * 2003 Linus Torvalds
8 * Licensed under the Open Software License version 1.1
9 */
10 #include <stdarg.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include <string.h>
14 #include <ctype.h>
15 #include <unistd.h>
16 #include <fcntl.h>
18 #include "token.h"
19 #include "symbol.h"
21 int main(int argc, char **argv)
23 struct string_list *filelist = NULL;
24 char *file;
26 preprocess_only = 1;
27 sparse_initialize(argc, argv, &filelist);
28 FOR_EACH_PTR_NOTAG(filelist, file) {
29 sparse(file);
30 } END_FOR_EACH_PTR_NOTAG(file);
31 show_identifier_stats();
32 return 0;