Start moving some of the non-parsing stuff out of 'parse.c'

Create a 'main.c' with the main routine and argument "parsing" etc.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-08-30 18:40:25 -07:00
parent f3a338a9af
commit 5c4cc39c56
4 changed files with 127 additions and 90 deletions

12
dive.h
View file

@ -111,4 +111,16 @@ struct dive {
struct sample sample[];
};
extern int verbose;
struct dive_table {
int nr, allocated;
struct dive **dives;
};
extern struct dive_table dive_table;
void parse_xml_init(void);
void parse_xml_file(const char *filename);
#endif /* DIVE_H */