diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2011-04-15 21:33:45 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2011-04-15 21:33:45 +0000 |
commit | 848049e223ef408a308cd85e7784b4ea4bc6e54a (patch) | |
tree | 176a1124f720ced26152fe4dbfd2f40552c6ae5e /compiler/asldefine.h | |
parent | b8b782f913f7130ea65600a7760efc8dedacfe49 (diff) |
Notes
Diffstat (limited to 'compiler/asldefine.h')
-rw-r--r-- | compiler/asldefine.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/compiler/asldefine.h b/compiler/asldefine.h index cfde1e48849f..04e3b6056b1f 100644 --- a/compiler/asldefine.h +++ b/compiler/asldefine.h @@ -66,12 +66,23 @@ #define ASL_STRING_CACHE_SIZE 32768 #define ASL_FIRST_PARSE_OPCODE PARSEOP_ACCESSAS -#define ASL_YYTNAME_START 3 - #define ASL_PARSE_OPCODE_BASE PARSEOP_ACCESSAS /* First Lex type */ /* + * Per-parser-generator configuration. These values are used to cheat and + * directly access the bison/yacc token name table (yyname or yytname). + * Note: These values are the index in yyname for the first lex token + * (PARSEOP_ACCCESSAS). + */ +#if defined (YYBISON) +#define ASL_YYTNAME_START 3 /* Bison */ +#elif defined (YYBYACC) +#define ASL_YYTNAME_START 257 /* Berkeley yacc */ +#endif + + +/* * Macros */ #define ASL_RESDESC_OFFSET(m) ACPI_OFFSET (AML_RESOURCE, m) @@ -97,6 +108,7 @@ /* filename suffixes for output files */ +#define FILE_SUFFIX_PREPROCESSOR "i" #define FILE_SUFFIX_AML_CODE "aml" #define FILE_SUFFIX_LISTING "lst" #define FILE_SUFFIX_HEX_DUMP "hex" |