You are correct with the lex output.
The yacc output variables have already been redefined to have the dxd
suffix on them with a header redefine, but there is no way to make
bison or yacc initialize the variable at declaration (and that is the
requirement I need). I could write a post-process to do this, but I
question whether that is the best solution either. I can't seem to
find anybody that has run into this problem that has solved it any
other way than to make it thread safe (remove global declarations).
David
If I'm not mistaken, this has already happened in the lex component. We
distribute lex.c, which I think was originally produced by lex long, long
ago. On the whole, I don't think its a perfect solution. Would it be
possible to post-process the yacc/bison output to prepend _dxf to the
global variables names?
Greg
--
.............................................................................
David L. Thompson Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED] 5515 Skyway Drive, Missoula, MT 59804
Phone : (406)257-8530