Commit Briefs

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




Russ Cox

wintext: add tmux support, use in ", ""

Fixes #223.


Russ Cox

fontsrv: allow x11 hinting and disable autohint only (#254)

Some truetype fonts have good manual hinting. Ignoring hinting makes the font render badly on low resolution screens. This commit only disables the freetype autohinter, and allows hinting.


Dan Cross

Make venti's doc more accurate


Dan Cross

cmd/venti/srv: split memory allocation call

This splits a certain vtmallocz call in mkihash into two vtmallocz calls. The first issue this fixes is that the C aliasing rules were not respected in the code before this commit. The other thing is that this enables better memory alignment guarantees. Updates #313 Change-Id: Ia4f3e0fc85facc778193f5e977d4f99a1a9abd23


Russ Cox

libdraw: fix "mk"

Should default to building the library, not getsubfont.o.


Russ Cox

libthread: run first thread in proc on system stack

For pthread systems that are fussy about which stack is used, this makes sure that threadmain runs on a system stack. If you only use proccreate (never threadcreate), all threads run on system stacks.


Russ Cox

lib9: make a p9frexp function wrapping system frexp

Under certain conditions it looks like frexp gets #defined to something else on macOS during system headers, which then breaks the declaration in libc.h.


Russ Cox

all: fix or silence various gcc warnings

As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise.


Dan Cross

Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>


Russ Cox

src: mv ../buildEnvironmentVariables mkhdr

Also note that the file must be valid shell and mk input. For #321.