diff options
author | Richard Purdie <richard@openedhand.com> | 2006-05-09 15:44:08 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 15:44:08 +0000 |
commit | 27dba1e6247ae48349aee1bce141a9eefaafaad1 (patch) | |
tree | 822235005ccbd2707f7874ad680dedc4df36760c /bitbake/lib/bb/parse/parse_c/lexer.h | |
parent | ed234aca98d0867c7b32801fc63820b19cf67df9 (diff) | |
download | poky-27dba1e6247ae48349aee1bce141a9eefaafaad1.tar.gz |
Update to bitbake 1.4.2 (latest stable branch release). This includes the caching speedups
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@371 311d38ba-8fff-0310-9ca6-ca027cbcb966
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 |