Commit Briefs

2cb85891ba Russ Cox

cmapcube: don't crash on initdraw failure


dbf57689c4 Russ Cox

libdraw: connect to devdraw via $wsysid when set


41547af3f6 Russ Cox

devdraw: more cleanup, clearer locking


b1a086dee9 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.




933b98054f Russ Cox

devdraw: use consistent mac-* prefix on macOS files

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


ce27d7babd Russ Cox

devdraw: can use libthread directly now on macOS


db20f89c32 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.


f177c0ba18 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.



bf59f0ed28 Russ Cox

cmd/yacc: correctly detect end of file in gettok

This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b


eb4aea5072 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


d2fae53d17 Russ Cox

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

Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c


4a3f20bcee 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