From 019795499b60dab6e83290f06b8ca3a7ebccd44f Mon Sep 17 00:00:00 2001 From: "toshok%hungry.com" Date: Fri, 11 Dec 1998 02:48:32 +0000 Subject: [PATCH] Fix the burm_STATE_LABEL thing, since the version of burg that I have (and that I assume we'll be using) doesn't use SET_STATE_LABEL - it makes assignments to STATE_LABEL. git-svn-id: svn://10.0.0.236/trunk@16216 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/ef/Compiler/CodeGenerator/Burg.h | 2 +- mozilla/ef/Compiler/PrimitiveGraph/Primitives.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/ef/Compiler/CodeGenerator/Burg.h b/mozilla/ef/Compiler/CodeGenerator/Burg.h index bc93bf3d462..37fb92f51f8 100644 --- a/mozilla/ef/Compiler/CodeGenerator/Burg.h +++ b/mozilla/ef/Compiler/CodeGenerator/Burg.h @@ -30,7 +30,7 @@ typedef Primitive* NODEPTR_TYPE; #define OP_LABEL(p) p->getOperation() -#define STATE_LABEL(p) p->getBurgState() +#define STATE_LABEL(p) *(p->getBurgStatePtr()) #define SET_STATE_LABEL(p, state) p->setBurgState(state) #define LEFT_CHILD(p) CodeGenerator::getExpressionLeftChild(p) #define RIGHT_CHILD(p) CodeGenerator::getExpressionRightChild(p) diff --git a/mozilla/ef/Compiler/PrimitiveGraph/Primitives.h b/mozilla/ef/Compiler/PrimitiveGraph/Primitives.h index 287aae87746..0d5ce1f0eda 100644 --- a/mozilla/ef/Compiler/PrimitiveGraph/Primitives.h +++ b/mozilla/ef/Compiler/PrimitiveGraph/Primitives.h @@ -416,6 +416,7 @@ class Primitive: public DataNode, public DoublyLinkedEntry // Links t void changeContainer(ControlNode *c) {assert(container); remove(); container = c;} // For use by ControlNode only. Uint16 getBurgState() const { return burgState;} + Uint16* getBurgStatePtr() { return &burgState; } Uint16 setBurgState(Uint16 newState) {burgState = newState; return newState;} Uint16 getLineNumber() {return lineNumber;}