Module Name: src Committed By: rillig Date: Sun Aug 9 07:03:06 UTC 2020
Modified Files: src/usr.bin/make: enum.h var.c Log Message: make(1): use fixed-size arrays for Enum_ToString Declaring the ToStringSize as "static const size_t" made it an ordinary integer expression. To avoid variable length arrays, the commonly accepted way is to declare the length as an enum constant, as that is considered an integer constant expression, which in turn makes the declaration a fixed-size array. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/enum.h cvs rdiff -u -r1.435 -r1.436 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.