Commit Graph
46 Commits
Author SHA1 Message Date
Nigel Tao be2d96bb27 Add public max_incl_workbuf_len constants 2019-02-02 15:51:04 +11:00
Nigel Tao 63988f3077 Have gen release use commit date not current date 2018-12-30 21:27:25 +11:00
Nigel Tao 01afa9496b Have "wuffs gen" call "git rev-parse HEAD" 2018-12-30 21:02:28 +11:00
Nigel Tao 2b631202bc Generate WUFFS_VERSION_GIT_REV_LIST_COUNT 2018-12-29 15:45:04 +11:00
Nigel Tao 20c474b32a Add a genlinenum flag 2018-12-28 16:26:21 +11:00
Nigel Tao c2a48ae6d3 Remove temporary cmd/wuffs code to delete .h files 2018-12-23 16:35:39 +11:00
Nigel Tao 04c91f1410 Generate .c files instead of .h files
The files' contents haven't changed (other than some relative #include's
that refer to other .c files).

Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
2018-12-22 15:29:00 +11:00
Nigel Tao 8eb9781a9d Have gen/c code use relative includes
For example, gen/c/wuffs-std-gif.h now #include's "./wuffs-std-lzw.h"
instead of "std/lzw.h", which removes the need to configure an -I
directory when compiling it.
2018-11-03 11:03:11 +11:00
Nigel Tao 3854ce3e89 Let test binaries run from any dir in the repo
Also spin out generate.WuffsRoot into its own package.
2018-11-03 08:46:31 +11:00
Nigel Tao babd6e667d Have "wuffs genlib -skipgen" still build base libs 2018-08-19 17:36:27 +10:00
Nigel Tao 6236e7205f Remove packageid 2018-08-12 21:44:49 +10:00
Nigel Tao 203b45e869 Remove status values 2018-08-12 19:36:29 +10:00
Nigel Tao db04cf346f Rename Struct.Optional to Struct.Classy 2018-08-04 08:57:27 +10:00
Nigel Tao 0a47966e72 Introduce finer-grained effects 2018-07-29 13:40:49 +10:00
Nigel Tao 9919d78245 Change func out-type from struct to bare type 2018-07-29 10:02:06 +10:00
Nigel Tao bc82e51371 Rename wuffs-unsupported-snapshot.h 2018-07-21 09:20:10 +10:00
Nigel Tao 05c5b7ba2b Fold "wuffs genrelease" into "wuffs gen" 2018-07-14 12:04:38 +10:00
Nigel Tao 751eb693a5 Have "wuffs genlib" take a -skipgen flag 2018-07-14 11:51:33 +10:00
Nigel Tao b70bb379d8 Have "wuffs gen" and "wuffs test" do genrelease 2018-07-14 09:54:02 +10:00
Nigel Tao f2e683ab69 Have gen's "single file C library" be .h not .c 2018-07-14 09:26:10 +10:00
Nigel Tao a0bafff465 Ship as a "single file C library" 2018-07-14 08:59:36 +10:00
Nigel Tao 122c32cdad Rename gen/h/std/*.h to gen/c/std/*.h 2018-07-01 20:55:46 +10:00
Nigel Tao ccb78f5db7 Rename ast.Node methods from Foo to AsFoo 2018-07-01 20:41:21 +10:00
Nigel Tao ad9931ff2e Generate the release .h the same as gen/etc/*.h 2018-06-23 07:11:45 +10:00
Nigel Tao dccf0c60d7 Add a "wuffs genrelease" command 2018-06-16 11:47:35 +10:00
Nigel Tao fdb7d7f174 Add !! to the magic "C HEADER ENDS HERE" string 2018-06-16 09:04:34 +10:00
Nigel Tao 634789722d Assign values, not just messages, to status codes 2018-06-10 15:48:29 +10:00
Nigel Tao a1ed77cc35 Generate gen/c/base.c 2018-06-10 09:17:27 +10:00
Nigel Tao 0a61b0cc44 Fix iterscale flag default and usage 2018-05-05 11:41:08 +10:00
Nigel Tao 72bf2e16a1 Allow trailing slashes for "wuffs gen" 2018-05-04 17:40:37 +10:00
Nigel Tao ba98b04307 Add an iterscale flag 2018-05-04 17:17:59 +10:00
Nigel Tao 06ff3d3369 Add a cformatter flag
Fixes #10
2018-04-13 13:13:07 +10:00
Nigel Tao ed03c5943a Add pkg to ast Func, Struct and TypeExpr nodes 2017-12-29 12:08:17 +11:00
Nigel Tao 10e4936f08 Add pkg to ast Const and Status nodes 2017-12-28 15:14:55 +11:00
Nigel Tao 366a9388b3 Drop the "__pkg%08X" prefix in gen/wuffs code 2017-12-28 11:05:46 +11:00
Nigel Tao d92e90d4f0 Move func WuffsRoot to package generate 2017-12-28 11:02:49 +11:00
Nigel Tao b5d4d104e8 Generate .wuffs summary API code 2017-12-27 13:06:47 +11:00
Nigel Tao df4539f6ff Add a skipgendeps flag 2017-12-03 13:09:15 +11:00
Nigel Tao 9867cd5e3a Generate inline headers for use declarations 2017-12-02 14:54:58 +11:00
Nigel Tao 5f5791e56d Remove redundant builtin.TrimQuotes function 2017-12-02 12:25:50 +11:00
Nigel Tao 404b149a9a Have "wuffs gen" follow use "foo" dependencies 2017-12-02 12:18:16 +11:00
Nigel Tao a255958b41 Have "wuffs gen" skip duplicate packages 2017-12-02 11:36:45 +11:00
Nigel Tao 7b98b785f2 Refactor some cmd/wuffs code 2017-12-02 11:23:25 +11:00
Nigel Tao eda3130628 Rename PUFFS to WUFFS, part 6 of N 2017-11-30 16:43:39 +11:00
Nigel Tao 79a94558be Rename PUFFS to WUFFS, part 5 of N 2017-11-30 16:37:20 +11:00
Nigel Tao 7a6a598d1e Rename PUFFS to WUFFS, part 3 of N 2017-11-30 16:26:16 +11:00