Subj : Re: How can I get rid of #define in my generated C code ...? To : comp.programming From : SM Ryan Date : Mon Oct 10 2005 02:01 am "Bahram" wrote: # Folk, # # I am using lex and yacc for a project I am working on, wondering if # there is any switch I can specify ANYWHERE, including the C compiler, # that would take the .c files that these utilities generate, and get rid # of all the #defines in the generated code. Why? # (when I say get rid of, I don't mean to simply delete, I mean to # recognize: Oh yes, this is defined and here is what I want to do.) # # The y.tab.c and lex.yy.c files that these utilities produce are # infested with #define, a lot conditional, making them impossible to # read, and modify (e.g. yes, I need to make some changes to them) Bison and flex are open source, so you can always rewrite them to make them what you wish. -- SM Ryan http://www.rawbw.com/~wyrmwif/ What kind of convenience store do you run here? .