2 * Example trivial client program that uses the sparse library
3 * to tokenize, pre-process and parse a C file, and prints out
6 * Copyright (C) 2003 Transmeta Corp.
7 * 2003-2004 Linus Torvalds
9 * Licensed under the Open Software License version 1.1
23 #include "expression.h"
24 #include "linearize.h"
26 static void emit_entrypoint(struct entrypoint
*ep
)
31 static void emit_symbol(struct symbol
*sym
)
33 struct entrypoint
*ep
;
34 ep
= linearize_symbol(sym
);
39 static void emit_symbol_list(struct symbol_list
*list
)
43 FOR_EACH_PTR(list
, sym
) {
46 } END_FOR_EACH_PTR(sym
);
49 int main(int argc
, char **argv
)
51 emit_symbol_list(sparse(argc
, argv
));