Lucas Culverhouse
5b7eefce46
std.math.cbrt: fixed -0.0 evaluating to 0.0
2023-09-12 18:39:34 +00:00
Ruben Dimas
402468b210
std.math.asinh: changed unsigned int to hexadecimal
2023-09-12 22:22:07 +12:00
Ruben Dimas
a8a4f1755e
std.math.asinh: fixed -0.0 evaluating to 0.0
2023-09-12 22:22:07 +12:00
Techatrix
7827265ea8
json: respect max_value_len when parsing std.json.Value ( #17107 )
2023-09-11 17:00:06 -04:00
Arnau
a0968be83c
Documented linksection
...
Fixes #1520
2023-09-11 10:54:59 +03:00
Jakub Konka
975cb235cc
Merge pull request #17081 from Techatrix/wasm-float-op
...
wasm: implement more float operations on f80 and f128
2023-09-11 07:59:30 +02:00
Michael Dusan
acc9471915
doc: inline comptime conditional block
...
Better illustrate what happens to the block after inlining comptime
conditionals.
closes #17106
2023-09-11 00:29:56 +03:00
Techatrix
ab970094ab
wasm: enable successful behavior tests
2023-09-10 15:59:02 +02:00
Techatrix
ec7f88945b
wasm: implement more math operations on 128 bit integers
...
these operations are required to be able to print floats
2023-09-10 15:59:02 +02:00
Techatrix
9d6b6bddb6
wasm: implement common conversions between integers/floats with bitsize larger than 64 bits
2023-09-10 15:59:02 +02:00
Techatrix
55694c2a4d
wasm: implement comparison on f80 and f128
2023-09-10 15:59:02 +02:00
Techatrix
673ebfabd1
wasm: implement negation on f80 and f128
2023-09-10 15:40:52 +02:00
Ian Johnson
d2014fe971
Autodoc: simplify search text on mobile
...
This prevents the placeholder text from spilling out of the search bar
on smaller screens.
2023-09-09 19:48:18 +02:00
Ian Johnson
51d7700c8c
Autodoc: tweak page layout
...
Closes #17011
Closes #17012
This commit allows the logo to scale more freely to fit its container,
and removes some extra margins so that the content scroll bar is flush
with the right side of the viewport.
2023-09-09 19:48:18 +02:00
Ian Johnson
2f26b15995
Autodoc: fix search results navigation
...
Closes #17013
2023-09-09 19:47:57 +02:00
Wooster
4d1432299f
ci: use zig build check-fmt instead of zig fmt --check
...
We already have a zig build step for this: test-fmt.
* Rename the test-fmt step to check-fmt.
test-fmt sounds like it runs tests for `zig fmt` itself (lib/std/zig/render.zig).
* Use it instead of `zig fmt --check` in the CI scripts.
* Also use it in CI scripts that didn't have this check before.
2023-09-09 15:49:18 +03:00
Wooster
f33bb0228b
std: clean up top-level namespaces documentation
...
This cleans up existing documentation, adds a bit more, and fixes some
typos too.
2023-09-08 21:59:25 +03:00
none
39a98dc426
std.tar: add support for file path in pax attributes
...
Handles .extended_header type to parse PAX attributes and check if they override
the path of the next file. Increases file path limit to std.fs.MAX_PATH_BYTES.
Fixes #15342
2023-09-08 21:55:14 +03:00
xdBronch
fa46750a84
remove outdated error message in std.fs
2023-09-08 21:47:44 +03:00
Linus Groh
c097209792
std.c.linux: Add getpw{nam,uid}()
2023-09-08 21:46:05 +03:00
Techatrix
b642bb92e5
wasm-linker: fix use of invalidated memory in populateErrorNameTable
2023-09-08 07:08:14 +02:00
Pascal S. de Kloe
9126852ba9
mem: explicit dupe and dupeZ error on Allocator
2023-09-07 21:56:57 +03:00
Veikka Tuominen
6484e279e5
AstGen: fix missing array type validation
...
Closes #17084
2023-09-07 16:56:07 +03:00
Techatrix
33830d194e
wasm: fix finishAir when combining arg into single stack value
2023-09-06 23:03:51 +02:00
Hashi364
b0d9bb0bb8
langref: keyword consistency (between keyword list and grammar)
...
Add missing keywords in Keyword Reference.
Reorder keywords in grammar.
2023-09-06 19:10:24 +03:00
Mustafa Uzun
1f726cc882
fix: panic message typo
2023-09-06 19:08:37 +03:00
Gregory Anders
cab9da35bd
std: enable FailingAllocator to fail on resize
...
Now that allocator.resize() is allowed to fail, programs may wish to
test code paths that handle resize() failure. The simplest way to do
this now is to replace the vtable of the testing allocator with one
that uses Allocator.noResize for the 'resize' function pointer.
An alternative way to support this testing capability is to augment the
FailingAllocator (which is already useful for testing allocation failure
scenarios) to intentionally fail on calls to resize(). To do this, add a
'resize_fail_index' parameter to the FailingAllocator that causes
resize() to fail after the given number of calls.
2023-09-06 19:06:32 +03:00
Luis Cáceres
8976ad7ecb
std.net: Fix IPv6 address parsing for single digit
...
This fixes the case where IPv6 address parsing incorrectly succeeded on
input such as `1`, which now returns error.Incomplete.
2023-09-06 11:14:24 +03:00
Carl Ã…stholm
e980bd0aee
translate-c: fix panic when translating long double literals
2023-09-06 11:12:32 +03:00
Veikka Tuominen
d1a14e7b6d
AstGen: fix error on missing function prototype name
...
Closes #17070
2023-09-05 20:00:19 +03:00
Michael Dusan
64d03faae7
Compilation: support --verbose_llvm_cpu_features
2023-09-04 22:31:39 +02:00
Loris Cro
fda087ed81
autodoc: style links in source code
2023-09-04 18:56:45 +02:00
Jakub Konka
0e8f130aed
Merge pull request #16977 from kcbanner/lib_getauxval_fixup
...
linux: export getauxval when not compiling with libc
2023-09-04 09:11:15 +02:00
Jim Calabro
ec5a068ac1
Make a Couple Syscall Comments Consistent ( #17066 )
...
* Make a Couple Syscall Comments Consistent
* linux.diet.net -> man7.org
2023-09-04 09:09:11 +02:00
Jakub Konka
bff54536ff
macho: check if we should emit LC_VERSION_MIN_ if target low enough
2023-09-04 09:07:49 +02:00
Krzysztof Wolicki
5cc1831ca4
autodoc: Fix rendering of enum types ( #17058 )
2023-09-03 18:34:29 +02:00
Loris Cro
e5c72a32a7
autodoc: fix rendering of std.json.ObjectMap
...
closes #17014
supersedes #17022
follow up issue #17061
2023-09-03 18:32:26 +02:00
Krzysztof Wolicki
555028086a
autodoc: Implement @call, @unionInit, @mulAdd support ( #16918 )
...
* autodoc: Implement `@call`, `@unionInit`, `@mulAdd` support
* autodoc: Implement builtinIndex in ex
2023-09-03 17:20:23 +02:00
Krzysztof Wolicki
86a9e1deaf
autodoc: Implement @bitSizeOf rendering in main.js ( #16895 )
2023-09-03 17:18:51 +02:00
Krzysztof Wolicki
80c1d48ccb
autodoc: Implement a[b], a.?, and a.* ( #16863 )
...
* autodoc: Implement elem_val_node and basic optional_payload_*
* autodoc: Add `.*` loads
2023-09-03 17:18:16 +02:00
Loris Cro
0516a4d629
autodoc: fix typo
2023-09-03 17:15:15 +02:00
Loris Cro
c0da41582b
autodoc: better light mode colors
...
fix #15799
2023-09-03 17:12:52 +02:00
James Chen-Smith
c3a8f1fe92
autodoc: Extract decl ref style and fix light mode color ( #15990 )
...
Co-authored-by: James Chen-Smith <james@chen-smith.net>
Co-authored-by: Loris Cro <kappaloris@gmail.com>
2023-09-03 16:51:07 +02:00
Ambareesh "Amby" Balaji
62f727eedb
std.fs: Fix typo in accessAbsoluteW
2023-09-03 12:03:14 +02:00
Michael Dusan
3cf71580c4
build stage3: detect system libcxx
...
Detect system libcxx name with the CMake build system and convey that
information to build.zig via config.h so that the same system libcxx is
used for stage3.
This undoes the hacky search 901457d173467c71b681a8c69f4b77c94d516da7 .
closes #17018
2023-09-03 08:38:03 +02:00
Jan Philipp Hafer
1816bb4ab0
std.os+windows: isAtLeast(.win10_rs5) in renameatW(), DeleteFile() for posix semantics
...
Usage of FILE_RENAME_IGNORE_READONLY_ATTRIBUTE or
FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE for posix semantics require
win10_rs5 instead of win10_rs1 necessary for posix semantics. Keep it as simple
as possible, since it is reasonable to expect users being able to update
win10_rs5 or use non-posix semantics instead.
Closes #17049 .
2023-09-03 08:35:26 +02:00
Jakub Konka
e265dc61e6
Merge pull request #17057 from ziglang/elf-symtab
...
elf: write all symbols in bulk in flush
2023-09-03 07:52:17 +02:00
Jakub Konka
baea106b71
elf: mark dirty .symtab shdr after updating sh_info field
2023-09-02 23:00:39 +02:00
Josh Wolfe
8b74eae9c6
std.ArrayHashMap.reIndex also recomputes hashes ( #17054 )
2023-09-02 17:00:20 -04:00
Jakub Konka
cfc0429bc9
elf: correctly set symtab's sh_info to first global index
2023-09-02 22:12:49 +02:00