diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_c/lexer.h')
-rw-r--r-- | bitbake/lib/bb/parse/parse_c/lexer.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/bitbake/lib/bb/parse/parse_c/lexer.h b/bitbake/lib/bb/parse/parse_c/lexer.h index 0a985edf23..651f3a8618 100644 --- a/bitbake/lib/bb/parse/parse_c/lexer.h +++ b/bitbake/lib/bb/parse/parse_c/lexer.h | |||
@@ -24,30 +24,23 @@ THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |||
24 | #ifndef LEXER_H | 24 | #ifndef LEXER_H |
25 | #define LEXER_H | 25 | #define LEXER_H |
26 | 26 | ||
27 | /* | 27 | #include "Python.h" |
28 | * The PyObject Token. Likely to be | 28 | |
29 | * a bb.data implementation | 29 | extern "C" { |
30 | */ | 30 | |
31 | struct PyObject; | ||
32 | |||
33 | |||
34 | /** | ||
35 | * This is used by the Parser and Scanner | ||
36 | * of BitBake. | ||
37 | * The implementation and creation is done | ||
38 | * in the scanner. | ||
39 | */ | ||
40 | struct lex_t { | 31 | struct lex_t { |
41 | void *parser; | 32 | void* parser; |
42 | void *scanner; | 33 | void* scanner; |
43 | FILE *file; | 34 | FILE* file; |
44 | PyObject *data; | 35 | PyObject *data; |
36 | |||
45 | void* (*parse)(void*, int, token_t, lex_t*); | 37 | void* (*parse)(void*, int, token_t, lex_t*); |
46 | 38 | ||
47 | void accept(int token, const char* string = 0); | 39 | void accept(int token, const char* sz = NULL); |
48 | void input(char *buf, int *result, int max_size); | 40 | void input(char *buf, int *result, int max_size); |
49 | int line()const; | 41 | int line()const; |
50 | }; | 42 | }; |
51 | 43 | ||
44 | } | ||
52 | 45 | ||
53 | #endif | 46 | #endif |