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;
51 GHashTable *materials;
75 ObFrameContext context;
78 struct parser_control {
79 struct yy_buffer_state *include_stack[MAX_INCLUDE_DEPTH];
80 int currline[MAX_INCLUDE_DEPTH];
81 char currfile[MAX_INCLUDE_DEPTH][501];
82 int include_stack_ptr;
84 struct obthemedata *target;
87 void obthemeerror(struct parser_control *pc, char *s);
88 int obtheme_parse(struct obthemedata *td, const char *filename);
89 struct parser_control *parser_init(struct obthemedata *td);
90 int obthemeparse(struct parser_control *);
91 void parser_finish(struct parser_control *);
93 #endif /* __THEME_PARSE_H__ */