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
ea3fbc37f5
lang: change const array to const roarray
2023-04-10 16:06:10 +10:00
Nigel Tao
f5eb38d76e
wuffsfmt: indent with 4 spaces (not a tab)
2023-04-09 15:28:07 +10:00
Nigel Tao
9c03b8c71d
wuffsfmt: double-indents hanging lines
2023-04-09 15:22:25 +10:00
Nigel Tao
6bc3f5716d
Add "#json: bad new-line in a string"
2020-08-29 23:23:15 +10:00
Nigel Tao
28ef6a7862
Add fuzz/c/std/cbor_fuzzer.c
2020-08-10 22:29:08 +10:00
Nigel Tao
1adbc9547f
Split std/json's QUIRK_ALLOW_BACKSLASH_X in two
2020-08-06 23:28:07 +10:00
Nigel Tao
84bb3afd87
Lower json.DECODER_NUMBER_LENGTH_MAX_INCL to 99
...
Commit b9f69264a0 "Raise
json.DECODER_NUMBER_LENGTH_MAX_INCL to 2047" might have regressed the
std/json benchmarks.
2020-07-07 23:29:30 +10:00
Nigel Tao
b9f69264a0
Raise json.DECODER_NUMBER_LENGTH_MAX_INCL to 2047
2020-07-07 23:08:11 +10:00
Nigel Tao
66b0a12b6c
Add json.EXPECT_ETC constants
2020-06-09 23:50:35 +10:00
Nigel Tao
1f424b2ea7
Propagate const-values to idents of consts
2020-04-16 09:37:05 +10:00
Nigel Tao
e39f3cbf42
Redo Wuffs structs' quirk bool fields
2020-04-14 23:03:18 +10:00
Nigel Tao
532e18c4a5
Add colons to const syntax
2020-04-14 14:57:30 +10:00
Nigel Tao
80071730a3
Add std/json CLASS_XXX constants
2020-04-13 16:06:16 +10:00
Nigel Tao
74871344f0
Capitalize Wuffs const names
2020-04-13 15:52:36 +10:00
Nigel Tao
d83bd8d036
Add std/json quirk_allow_ascii_control_codes
2020-04-07 17:50:47 +10:00
Nigel Tao
2db72dabe5
Re-assign JSON quirk numbers
2020-04-07 17:17:54 +10:00
Nigel Tao
f3146c2ea9
Add base.token_decoder.workbuf_len
2020-03-26 08:47:42 +11:00
Nigel Tao
d7c72373f3
Add std/json quirk_allow_inf_nan_numbers
2020-03-24 13:58:38 +11:00
Nigel Tao
21f6a5df4a
Add std/json CLASS_COMMENT
2020-03-21 22:33:39 +11:00
Nigel Tao
97f7f28218
Add std/json backslash-related quirks
2020-03-19 15:56:21 +11:00
Nigel Tao
a5184edd6a
Fix std/json's checking of number length too long
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21051
2020-03-06 21:05:44 +11:00
Nigel Tao
771d4f9d98
Add std/json lut_decimal_digits
...
name old speed new speed delta
wuffs_json_decode_1k/clang5 1.13GB/s ± 0% 1.12GB/s ± 1% -1.01% (p=0.002 n=10+10)
wuffs_json_decode_21k_formatted/clang5 576MB/s ± 1% 595MB/s ± 1% +3.29% (p=0.000 n=10+10)
wuffs_json_decode_26k_compact/clang5 873MB/s ± 1% 907MB/s ± 1% +3.81% (p=0.000 n=10+10)
wuffs_json_decode_217k_stringy/clang5 727MB/s ± 0% 750MB/s ± 0% +3.14% (p=0.000 n=10+8)
wuffs_json_decode_1k/gcc9 1.10GB/s ± 1% 1.11GB/s ± 1% +0.43% (p=0.035 n=10+10)
wuffs_json_decode_21k_formatted/gcc9 628MB/s ± 0% 618MB/s ± 1% -1.59% (p=0.000 n=10+10)
wuffs_json_decode_26k_compact/gcc9 892MB/s ± 0% 888MB/s ± 1% -0.43% (p=0.023 n=10+10)
wuffs_json_decode_217k_stringy/gcc9 724MB/s ± 1% 733MB/s ± 1% +1.28% (p=0.000 n=10+10)
2020-03-05 11:17:57 +11:00
Nigel Tao
21682f403f
Add fuzz/c/std/json_fuzzer.c
2020-03-01 12:01:42 +11:00
Nigel Tao
3b17d5b28a
Have std/json reject some invalid UTF-8
2020-02-26 14:36:23 +11:00
Nigel Tao
9f0eb266e8
Rename std/json Look-Up Table consts
2020-02-26 11:43:50 +11:00
Nigel Tao
d1a4abe321
Refactor std/json expected-character-class check
2020-02-22 09:03:07 +11:00
Nigel Tao
48e7004636
Add std/json character classes
2020-02-22 08:07:26 +11:00
Nigel Tao
9263c80cfb
Factor out std/json/common_consts.wuffs
2020-02-22 07:24:22 +11:00