diff options
Diffstat (limited to 'lib/bb/parse/parse_c/lexer.h')
-rw-r--r-- | lib/bb/parse/parse_c/lexer.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/lib/bb/parse/parse_c/lexer.h b/lib/bb/parse/parse_c/lexer.h index 0a985edf2..651f3a861 100644 --- a/lib/bb/parse/parse_c/lexer.h +++ b/lib/bb/parse/parse_c/lexer.h @@ -24,30 +24,23 @@ THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef LEXER_H #define LEXER_H -/* - * The PyObject Token. Likely to be - * a bb.data implementation - */ -struct PyObject; - - -/** - * This is used by the Parser and Scanner - * of BitBake. - * The implementation and creation is done - * in the scanner. - */ +#include "Python.h" + +extern "C" { + struct lex_t { - void *parser; - void *scanner; - FILE *file; + void* parser; + void* scanner; + FILE* file; PyObject *data; + void* (*parse)(void*, int, token_t, lex_t*); - void accept(int token, const char* string = 0); + void accept(int token, const char* sz = NULL); void input(char *buf, int *result, int max_size); int line()const; }; +} #endif |