On 07/28/2010 08:57 AM, Dhaval Giani wrote: > 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!
This is still broken in current git, could any of you please check it in? Thanks in advance Jan ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
