mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-09 19:15:49 +01:00
Remove dependency to CPP: support for #include directive
The parser is prepared to handle '#' directives, starting with file inclusion. The search path for the file are taken from what was actually given to CPP. There is an arbitrary limit to the inclusion nesting, which is actually not a design limitation but a security to avoid infinite include loops.
This commit is contained in:
committed by
Carlos R. Mafra
parent
ed9482b626
commit
88a82ab8df
@@ -872,7 +872,7 @@ extern char *WMUserDefaultsDidChangeNotification;
|
||||
typedef struct w_menu_parser *WMenuParser;
|
||||
|
||||
|
||||
WMenuParser WMenuParserCreate(const char *file_name, void *file);
|
||||
WMenuParser WMenuParserCreate(const char *file_name, void *file, const char *include_default_paths);
|
||||
|
||||
void WMenuParserError(WMenuParser parser, const char *msg, ...)
|
||||
__attribute__ ((format (printf, 2, 3)));
|
||||
|
||||
Reference in New Issue
Block a user