Der Teufel
da68e7f0cb
autodoc: add html tags to "null"
2023-01-24 19:07:25 +01:00
Loris Cro
af820bbb94
autodoc: init support for guides
2023-01-24 18:56:35 +01:00
kcbanner
5d46addd25
compiler_rt: re-enable divxf3 test on windows/llvm
2023-01-24 13:06:59 +02:00
kcbanner
4f6fdd67dd
debug: re-enable resource management test on x86_64 windows
2023-01-24 12:41:19 +02:00
David Gonzalez Martin
59d9afcb5c
[UEFI] Delete unnecessary padding and fix number_of_pages type
2023-01-23 21:05:38 -05:00
Andrew Kelley
ac28bedbee
Merge pull request #14418 from ifreund/assume-sentinel-sux
...
std: eliminate pointless meta.assumeSentinel() usage
2023-01-23 21:01:54 -05:00
kcbanner
c7a9c28310
update zig1.wasm
2023-01-23 13:48:37 -05:00
kcbanner
77084093d8
cbe: handle building for -msvc using clang and -gnu using msvc
2023-01-23 13:48:37 -05:00
kcbanner
4a330ab811
target: use 16 byte alignment for 128-bit types on x86 and ofmt .c
2023-01-23 13:48:37 -05:00
kcbanner
0d249e558a
cbe: fixup handling of c_longdouble for msvc abi
2023-01-23 13:48:36 -05:00
kcbanner
a7209e7d12
cbe: fixup zig_export for x86
2023-01-23 13:48:36 -05:00
kcbanner
b22b84de9d
cbe: fixup x86 atomics
...
- add zig_msvc_atomic_barrier()
- fix zig_msvc_atomic_load_p32
2023-01-23 13:48:36 -05:00
kcbanner
1aa2c32055
cbe: fixes for x86
...
- Emit calling convention
- Fix .Naked handling for msvc
- Add teb helper for x86
- Fix 128-bit shl implementation when rhs is >= 64
- Add 128-bit shl tests
2023-01-23 13:48:36 -05:00
Isaac Freund
186e805838
std.net.Address: clarify unix socket getOsSockLen
2023-01-23 14:49:06 +01:00
Isaac Freund
faf2fd18d3
std: eliminate pointless meta.assumeSentinel() usage
...
This fixes a bug in std.net caused during the introduction of
meta.assumeSentinel due to the unfortunate semantics of mem.span()
This leaves only 3 remaining uses of meta.assumeSentinel() in the
standard library, each of which could be a simple @ptrCast([*:0]T, foo)
instead. I think this function should likely be removed.
2023-01-23 12:19:53 +01:00
Manlio Perillo
05c7f7abf1
build: fix incorrect name in InstallArtifactStep
...
Rename the full_pdb_path variable to full_h_path, in the
InstallArtifactStep.make method.
2023-01-23 02:07:37 -05:00
Jan Philipp Hafer
55e879d2ed
std.os.windows: add possible error NETNAME_DELETED of ReadFile
...
Closes #13631
2023-01-23 02:07:12 -05:00
Mateusz Poliwczak
bbbc4ebf03
support P256 in x509
2023-01-22 17:24:45 -05:00
fn ⌃ ⌥
33682a29c6
Rewrite update_crc_catalog in zig and move tests to separate file
2023-01-22 07:16:49 -08:00
fn ⌃ ⌥
6089ed9ee7
Merge branch 'master' into crc
2023-01-22 05:30:38 -08:00
fn ⌃ ⌥
f85c01d4c7
Implement gzip header CRC check.
...
From RFC 1952:
> If FHCRC is set, a CRC16 for the gzip header is present,
> immediately before the compressed data. The CRC16 consists
> of the two least significant bytes of the CRC32 for all
> bytes of the gzip header up to and not including the CRC16.
2023-01-22 00:33:29 -05:00
Jakub Konka
562d52e23d
Merge pull request #14397 from ziglang/macho-unwind-info
...
zld: handle parsing and synthesising unwind info in the MachO linker
2023-01-22 00:44:44 +01:00
Stephen Gregoratto
7f635ae7bd
FreeBSD: add mcontext_t for aarch64
...
What isn't disabled for test-std mostly passes, except for the copysign
and signbit tests for f16. Seemingly related to #14366 .
2023-01-21 23:20:50 +02:00
fn ⌃ ⌥
be4468be37
std.hash.crc: implement algorithms listed in CRC RevEng catalog
2023-01-21 07:04:09 -08:00
Jakub Konka
24f6c07653
std.macho: add OLD = 0 as valid mode for both arm64 and x86_64
2023-01-21 13:18:14 +01:00
Andrew Kelley
6d38dba72e
std.build.LibExeObjStep: avoid putting static libs inside static libs
2023-01-20 19:31:38 -07:00
Andrew Kelley
7ea3937c5a
std.build.LibExeObjStep: better handle transitive deps
...
* no longer repeat -lc on the linker line redundantly
* when using linkLibrary() with a static library, it will now also put
the static library's static library dependencies on the linker line,
recursively.
* refactor out a common pattern to an addFlag function
2023-01-20 16:58:31 -07:00
mlugg
d3599ec73c
std: implement os.mprotect on Windows
2023-01-20 03:33:35 +02:00
Jarred Sumner
a9eb463202
Make res nullable in getaddrinfo
2023-01-19 23:08:15 +02:00
山下
6c98c8d891
Wildcard certs should only validate one level of sub domain
2023-01-19 19:13:42 +00:00
Marco Munizaga
d87a58dfab
Add framework paths from NIX_CFLAGS_COMPILE
2023-01-19 16:57:55 +02:00
IntegratedQuantum
f38fd388f8
Mutex deadlock detection in debug
...
Add a debug implementation to Mutex that detects deadlocks caused by calling lock twice in a single thread.
2023-01-19 16:57:29 +02:00
star-tek-mb
116b770809
fix selectSymbol function pointers
2023-01-19 16:34:02 +02:00
Adrian Cole
7208e1ff87
wasm: avoids allocating zero length buffers for args or env
...
I was testing this with wazero, which defaults to not propagate any env
variables. This ensures we don't try to allocate zero length buffers
when there are no results from either function.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2023-01-19 15:34:38 +02:00
Jakub Konka
c70a3d9022
macho: port arm64 and x86_64 compact unwind defs verbatim
...
We do not need more for the purpose of parsing and synthesising
unwind info by the linker. If we ever decide to generate unwind
info for Zig by the compiler, we can re-add packed struct defs
again.
2023-01-19 03:44:42 +01:00
Michael Dusan
c9f7b32fbd
netbsd: add mcontext_t for aarch64
...
- test `lib/std/std.zig` passes
- stack traces work
2023-01-18 02:50:11 -05:00
Andrew Kelley
7f604b6f48
Merge pull request #14333 from Vexu/fixes
...
Misc fixes
2023-01-17 21:32:13 -05:00
Veikka Tuominen
841b38aae8
tokenizer: detect null as non-first byte of a line comment
...
Line comments do not produce actual tokens so they need special
handling for null bytes.
Closes #14346
2023-01-17 20:39:19 +02:00
fn ⌃ ⌥
2623e1c4d6
Add std.os.darwin.cssm
2023-01-17 09:51:39 -08:00
fn ⌃ ⌥
faf0fe4305
std.crypto.Certificate.Bundle: use parseCert in rescanWindows
2023-01-17 08:59:38 -08:00
fn ⌃ ⌥
40c400ec9e
std.crypto.Certificate.Bundle: clear bundle before macOS rescan
2023-01-17 08:58:06 -08:00
Andrew Kelley
f3107e2cb2
Merge pull request #14344 from ziglang/config-header-step
...
zig build: enhance LibExeObjStep and ConfigHeaderStep
2023-01-17 08:10:36 -05:00
Andrew Kelley
65586b9869
std.build.LibExeObjStep: change installHeader API
...
Now it always takes a dest_rel_path parameter, making it slightly more
verbose, and much more useful.
2023-01-17 00:45:04 -07:00
Andrew Kelley
6db3869fc7
std.build.ConfigHeaderStep: support cmake syntax
...
It's not fully implemented yet, for example `@FOO@` syntax is not
handled.
2023-01-17 00:44:57 -07:00
Andrew Kelley
d35d086ae6
std.crypto.Certificate: add more object id
2023-01-17 00:09:38 -07:00
Andrew Kelley
7623f3fad0
std.crypto.Certificate: skip unknown attributes
2023-01-17 00:09:34 -07:00
Andrew Kelley
86308ba1e1
std.net.getAddressList: call WSAStartup on Windows
2023-01-17 00:08:42 -07:00
Andrew Kelley
62e3fdcf4f
std.crypto.Certificate: add more object ids
2023-01-17 00:08:42 -07:00
Andrew Kelley
09560bc69a
clean up windows cert scanning
...
* keep helper functions out of the DLL bindings APIs
* unify the logic for linux and windows certificate scanning with
regards to error handling
2023-01-17 00:08:42 -07:00
star-tek-mb
1f9fa82235
windows root certificate scanning
2023-01-17 00:08:42 -07:00