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.h20
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.
#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.
+ */
struct lex_t {
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 input(char *buf, int *result, int_max_size);
+ void input(char *buf, int *result, int max_size);
int line()const;
- const char* filename()const;
-private:
- const char* m_fileName;
};