Commits


libdraw: connect to devdraw via $wsysid when set


devdraw: more cleanup, clearer locking


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.


devdraw: move per-window globals in mac-screen.m into Client


devdraw: move Client into devdraw.h and move global state in


devdraw: use consistent mac-* prefix on macOS files We were using osx- and cocoa- but it's not even OS X anymore.


devdraw: can use libthread directly now on macOS


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.


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.


devdraw: update drawclient test program to run again


cmd/yacc: correctly detect end of file in gettok This prevents an infinite loop. Change-Id: I7eda6b9d032ca0daeb24b555954330d07f35c78b


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


cmd/yacc: check for EOF in string constant in cpyact Change-Id: I3b41ab3f181080bcff89201d30f0bdf8aa20d55c


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


lib9/fmt: avoid racy access to installed fmt formats