Change 7581

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/p4dctl/src
Request Review
Download .zip
Clean up use of yytext, which was incorrect and causes problems
with some breeds of yacc. yytext is for the lexer, yylval for
the parser, and the twain shall only meet in the lexer code.

Thus configlex.l ensures that yytext is strdup'd into yylval.sval
before we hand it over to the parser.

Fix for bug reported by Mark Allender
  • Files 5
  • Comments 0
5 edited 0 added 0 deleted
configlex.c#3
Loading...
configlex.l#2
Loading...
configparse.c#4
Loading...
configparse.h#4
Loading...
configparse.y#4
Loading...
Tip: Use n and p to cycle through the changes.