On Wed, Jul 28, 2010 at 3:47 AM, Balbir Singh <[email protected]> wrote: >> >> Last we discussed, the suggestion was to decouple YY_FATAL_ERROR >> output from --enable-debug; so, we ended up with: >> >> diff --git a/src/lex.l b/src/lex.l >> index 2f4e313..f2b4e58 100644 >> --- a/src/lex.l >> +++ b/src/lex.l >> @@ -18,7 +18,8 @@ >> #include "parse.h" >> int line_no = 1; >> >> -#define YY_FATAL_ERROR(msg) cgroup_dbg(%s) >> +#define YY_FATAL_ERROR(msg) \ >> + do { fprintf(stderr, "%s\n", msg); } while (0) >> %} >> >> %% >> >> or >> >> diff --git a/src/lex.l b/src/lex.l >> index 2f4e313..f2b4e58 100644 >> --- a/src/lex.l >> +++ b/src/lex.l >> @@ -18,7 +18,7 @@ >> #include "parse.h" >> int line_no = 1; >> >> -#define YY_FATAL_ERROR(msg) cgroup_dbg(%s) >> +#define YY_FATAL_ERROR(msg) fprintf(stderr, "%s\n", msg) >> %} >> >> %% >> > > > I like both, we discussed the fflush() issue and stopped after that. > Dhaval do you want me to merge the changes? Lets use the second one > for now >
Please go ahead! Dhaval ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
