summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse/parse_c/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/parse/parse_c/lexer.h')
-rw-r--r--bitbake/lib/bb/parse/parse_c/lexer.h27
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.
#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