summaryrefslogtreecommitdiff
path: root/source/compiler/dtcompiler.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2019-08-16 17:03:01 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2019-08-16 17:03:01 +0000
commite63852a7532181a14cec2928b31af2209e98414a (patch)
treebe94508475add18bbaa0cacd6c467983d2b8a443 /source/compiler/dtcompiler.h
parent0ada71f05e76bf61eb2d5aba852db00705edd364 (diff)
Notes
Diffstat (limited to 'source/compiler/dtcompiler.h')
-rw-r--r--source/compiler/dtcompiler.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/source/compiler/dtcompiler.h b/source/compiler/dtcompiler.h
index ffa17f63dde7..639c22cb7273 100644
--- a/source/compiler/dtcompiler.h
+++ b/source/compiler/dtcompiler.h
@@ -194,7 +194,7 @@ typedef struct dt_field
{
char *Name; /* Field name (from name : value) */
char *Value; /* Field value (from name : value) */
- UINT32 StringLength;/* Length of Value */
+ UINT32 StringLength; /* Length of Value */
struct dt_field *Next; /* Next field */
struct dt_field *NextLabel; /* If field is a label, next label */
UINT32 Line; /* Line number for this field */
@@ -256,6 +256,10 @@ DT_EXTERN DT_FIELD DT_INIT_GLOBAL (*AslGbl_LabelList, NULL);
DT_EXTERN UINT32 DT_INIT_GLOBAL (AslGbl_CurrentTableOffset, 0);
+/* Data table compiler Flex/Bison prototype */
+
+DT_EXTERN BOOLEAN DT_INIT_GLOBAL (AslGbl_DtLexBisonPrototype, FALSE);
+
/* Local caches */
DT_EXTERN UINT32 DT_INIT_GLOBAL (AslGbl_SubtableCount, 0);
@@ -288,6 +292,14 @@ DtCompilePadding (
UINT32 Length,
DT_SUBTABLE **RetSubtable);
+void
+DtCreateField (
+ char *Name,
+ char *Value,
+ UINT32 Line,
+ UINT32 Offset,
+ UINT32 Column,
+ UINT32 NameColumn);
/* dtio - binary and text input/output */
@@ -427,10 +439,23 @@ DtCompileFlag (
/* dtparser - lex/yacc files */
+UINT64 DtCompilerParserResult; /* Expression return value */
+int
+DtCompilerParserparse (
+ void);
+
UINT64
DtEvaluateExpression (
char *ExprString);
+void
+DtCompilerInitLexer (
+ FILE *inFile);
+
+void
+DtCompilerTerminateLexer (
+ void);
+
int
DtInitLexer (
char *String);