mirror of
https://github.com/reactos/wine.git
synced 2025-02-04 02:56:31 +00:00
widl: Added importlib parsing code.
This commit is contained in:
parent
238afbb688
commit
8cd409facf
@ -251,6 +251,7 @@ imp_statements: {}
|
||||
| imp_statements coclassdef { if (!parse_only) add_coclass($2); }
|
||||
| imp_statements moduledef { if (!parse_only) add_module($2); }
|
||||
| imp_statements statement {}
|
||||
| imp_statements importlib {}
|
||||
;
|
||||
|
||||
int_statements: { $$ = NULL; }
|
||||
@ -277,6 +278,8 @@ import_start: tIMPORT aSTRING ';' { assert(yychar == YYEMPTY);
|
||||
import: import_start imp_statements aEOF {}
|
||||
;
|
||||
|
||||
importlib: tIMPORTLIB '(' aSTRING ')' { if(!parse_only) add_importlib($3); }
|
||||
|
||||
libraryhdr: tLIBRARY aIDENTIFIER { $$ = $2; }
|
||||
;
|
||||
library_start: attributes libraryhdr '{' { start_typelib($2, $1);
|
||||
|
@ -278,3 +278,10 @@ void add_typedef(type_t *tdef, var_t *name)
|
||||
LINK(entry, typelib->entry);
|
||||
typelib->entry = entry;
|
||||
}
|
||||
|
||||
void add_importlib(const char *name)
|
||||
{
|
||||
if(!typelib) return;
|
||||
|
||||
warning("importlib is not yet supported.\n");
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ extern void add_module(type_t *module);
|
||||
extern void add_struct(type_t *structure);
|
||||
extern void add_enum(type_t *enumeration);
|
||||
extern void add_typedef(type_t *tdef, var_t *name);
|
||||
extern void add_importlib(const char *name);
|
||||
|
||||
/* Copied from wtypes.h. Not included directly because that would create a
|
||||
* circular dependency (after all, wtypes.h is generated by widl...) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user