aboutsummaryrefslogtreecommitdiff
path: root/source/compiler/prparser.y
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/prparser.y')
-rw-r--r--source/compiler/prparser.y11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/compiler/prparser.y b/source/compiler/prparser.y
index f76123364a32..67587331a119 100644
--- a/source/compiler/prparser.y
+++ b/source/compiler/prparser.y
@@ -48,6 +48,13 @@
#define _COMPONENT ASL_PREPROCESSOR
ACPI_MODULE_NAME ("prparser")
+void * AslLocalAllocate (unsigned int Size);
+
+/* Bison/yacc configuration */
+
+#undef alloca
+#define alloca AslLocalAllocate
+
int PrParserlex (void);
int PrParserparse (void);
void PrParsererror (char const *msg);
@@ -175,11 +182,11 @@ Expression
/* Default base for a non-prefixed integer is 10 */
- | EXPOP_NUMBER { UtStrtoul64 (PrParsertext, 10, &$$);}
+ | EXPOP_NUMBER { stroul64 (PrParsertext, 10, &$$);}
/* Standard hex number (0x1234) */
- | EXPOP_HEX_NUMBER { UtStrtoul64 (PrParsertext, 16, &$$);}
+ | EXPOP_HEX_NUMBER { stroul64 (PrParsertext, 16, &$$);}
;
%%