Nigel Tao
df1d4f64e2
check: ban recursive function calls
2023-11-04 22:51:40 +11:00
Nigel Tao
b20c177a08
check: run some phases once not once-per-file
2023-11-04 16:36:04 +11:00
Nigel Tao
357bfdaef3
check: ban non-base types from method args
2023-11-04 09:34:18 +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
e766e9ecde
check: ensure interface methods are public
2023-10-06 10:48:07 +11: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
6411561deb
check: add maxPointerBounds and funcBounds
2023-06-13 11:52:16 +10:00
Nigel Tao
95630b6677
lang/check: tighten checkConstElement constraint
2023-04-16 11:50:30 +10:00
Nigel Tao
29c4122360
lang: have hasher_u32.update_u32 take a roslice
2023-04-10 21:16:53 +10:00
Nigel Tao
ea3fbc37f5
lang: change const array to const roarray
2023-04-10 16:06:10 +10:00
Nigel Tao
f3caf09d77
lang: add read-only type decorators
2023-04-10 15:29:12 +10:00
Nigel Tao
3e93ffe175
Type check const's array length and elem count
2022-05-24 13:56:24 +10:00
Nigel Tao
2373340f83
Add base.ANIMATION_DISPOSAL__ETC constants
2021-11-09 09:53:29 +11:00
Nigel Tao
41e407a774
Add some ast.Expr.IsEtc methods
2021-03-28 23:07:21 +11:00
Nigel Tao
62ee403d06
Add arm_neon u8x8, u16x4, etc types
2021-02-24 14:28:45 +11:00
Nigel Tao
fd071dfc90
Ban cpu_arch types from fields and func args/rets
2021-02-18 14:13:53 +11:00
Nigel Tao
26a7280900
Add slice base.u8 peek/poke methods
...
wuffs_png_decode_filter_1_sub/clang9 4.59GB/s ± 0% 4.59GB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_png_decode_filter_1_sub/gcc10 1.85GB/s ± 0% 4.11GB/s ± 0% +122.24% (p=0.016 n=5+4)
2021-01-17 23:47:37 +11:00
Nigel Tao
afc6bb9ec3
Add base.sse128_i
2021-01-15 15:47:56 +11:00
Nigel Tao
020b8e6903
Add cpu_arch
2021-01-15 10:26:55 +11:00
Nigel Tao
ed48514f30
Remove ast.NewExpr statusPkg arg
2020-06-10 12:05:48 +10:00
Nigel Tao
3b1d3d0a39
Remove check.Error.OtherFoo fields
2020-06-09 17:00:24 +10:00
Nigel Tao
6f43ab4b92
Reject duplicate top level names
2020-06-09 16:59:43 +10:00
Nigel Tao
7e32336de0
Add base.PIXEL_FORMAT__ETC constants
2020-06-09 12:34:34 +10:00
Nigel Tao
ee23f8b3d9
Move loop/jump matching from check to parse
2020-04-03 10:26:35 +11:00
Nigel Tao
fb9a0964a2
Fix associative op const-value calculation
2020-02-08 14:54:00 +11:00
Nigel Tao
a6ee0ee391
Remove builtin.ParseFuncs "generic" argument
2020-01-11 10:37:37 +11:00
Nigel Tao
ea54c2ea11
Add syntax support for implementing interfaces
2020-01-09 15:45:29 +11:00
Nigel Tao
be2d96bb27
Add public max_incl_workbuf_len constants
2019-02-02 15:51:04 +11:00
Nigel Tao
1af543866c
Add an implicit coroutine_resumed variable
2019-01-13 11:41:58 +11:00
Nigel Tao
1ea32b3745
Remove the !? effect, leaving only ! and !??
2018-12-29 13:36:38 +11:00
Nigel Tao
cbe19f50e0
Restrict var statements to the top of functions
2018-12-27 11:19:22 +11:00
Nigel Tao
20e82ba97b
Use interval.IntRange instead of ast.Bounds
2018-12-26 14:02:34 +11:00
Nigel Tao
24ace1c144
Type and bounds check the "x" in "return x"
2018-11-24 14:46:52 +11:00
Nigel Tao
c84732f3d3
Quote built-in statuses
2018-11-24 13:42:18 +11:00
Nigel Tao
9e5aec5d25
Change "$foo" to base."$foo"
2018-11-24 13:36:09 +11:00
Nigel Tao
5f9d007b1c
Make a struct's implicit reset method impure
2018-11-24 11:05:39 +11:00
Nigel Tao
c1af1e2c82
Rename $(etc) to [etc]
2018-08-18 10:11:43 +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
98b2aa9837
Move some Go packages from lang/foo to lib/foo
2018-08-04 09:17:08 +10:00
Nigel Tao
ca06083f8a
Rename the implicit in variable to args
2018-07-29 10:26:22 +10:00
Nigel Tao
58ded30954
Remove the implicit out variable
2018-07-29 10:10:58 +10:00
Nigel Tao
9919d78245
Change func out-type from struct to bare type
2018-07-29 10:02:06 +10:00
Nigel Tao
ee95b548ab
Ensure that all AST nodes are bounds checked
2018-07-08 10:42:44 +10:00
Nigel Tao
731ca8841b
Add a TypeExpr type expression
2018-07-07 21:57:15 +10:00
Nigel Tao
295cbbccae
Check that expr's don't have placeholder type
2018-07-07 21:36:26 +10:00
Nigel Tao
6ede44e474
Set placeholder MBounds, not just MType
2018-07-07 19:28:51 +10:00
Nigel Tao
a506657c53
Make every expression have non-nil bounds
2018-07-07 17:36:05 +10:00
Nigel Tao
ae41c7ceb5
Add an ast.Bounds type
2018-07-07 08:43:23 +10:00
Nigel Tao
ccb78f5db7
Rename ast.Node methods from Foo to AsFoo
2018-07-01 20:41:21 +10:00