Commit Briefs



Russ Cox

devdraw: refactor, clean up mac screen

Also turn mac-srv.c into a generic srv.c, so we can remove the duplication with x11-srv.c.




Russ Cox

devdraw: use consistent mac-* prefix on macOS files

We were using osx- and cocoa- but it's not even OS X anymore.



Russ Cox

devdraw: simplify mac file names

Now that we only have Metal, we can drop the -metal. Also now that Carbon is gone we can drop the macargv.c, and then the -objc from object file names.


Russ Cox

devdraw: drop pre-metal macOS support

We didn't start using Metal until macOS 10.14, but it was available on 10.13, which is currently the oldest Apple-supported version of macOS. Simplify by deleting the old code.



Russ Cox

cmd/yacc: correctly detect end of file in gettok

This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b


Russ Cox

cmd/yacc: check that arg is safe to pass to <ctype.h> isX functions

The functions from <ctype.h> require that their argument be representable as an unsigned char, anything else is an error. Change-Id: I9dafc49c431b7a2550b041603f27bac3c0010eea


Russ Cox

cmd/yacc: check for EOF in string constant in cpyact

Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c


Russ Cox

cmd/yacc: do not create an out of bounds pointer

An out of bounds pointer/array index being created is an error in standard C. Updates #313 Change-Id: I7108fcde1a8e03017e9ab852adb737940489c827