summaryrefslogtreecommitdiff
path: root/gen-des-tables.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-03Stop using VLA function parameters in gen-des-tables.c.Zack Weinberg1-14/+14
We really don't want to use variable-length array *variables* anywhere in this library, because in the place where people are most likely to want them - the algorithm modules - the stack size is limited. So we want to use -Wvla. But that also complains about variable-length array *function parameters* in gen-des-tables.c; this would actually be totally safe even in the context we're worred about (it's just syntactic sugar for doing 2D array indexing math yourself) but it's also not hard to get rid of. Thus. * gen-des-tables.c (write_table_u8, write_table_u32): Don't use VLA function parameters. (main): Adjust pointer types in calls to above functions. * m4/zw_simple_warnings.m4: Reactivate -Wvla.
2017-10-02Grab bag of header-related cleanups.Zack Weinberg1-0/+3
Stop including crypt-symbols.h implicitly. It's a little too much _spukhafte Fernwirkung_ for my taste, and it makes Emacs have trouble parsing the compiler's error messages. Also, rename crypt-symbols.h to crypt-port.h as this is more consistent with its current function, and have it include stdbool.h, stddef.h, and stdint.h for everyone; have configure bomb out if the C99 headers we use are not available; and normalize the order of inclusion in all files. The value of CPPFLAGS passed to test scripts now includes every last one of Automake's CPPFLAGS-fragment variables.
2017-09-21Rename alg-des-mktables to gen-des-tables.Zack Weinberg1-0/+339
Just for consistency with the other gen-* programs.