1 #ifndef __THEME_PARSE_H__
2 #define __THEME_PARSE_H__
9 #define YY_DECL int obthemelex(YYSTYPE *yylval, struct parser_control *pc)
12 #define YYLEX_PARAM pc
14 #define MAX_INCLUDE_DEPTH 32
15 #define LINE pc->currline[pc->include_stack_ptr]
17 extern int themedebug;
30 GHashTable *materials;
54 ObFrameContext context;
57 struct parser_control {
58 struct yy_buffer_state *include_stack[MAX_INCLUDE_DEPTH];
59 int currline[MAX_INCLUDE_DEPTH];
60 char currfile[MAX_INCLUDE_DEPTH][501];
61 int include_stack_ptr;
63 struct obthemedata *target;
66 void obthemeerror(struct parser_control *pc, char *s);
67 int obtheme_parse(struct obthemedata *td, const char *filename);
68 struct parser_control *parser_init(struct obthemedata *td);
69 int obthemeparse(struct parser_control *);
70 void parser_finish(struct parser_control *);
72 #endif /* __THEME_PARSE_H__ */