Nigel Tao
8b1ffec576
Make struct impls private (opaque pointers)
...
This gives us flexibility to change sizeof(wuffs_foo__bar__struct)
across Wuffs versions, while retaining ABI / API compatibility.
In particular, this lets us add and remove fields.
2018-10-06 10:33:47 +10:00
Nigel Tao
26a448450e
Move C++ method impls inside struct definitions
2018-10-06 10:06:07 +10:00
Nigel Tao
5b82dd905a
Separate C struct declaration and definition
2018-10-06 09:45:03 +10:00
Nigel Tao
e26ba24fbf
Add wuffs_foo__bar__struct names
2018-10-06 09:41:50 +10:00
Nigel Tao
dc17398d64
Generate "WUFFS C HEADER ENDS HERE"
...
Future commits will mean more than one "#ifdef WUFFS_IMPLEMENTATION".
2018-10-06 09:12:04 +10:00
Nigel Tao
c4edf6ac25
Add sizeof__wuffs_foo__bar functions
2018-09-23 09:26:08 +10:00
Nigel Tao
9c04249bfe
Add warnings as another status code category
2018-08-26 23:22:45 +10:00
Nigel Tao
f836d3b743
Rename "check_wuffs_version called twice"
2018-08-19 17:08:36 +10:00
Nigel Tao
9367cd800b
Remove the (pointer-typed) private_impl.status
2018-08-19 11:32:31 +10:00
Nigel Tao
c1af1e2c82
Rename $(etc) to [etc]
2018-08-18 10:11:43 +10:00
Nigel Tao
eec0fce647
Change error "?foo" to status "?foo"
2018-08-12 21:31:56 +10:00
Nigel Tao
203b45e869
Remove status values
2018-08-12 19:36:29 +10:00
Nigel Tao
c499f03bc7
Delete obsolete wuffs_foo__status__string funcs
2018-08-12 19:10:24 +10:00
Nigel Tao
b840c80040
Make the status type a const char*, not a struct
2018-08-12 16:05:14 +10:00
Nigel Tao
e0311e3bb2
Don't generate header defs for private statuses
2018-08-12 14:08:04 +10:00
Nigel Tao
b385c30b4f
Add a "?" prefix to non-built-in status messages
2018-08-12 14:07:40 +10:00
Nigel Tao
0ed0ead057
Generate named strings for status messages
2018-08-12 11:28:13 +10:00
Nigel Tao
1462084531
Add a "?" or "$" prefix to status messages
2018-08-12 10:50:22 +10:00
Nigel Tao
2a32a86a6c
Make the status type a struct, not an int32_t
2018-08-11 13:27:29 +10:00
Nigel Tao
9c0b2d2f5c
Rename ioptr_etc cgen variables
2018-08-11 08:32:49 +10:00
Nigel Tao
fd43e777bc
Have check_wuffs_version return a status code
2018-08-05 22:29:54 +10:00
Nigel Tao
98b2aa9837
Move some Go packages from lang/foo to lib/foo
2018-08-04 09:17:08 +10:00
Nigel Tao
db04cf346f
Rename Struct.Optional to Struct.Classy
2018-08-04 08:57:27 +10:00
Nigel Tao
5cca9471ec
Have cgen look for !?? methods not ? methods
2018-07-29 14:01:57 +10:00
Nigel Tao
0a47966e72
Introduce finer-grained effects
2018-07-29 13:40:49 +10:00
Nigel Tao
4e70498189
Spin out base/image-public.h
2018-07-21 08:02:58 +10:00
Nigel Tao
fa95380a23
Have WUFFS_INCLUDE_GUARD cover the IMPLEMENTATION
2018-07-14 11:17:54 +10:00
Nigel Tao
d73353024c
Make clang-format place func names at line start
2018-07-14 10:33:06 +10:00
Nigel Tao
8a6e177701
Add WUFFS_CONFIG__STATIC_FUNCTIONS
2018-07-14 10:16:10 +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
30cfaa5db7
Add C++ convenience methods
2018-06-30 13:02:16 +10:00
Nigel Tao
fdb7d7f174
Add !! to the magic "C HEADER ENDS HERE" string
2018-06-16 09:04:34 +10:00
Nigel Tao
56491b384e
Add base-private.h. to base-impl.c
2018-06-16 08:17:20 +10:00
Nigel Tao
25a106903f
Have include guards start with WUFFS_INCLUDE_GUARD
2018-06-16 08:10:22 +10:00
Nigel Tao
e05b564656
Add WUFFS_CONFIG__MODULES macro
2018-06-11 10:00:02 +10:00
Nigel Tao
50a955317a
Remove the WUFFS_FOO__STATUS_ETC names
2018-06-10 22:05:06 +10:00
Nigel Tao
d770e879ab
Remove the wuffs_foo__status types
2018-06-10 21:40:43 +10:00
Nigel Tao
699bae15d2
Redo WUFFS_BASE_PRIVATE_H define guard generation
2018-06-10 21:25:37 +10:00
Nigel Tao
43bb14e886
Redo the encoding of error codes
2018-06-10 21:22:41 +10:00
Nigel Tao
2ac2424e77
Implement INSERT wuffs_base__status__string data
2018-06-10 20:34:34 +10:00
Nigel Tao
35af4c4841
Implement INSERT wuffs_base__status names
2018-06-10 20:12:04 +10:00
Nigel Tao
9c5d068f22
Generalize the "!! INSERT" mechanism
2018-06-10 19:50:39 +10:00
Nigel Tao
df96e48341
Rename some #ifndef WUFFS_BASE_HEADER_H guards
2018-06-10 09:37:30 +10:00
Nigel Tao
a1ed77cc35
Generate gen/c/base.c
2018-06-10 09:17:27 +10:00
Nigel Tao
caa398441f
Rename some cgen/base-* files
2018-06-10 08:08:36 +10:00
Nigel Tao
27e0139500
Have WUFFS_VERSION encode major.minor.patch
2018-06-09 08:08:18 +10:00
Nigel Tao
9afd91075d
Remove hard-coded cgen for the reset method
2018-06-02 12:26:00 +10:00