Commit Graph
8 Commits
Author SHA1 Message Date
Nigel Tao 45cecca79a Rename buf1's cap to len. 2017-06-06 17:29:50 +10:00
Nigel Tao 4c0a659a18 Generate C function arguments.
Also rename "io.buf1" to just "buf1".
2017-06-02 16:14:59 +10:00
Nigel Tao 930ff53ff6 Add cmd/puffs-gen-c/base-impl.h.
Also rename preamble.h to base-header.h.
2017-06-01 11:02:43 +10:00
Nigel Tao 1841ed8a36 Add an PUFFS_BASE_H include guard. 2017-06-01 10:49:01 +10:00
Nigel Tao c195c2362e Remove the cmd/internal/cgen package.
There's no longer separate .c and .h generator executables, so there's
no need for an (internal) package for common code.
2017-06-01 10:39:46 +10:00
Nigel Tao 5d5381ea17 Generate .h files too, not just .c files. 2017-05-26 10:56:59 +10:00
Nigel Tao 3642dd3d0e Check that __WORDSIZE is at least 32 bits. 2017-05-26 09:23:55 +10:00
Nigel Tao f01f9c2fba First cut of a code generator. 2017-05-25 12:20:31 +10:00