diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_c/lexer.h')
-rw-r--r-- | bitbake/lib/bb/parse/parse_c/lexer.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/bitbake/lib/bb/parse/parse_c/lexer.h b/bitbake/lib/bb/parse/parse_c/lexer.h index 1edf72dcf5..0a985edf23 100644 --- a/bitbake/lib/bb/parse/parse_c/lexer.h +++ b/bitbake/lib/bb/parse/parse_c/lexer.h | |||
@@ -24,17 +24,29 @@ 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 | /* | ||
28 | * The PyObject Token. Likely to be | ||
29 | * a bb.data implementation | ||
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 | */ | ||
27 | struct lex_t { | 40 | struct lex_t { |
28 | void *parser; | 41 | void *parser; |
29 | void *scanner; | 42 | void *scanner; |
43 | FILE *file; | ||
44 | PyObject *data; | ||
30 | void* (*parse)(void*, int, token_t, lex_t*); | 45 | void* (*parse)(void*, int, token_t, lex_t*); |
31 | 46 | ||
32 | void accept(int token, const char* string = 0); | 47 | void accept(int token, const char* string = 0); |
33 | void input(char *buf, int *result, int_max_size); | 48 | void input(char *buf, int *result, int max_size); |
34 | int line()const; | 49 | int line()const; |
35 | const char* filename()const; | ||
36 | private: | ||
37 | const char* m_fileName; | ||
38 | }; | 50 | }; |
39 | 51 | ||
40 | 52 | ||