diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-03 18:36:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-08-03 18:36:00 -0700 |
commit | 2c36119df5a9bf9ad04f665961721fdeb7ca7551 (patch) | |
tree | 295dc51738bf051de50b581c7ccb5c5fe220e146 /lib.h | |
parent | Get closer to parsing multiple files correctly. (diff) | |
download | sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.tar.gz sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.tar.bz2 sparse-2c36119df5a9bf9ad04f665961721fdeb7ca7551.zip |
Update the calling interface to "sparse()".
Start off with
sparse_initialize(argc, argv);
which will return the number of filenames found. You can then use that,
or just check if *argv is NULL in a loop like
while (*argv)
list = sparse(argv);
where you get the declaration list for each file in turn.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -71,8 +71,6 @@ extern void error_die(struct position, const char *, ...) FORMAT_ATTR(2); extern char **handle_switch(char *arg, char **next); extern void add_pre_buffer(const char *fmt, ...); -extern unsigned int pre_buffer_size; -extern unsigned char pre_buffer[8192]; extern int include_fd; extern char *include; extern int preprocess_only; @@ -84,7 +82,8 @@ extern int Wtransparent_union; extern void declare_builtin_functions(void); extern void create_builtin_stream(void); -extern struct symbol_list *sparse(int argc, char **argv); +extern int sparse_initialize(int argc, char **argv); +extern struct symbol_list *sparse(char **argv); static inline int symbol_list_size(struct symbol_list* list) { |