summaryrefslogtreecommitdiff
path: root/source/compiler/aslparser.y
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler/aslparser.y')
-rw-r--r--source/compiler/aslparser.y8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/compiler/aslparser.y b/source/compiler/aslparser.y
index bf4a8a74991c8..5d21ce66a3c0a 100644
--- a/source/compiler/aslparser.y
+++ b/source/compiler/aslparser.y
@@ -62,7 +62,9 @@
* ResourceMacroList, and FieldUnitList
*/
-void * AslLocalAllocate (unsigned int Size);
+void *
+AslLocalAllocate (
+ unsigned int Size);
/* Bison/yacc configuration */
@@ -80,8 +82,8 @@ void * AslLocalAllocate (unsigned int Size);
/* Define YYMALLOC/YYFREE to prevent redefinition errors */
-#define YYMALLOC malloc
-#define YYFREE free
+#define YYMALLOC AslLocalAllocate
+#define YYFREE ACPI_FREE
%}
/*