[Prev][Next][Index]
Re: Problems with enums
- From: "Beata Winnicka" <bfatyga@slab.cica.indiana.edu>
- Date: Wed, 22 Feb 95 16:02:44 -0500
- To: Diego Novillo <diego@cs.ualberta.ca>
- Subject: Re: Problems with enums
- Cc: sage-bugs@cica.indiana.edu (Sage Bug Reports)
- Sender: owner-sage-bugs@extreme.indiana.edu
Diego,
try the following fix:
in the file lib/include/unparseC++.def
replace the current definition for
DEFNODECODE(ENUM_DECL ...
(this is around line 153 in our file)
with the following:
DEFNODECODE(ENUM_DECL,
"%CMNT%PUTTAB%DECLSPEC%RIDPT%SETFLAG(ENUM)enum %SYMBID %IF (%BLOB1 !=
%NULL){%INCTAB%NL
%BLOB1%DECTAB%PUTTAB}%LL1;%NL%ELSE%LL1;%NL%ENDIF%UNSETFLAG(ENUM)",
'd',0,BIFNODE)
(the change consists of adding %RIDPT in the appropriate place)
Let me know if this works,
--Beata