zig/lib/std/c
zooster 4055e6055b
AstGen: disallow leading zeroes in int literals and int types
This makes `0123` and `u0123` etc. illegal.

I'm now confident that this is a good change because
I actually caught two C header translation mistakes in `haiku.zig` with this.
Clearly, `0123` being octal in C (TIL) can cause confusion, and we make this easier to read by
requiring `0o` as the prefix and now also disallowing leading zeroes in integers.

For consistency and because it looks weird, we disallow it for integer types too (e.g. `u0123`).

Fixes #11963
Fixes #12417
2022-08-18 19:54:51 +03:00
..
darwin macos: add more mach primitives 2022-03-13 09:42:24 +01:00
darwin.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
dragonfly.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
emscripten.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
freebsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
fuchsia.zig remove redundant license headers from zig standard library 2021-08-24 12:25:09 -07:00
haiku.zig AstGen: disallow leading zeroes in int literals and int types 2022-08-18 19:54:51 +03:00
hermit.zig std: reorganization that allows new usingnamespace semantics 2021-09-01 17:54:06 -07:00
linux.zig Merge pull request #11598 from aiotter/master 2022-05-26 20:11:54 -04:00
minix.zig target: Rename sparcv9 -> sparc64 2022-05-13 16:43:59 -04:00
netbsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
openbsd.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
solaris.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
tokenizer.zig stage2: fix bugs preventing stage2 from building stage3 with LLVM 2022-04-15 23:32:26 +03:00
wasi.zig stdlib: Add emulated CWD to std.os for WASI targets 2022-03-03 14:31:49 -07:00
windows.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00