[PATCH 1/2] flex: Avoid REJECT name conflict.

Martin Mares mj at ucw.cz
Tue Apr 27 23:34:18 CEST 2010


Hello!

> I noticed the compile warning caused by it and looked for the
> reason. I didn't notice any problem but such conflicts are a bug
> waiting to happen so I tried to fix it.

Again, the fix is uglier than the symptoms of the problem.

> The best fix would be to prefix all tokens(say TOK_) so
> one doesn't risk conflicts

This looks like the proper way.

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj at ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
main(){char *s="main(){char *s=%c%s%c;printf(s,34,s,34);}";printf(s,34,s,34);}



More information about the Bird-users mailing list