aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/yacc.c
Commit message (Collapse)AuthorAgeFilesLines
* cmd/yacc: correctly detect end of file in gettokNeven Sajko2020-01-131-0/+2
| | | | | | This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b
* cmd/yacc: check that arg is safe to pass to <ctype.h> isX functionsNeven Sajko2020-01-131-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
* cmd/yacc: check for EOF in string constant in cpyactNeven Sajko2020-01-131-1/+1
| | | | Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c
* cmd/yacc: do not create an out of bounds pointerNeven Sajko2020-01-131-1/+2
| | | | | | | | | An out of bounds pointer/array index being created is an error in standard C. Updates #313 Change-Id: I7108fcde1a8e03017e9ab852adb737940489c827
* yacc: Fix a bug from at least 1995.Dan Cross2017-04-211-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>
* write YYARG def to ftable (fdefine might be null, and is not the right place ↵rsc2007-01-291-1/+1
| | | | anyway)
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-1/+1
|
* Reduce the differences between yaccpar and yaccpars.wkj2005-02-141-18/+53
| | | | Add support for passing an argument through yyparse to yylex.
* fix unsharprsc2005-01-141-4/+7
|
* forgotten filesrsc2005-01-131-0/+2942
|
* new stuff.rsc2004-04-211-2939/+0
|
* Today's changes.rsc2004-03-251-1/+1
| | | | More changes.
* Various tweaks.rsc2004-02-291-1/+1
|
* Add support for user-level 9P servers/clients and various bug fixes to go ↵rsc2003-12-111-14/+5
| | | | with them.
* add hocrsc2003-12-041-5/+14
|
* new utilities.rsc2003-11-231-0/+2939
the .C files compile but are renamed to avoid building automatically.