aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/yacc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-13cmd/yacc: correctly detect end of file in gettokNeven Sajko1-0/+2
This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b
2020-01-13cmd/yacc: check that arg is safe to pass to <ctype.h> isX functionsNeven Sajko1-5/+14
The functions from <ctype.h> require that their argument be representable as an unsigned char, anything else is an error. Change-Id: I9dafc49c431b7a2550b041603f27bac3c0010eea
2020-01-13cmd/yacc: check for EOF in string constant in cpyactNeven Sajko1-1/+1
Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
2020-01-13cmd/yacc: do not create an out of bounds pointerNeven Sajko1-1/+2
An out of bounds pointer/array index being created is an error in standard C. Updates #313 Change-Id: I7108fcde1a8e03017e9ab852adb737940489c827
2017-04-21yacc: Fix a bug from at least 1995.Dan Cross1-1/+2
Fix a bug folding newlines in strings constants in C code snippets in YACC. This code has existed since at least 2nd Edition Plan 9. Change-Id: Iba17b89a6529ac9fa6610bf0b44f551904174c26 Signed-off-by: Dan Cross <cross@gajendra.net> Reviewed-on: https://plan9port-review.googlesource.com/2840 Reviewed-by: Russ Cox <rsc@swtch.com>
2007-01-29write YYARG def to ftable (fdefine might be null, and is not the right place ↵rsc1-1/+1
anyway)
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-1/+1
2005-02-14Reduce the differences between yaccpar and yaccpars.wkj1-18/+53
Add support for passing an argument through yyparse to yylex.
2005-01-14fix unsharprsc1-4/+7
2005-01-13forgotten filesrsc1-0/+2942
2004-04-21new stuff.rsc1-2939/+0
2004-03-25Today's changes.rsc1-1/+1
More changes.
2004-02-29Various tweaks.rsc1-1/+1
2003-12-11Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc1-14/+5
with them.
2003-12-04add hocrsc1-5/+14
2003-11-23new utilities.rsc1-0/+2939
the .C files compile but are renamed to avoid building automatically.