Nigel Tao
abdfa0d946
base: compact returns the change in writer length
2024-09-22 11:51:05 +09:30
Nigel Tao
00a01abc4e
base: avoid some (ptr + len) when ptr is NULL
...
Updates #135
2024-04-05 15:52:40 +11:00
Nigel Tao
d7f6b81d31
base: have empty_foo() functions use NULL ptr
...
This largely reverts commit f81deb6b6e .
Updates #135
2024-04-05 15:29:51 +11:00
Nigel Tao
82ea1985b4
base: add optional_u63 type
2023-11-19 12:02:24 +11:00
Nigel Tao
9a68ec70c6
base: use wuffs_private_impl__etc names
2023-11-02 22:30:10 +11:00
Nigel Tao
dd75f3215a
base: tweak etc_with_non_null_address var names
2023-10-24 20:47:23 +11:00
Nigel Tao
f81deb6b6e
base: have empty_foo() functions use non-NULL ptr
...
Fixes #135
2023-10-19 19:31:59 +11:00
Nigel Tao
ae8531f7f8
cgen: generate "foo(void)" instead of "foo()"
...
This was discovered by "gcc -Wstrict-prototypes".
Updates #132
2023-10-07 11:36:53 +11:00
Patrick Georgi
f563f32f82
Add SPDX identifier to license headers
...
SPDX is an ISO standard for describing licenses in a computer readable
format, which is useful when applying license compliance tools and the
like to source code.
In addition to ensuring that the Wuffs C distribution is properly
annotated to the benefit of projects using Wuffs and SPDX-supporting
tools, add it everywhere else where there's a license in this repo for
consistency, too.
2023-10-06 20:52:36 +02:00
Nigel Tao
74a6ea2fcd
all: relicense from Apache2 to dual Apache2/MIT
...
The LICENSE has changed from a single license (Apache2) to a dual
license (Apache2 or MIT, at your option).
If you've previously used Wuffs under the Apache2 license, you are able
to keep doing so. No further action required by you.
The two files listed below (previous releases) are exceptions, as they
are older snapshots, frozen in time. Their license has not changed:
release/c/wuffs-v0.2.c
release/c/wuffs-v0.3.c
Every name in the AUTHORS file, other than Google Inc., has signed
Google's CLA (Contributor License Agreement).
2023-10-06 10:00:59 +11:00
Nigel Tao
5fb82e7d0a
std: add compact_retaining, history_retain_length
2023-10-05 13:24:44 +11:00
Nigel Tao
6e8349129c
base: remove deprecated names
2023-04-09 16:12:49 +10:00
Nigel Tao
1d19157668
Remove After editing... run "go generate" lines
2021-08-22 12:57:39 +10:00
Nigel Tao
c79129a853
Restore deprecated {reader,writer}_io_position
2020-12-15 16:23:02 +11:00
Nigel Tao
fef7967e08
Delete deprecated {reader,writer}_io_position
2020-10-09 21:29:11 +11:00
Nigel Tao
4f1d24c070
Add names to "typedef struct { ... } foo" types
2020-09-23 22:02:53 +10:00
Nigel Tao
6069ebd619
Rename {read,writ}er_io_position
2020-08-27 23:32:53 +10:00
Nigel Tao
3832b04c93
Tweak wuffs_base__io_buffer_meta.pos comment
2020-08-26 10:29:17 +10:00
Nigel Tao
a4f2bbb249
Update cgen/base run "go generate" comment
2020-07-28 14:15:24 +10:00
Nigel Tao
d6a10dfe8a
Add io_buffer.{read,writ}er_slice methods
2020-07-27 11:47:47 +10:00
Nigel Tao
64dbd00b07
Rename wuffs_base__make_etc_buffer_{read,writ}er
2020-04-02 22:21:36 +11:00
Nigel Tao
9fd96e8e44
Add io_buffer and token_buffer methods
2020-03-17 13:38:37 +11:00
Nigel Tao
b0f18dacbd
Remove deprecated wuffs_base__null_etc functions
2019-10-05 16:27:53 +10:00
Nigel Tao
344efe7926
Remove deprecated io_buffer reader method
2019-09-21 17:34:50 +10:00
Nigel Tao
ea3dbc5f2d
Restore deprecated io_buffer reader method
2019-09-14 13:04:45 +10:00
Nigel Tao
a4195136bb
Remove unnecessary etc__io_buffer__struct C name
2019-07-21 16:37:06 +10:00
Nigel Tao
6886500d71
Remove deprecated io_buffer reader/writer methods
2019-07-21 16:35:22 +10:00
Nigel Tao
392c8c544a
Rename null_io_buffer etc to empty_io_buffer
2019-07-13 10:55:51 +10:00
Nigel Tao
fcec430152
Unexport wuffs_base__null_io_{reader,writer}
2019-07-07 17:31:51 +10:00
Nigel Tao
aa846d2dd7
Remove io_{reader,writer} C types
2019-07-06 17:23:34 +10:00
Nigel Tao
f34d189236
Collapse trivial io_{reader,writer} buffer field
2019-07-06 16:47:47 +10:00
Nigel Tao
931b8e37f9
Remove unused limit/mark I/O fields
...
name old speed new speed delta
wuffs_deflate_decode_1k_full_init/clang5 146MB/s ± 0% 149MB/s ± 1% +2.33% (p=0.000 n=9+10)
wuffs_deflate_decode_1k_part_init/clang5 180MB/s ± 0% 183MB/s ± 0% +1.46% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_full_init/clang5 229MB/s ± 0% 244MB/s ± 0% +6.53% (p=0.000 n=9+10)
wuffs_deflate_decode_10k_part_init/clang5 236MB/s ± 1% 251MB/s ± 0% +6.38% (p=0.000 n=10+10)
wuffs_deflate_decode_100k_just_one_read/clang5 266MB/s ± 0% 278MB/s ± 1% +4.75% (p=0.000 n=9+10)
wuffs_deflate_decode_100k_many_big_reads/clang5 224MB/s ± 0% 238MB/s ± 0% +6.03% (p=0.000 n=10+10)
wuffs_deflate_decode_1k_full_init/gcc7 151MB/s ± 2% 151MB/s ± 0% ~ (p=0.965 n=10+8)
wuffs_deflate_decode_1k_part_init/gcc7 187MB/s ± 1% 188MB/s ± 0% +0.57% (p=0.001 n=10+9)
wuffs_deflate_decode_10k_full_init/gcc7 261MB/s ± 1% 259MB/s ± 1% -0.91% (p=0.000 n=10+10)
wuffs_deflate_decode_10k_part_init/gcc7 269MB/s ± 0% 268MB/s ± 0% -0.65% (p=0.000 n=10+9)
wuffs_deflate_decode_100k_just_one_read/gcc7 314MB/s ± 0% 312MB/s ± 0% -0.49% (p=0.000 n=10+10)
wuffs_deflate_decode_100k_many_big_reads/gcc7 249MB/s ± 0% 247MB/s ± 0% -1.08% (p=0.000 n=10+10)
2019-07-06 12:07:53 +10:00
Nigel Tao
9f76003177
Add doc/note/io-input-output.md
2019-07-01 14:22:57 +10:00
Nigel Tao
31c6eabfe8
Add io_buffer {reader,writer}_available methods
2019-04-20 11:16:26 +10:00
Nigel Tao
3ff7c707af
Have some base types' methods accept const this
2019-04-20 07:50:09 +10:00
Nigel Tao
ed52fdecb9
Rework how we avoid clang's -Wunused-function
...
The previous technique to avoid this was to have explicit
(void)(wuffs_foo__bar_baz);
no-op lines of code. However, on MSVC, this triggers warning C4551
"function call missing argument list".
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4551
says that "A function call must include the open and close parentheses".
But this is not a function call, it is casting the function pointer.
This false positive is a bug in MSVC, but we work around it for Wuffs.
2019-04-07 14:36:09 +10:00
Nigel Tao
5a98f06cab
Add some make_foo and null_foo constructors
2019-03-09 14:50:32 +11:00
Nigel Tao
6826f2f748
Move internal/cgen up a couple of directories
2019-03-09 13:28:59 +11:00