Bogdan Romanyuk
c4dbfd5ae1
std.enums: make Ext parameter optional
...
According to #8169 optional generic functions work fine in comptime so it's possible
2023-05-10 16:15:41 +03:00
Ali Chraghi
05ceac52c9
std.Build: support #cmakedefine01 pattern
2023-05-10 16:10:03 +03:00
Travis Staloch
5d1e69389c
std.enums: add tagName()
...
This is safe alternative to `@tagName()` for non-exhaustive enums that
doesn't panic when given an enum value that has no tag.
2023-05-10 16:07:34 +03:00
Brett Hill
37f56a4259
Issue 15535. Normalize remainder in math.big.int.Managed.divTrunc
2023-05-10 16:01:17 +03:00
Meghan
0972196f4d
std.meta: remove tagName
...
not used by Zig itself anywhere
2023-05-10 16:00:14 +03:00
0x5a4
11fabc4cbe
fix 'zig build test' crashing with no tests
...
fixes #15553
2023-05-10 00:43:45 -07:00
David CARLIER
5260657230
std.c: add freebsd's kinfo_vmobject
2023-05-10 01:48:35 +03:00
David CARLIER
10a7cf58c1
std.c: adding freebsd's domainset_t bitset
2023-05-10 01:13:15 +03:00
Pyry Kovanen
ffccd70671
tls: update finishRead2 for new @memcpy semantics
2023-05-09 14:47:04 -07:00
Loris Cro
8e9c9f6fdc
Merge pull request #15623 from der-teufel-programming/autodoc-backing-int
...
Autodoc: backing integer types for packed structs
2023-05-09 20:09:42 +02:00
David Carlier
e21739dd8c
std.fs: selfExePath haiku using constants instead
2023-05-09 14:24:20 +03:00
David CARLIER
e8f76b452b
std.c: adding freebsd's domainset api
2023-05-09 14:24:03 +03:00
David Carlier
1585ed637d
std.c: openbsd sigcontext/ucontext for arm64.
2023-05-09 14:23:46 +03:00
David CARLIER
3dd0afe787
std.c: adding freebsd's kinfo_proc type.
2023-05-09 12:04:53 +03:00
Krzysztof Wolicki
9c8b9719cb
autodoc: Fix exprName for struct and union types
2023-05-09 10:51:19 +02:00
Krzysztof Wolicki
b488f97e92
autodoc: Analyze and expose backing integer types for packed structs
2023-05-08 22:34:46 +02:00
Krzysztof Wolicki
f2aa7c8698
autodoc: Remove rendering "tuple" as part of the name in exprName
2023-05-08 22:29:20 +02:00
Jacob Young
0bd92da0e2
target: fix typos in x86 feature descriptions
2023-05-08 07:36:20 -04:00
Jayden
b18b4db709
parse_float: Error when a float is attempted to be parsed into an invalid type
...
Co-authored-by: Ryan Liptak <squeek502@hotmail.com>
2023-05-08 10:42:24 +00:00
Dominic
5a3eca5d4c
Disallow named test decls with duplicate names
2023-05-08 10:59:06 +03:00
Jacob Young
bac3a28214
fmt: avoid canonicalizing enum fields named @"_" to _
...
This can be used to escape the usual meaning of `_` to indicate a
non-exhaustive enum and create an enum tag that is a literal underscore,
so zig fmt should allow this syntax.
Before, zig fmt changes
const E = enum { @"_" };
to the semantically different
const E = enum { _ };
After, it remains the same.
2023-05-08 10:58:31 +03:00
David CARLIER
ff59c45840
std.c: darwin add host_info based data.
2023-05-07 17:05:03 +03:00
Dominic
e1f5ad3cc8
Fix parsing of hexadecimal literals
2023-05-07 08:05:53 +00:00
Jakub Konka
49c1384bac
elf: fix typo in def of SHT_LLVM_ADDRSIG
2023-05-07 09:09:19 +02:00
Jakub Konka
66ff7d9161
elf: add more missing defs for SHT_* and SHF_*
2023-05-07 09:05:18 +02:00
David CARLIER
4bfd37ddb4
std.c: adding cpu affinity api for macOs (mainly x86_64)
2023-05-06 00:55:20 +03:00
Veikka Tuominen
a111130977
Merge pull request #15317 from devnexen/darwin_rand_nativegen
...
std: add CCRandomGenerateBytes macOs native api.
2023-05-05 19:52:05 +03:00
Krzysztof Wolicki
538c8258c7
autodoc: Remove debug code
2023-05-05 12:01:00 +02:00
Krzysztof Wolicki
e0c65ce3f2
autodoc: main.js exprName cleanup
2023-05-05 02:46:04 +02:00
Krzysztof Wolicki
e363ffad90
autodoc: Better comptimeExpr code for blocks
2023-05-05 01:46:19 +02:00
David CARLIER
012f9a97eb
std.c: add os_proc_available_memory for darwin
2023-05-04 10:13:11 +03:00
Veikka Tuominen
3f3b1a6808
std.Build: use Step.* instead of *Step
...
Follow up to 13eb7251d37759bd47403db304c6120c706fe353
2023-05-03 20:55:29 -07:00
Jonathan Marler
5def162391
fix bug and simplify std.crypto.tls.Client.limitVecs
2023-05-03 20:52:18 -07:00
Carl Åstholm
8d6336420b
std.log.defaultLog: remove freestanding compile error
2023-05-03 11:19:37 +03:00
Nicolas Sterchele
13eb7251d3
build: rename std.Build.*Step to std.Build.Step.*
...
Follow-up actions from #14647
Fixes #14947
2023-05-03 08:39:24 +03:00
Tw
855493bb8b
bpf: correct return type of ringbuf_output helper
...
Signed-off-by: Tw <weii.tan>
2023-05-03 08:37:40 +03:00
David CARLIER
b9841750f9
std.c: adding freebsd's CPU_COUNT macro portage.
2023-05-03 08:19:46 +03:00
DraagrenKirneh
e9cbdb2cfd
Add a random generated prefix to the unix socket_path to guard against multiple tests/threads running the same test at the same time
2023-05-02 23:31:29 +03:00
Jacob Young
10a4c2269d
x86_64: enable normal start/test_runner logic on more targets
2023-05-01 19:22:52 -04:00
Jacob Young
00ae3592e6
test_runner: use const to control verbose output
2023-05-01 19:22:52 -04:00
jcalabro
2892347440
Fix PBKDF2 docstring comment
2023-05-01 22:14:51 +03:00
Mason Remaley
e963793e37
Updates std.meta.intToEnum to support non-exhaustive enums ( #15491 )
...
This was preventing `std.json` from deserializing non-exhaustive enums.
2023-05-01 05:03:46 +00:00
David CARLIER
6ae19fa48d
std.c: add essential freebsd's capsicum api subset.
2023-04-30 19:44:10 -07:00
Linus Groh
94e30a756e
std: fix a bunch of typos
...
The majority of these are in comments, some in doc comments which might
affect the generated documentation, and a few in parameter names -
nothing that should be breaking, however.
2023-04-30 18:16:04 -07:00
dweiller
1b432072b5
std.Build: detect and disallow top-level step name clashes
2023-04-30 16:34:34 -07:00
David CARLIER
3fb93fc8f2
std.c: freebsd add procctl exclusive x86_64 flags
2023-04-30 12:28:36 +03:00
David CARLIER
4f248e1b51
std.c:complete further more netbsd's mmap flags
2023-04-30 12:21:35 +03:00
Andrew Kelley
c83ab7cc6a
Merge pull request #15503 from r00ster91/noinline
...
Sema: emit error for always_inline call of noinline function
2023-04-29 11:13:51 -07:00
Loris Cro
13aaa16ab2
Merge pull request #15478 from der-teufel-programming/autodoc-decltests
...
autodoc: Gather and display decltests
2023-04-29 18:23:18 +02:00
David CARLIER
05f9608115
std.c: add mincore api to darwin.
2023-04-29 14:25:37 +03:00