zooster
bc8e1e1de4
Improvements to docs and text
...
* docs(std.math): elaborate on difference between absCast and absInt
* docs(std.rand.Random.weightedIndex): elaborate on likelihood
I think this makes it easier to understand.
* langref: add small reminder
* docs(std.fs.path.extension): brevity
* docs(std.bit_set.StaticBitSet): mention the specific types
* std.debug.TTY: explain what purpose this struct serves
This should also make it clearer that this struct is not supposed to provide unrelated terminal manipulation functionality such as setting the cursor position or something because terminals are complicated and we should keep this struct simple and focused on debugging.
* langref(package listing): brevity
* langref: explain what exactly `threadlocal` causes to happen
* std.array_list: link between swapRemove and orderedRemove
Maybe this can serve as a TLDR and make it easier to decide.
* PrefetchOptions.locality: clarify docs that this is a range
This confused me previously and I thought I can only use either 0 or 3.
* fix typos and more
* std.builtin.CallingConvention: document some CCs
* langref: explain possibly cryptic names
I think it helps knowing what exactly these acronyms (@clz and @ctz) and
abbreviations (@popCount) mean.
* variadic function error: add missing preposition
* std.fmt.format docs: nicely hyphenate
* help menu: say what to optimize for
I think this is slightly more specific than just calling it
"optimizations". These are speed optimizations. I used the word
"performance" here.
2023-04-23 21:06:21 +03:00
Manlio Perillo
658b4db223
langref: improve for loop documentation
...
- Add an example of iterating over consecutive integers using the
range syntax
- Add an example of iterating over multiple objects
- Update the "nested break" and "nested continue" tests to use the
range syntax, instead of a temporary array
2023-04-23 21:00:10 +03:00
Hubert Jasudowicz
253eb72c14
std.os.linux: Add new CAP constants
2023-04-23 20:58:30 +03:00
Bogdan Romanyuk
316812786c
langref: add documentation for noinline keyword
2023-04-23 20:56:06 +03:00
Travis Staloch
40029d6875
std.tar: make sub dirs + trim spaces
...
closes #15222 . these changes allow the .tgz from this issue to
decompress and the test code to succeed.
2023-04-23 20:39:28 +03:00
Nicolas Sterchele
284c7b22a8
process: add args definition comment
...
To improve understandability of its purpose.
2023-04-23 20:26:10 +03:00
xEgoist
ce3fe72d9a
fs.Dir.deleteTree: Fix DirNotEmpty condition
...
`deleteTree` needs to retry once the directory is reported to be not
empty. Otherwise, the retry condition is never reached.
2023-04-23 19:51:51 +03:00
David CARLIER
23c4f55a61
std: adding sigevent to supported platforms.
2023-04-23 19:46:43 +03:00
David CARLIER
9ef615104a
std: adding FreeBSD's sched wrappers
2023-04-23 19:46:30 +03:00
David Carlier
9691cded95
std: mcontext layout for x86 and fixing few x86_64 fields types for
...
FreeBSD
2023-04-23 19:46:18 +03:00
David CARLIER
1d322fe510
std: add accept_filter struct to make use of SO_ACCEPTFILTER socket option
2023-04-23 19:45:59 +03:00
David CARLIER
7b0e015eb4
std: add a subset of the macOs's libproc api.
2023-04-23 19:45:46 +03:00
David CARLIER
9140249d29
std: enriching malloc api on freebsd.
2023-04-23 19:45:34 +03:00
Andrew Kelley
1884be4ecd
Merge pull request #15372 from nwtgck/fix-http-client
2023-04-23 06:29:46 -07:00
Jakub Konka
b95cdf0aeb
elf: add helpers for extracting type and bind from symbol def
2023-04-23 13:50:24 +02:00
Jakub Konka
c3ce04b9e5
elf: add missing doc comments to some definitions
2023-04-23 13:24:59 +02:00
Andrew Kelley
21aa55d34e
Merge pull request #15356 from jacobly0/cbe-std-tests
...
cbe: enable CI for std tests
2023-04-22 11:04:36 -07:00
Casey Banner
c7067ef6e8
sema: fix memory corruption caused by resolveStructLayout
2023-04-22 17:12:35 +00:00
Loris Cro
7e9a760482
Merge pull request #15332 from der-teufel-programming/autodoc-src-files-dirs
...
Autodoc: html files for sources scoped with respect to packages
2023-04-22 19:12:13 +02:00
Loris Cro
c5fb245f60
Merge branch 'master' into autodoc-src-files-dirs
2023-04-22 19:10:23 +02:00
Loris Cro
ad634bca9f
Merge pull request #15385 from der-teufel-programming/autodoc-cc-inline
...
autodoc: Handle calling conventions better
2023-04-22 19:07:28 +02:00
Jakub Konka
c4a63389e4
Merge pull request #15371 from ziglang/better-elf
...
link: make GOT (and other synthetic sections) handling common across linkers
2023-04-22 13:39:07 +02:00
dweiller
68e4a57847
docgen: fix exe_build_err code snippets
...
Fixes #15297 .
2023-04-22 14:30:08 +03:00
David CARLIER
29bc6fc242
process: totalSystemMemory freebsd portage
2023-04-22 14:10:30 +03:00
Borja Clemente
bd801dc489
std: GPA deinit return an enum instead of a bool
2023-04-22 14:09:44 +03:00
David CARLIER
3f259d3550
std: adding netbsd's pthread to cpu affinity api
2023-04-22 13:59:00 +03:00
Bogdan Romanyuk
b22155d352
Add doc comments for ComptimeStringMap
...
Some parts of stdlib are still undocumented yet.
2023-04-22 13:55:30 +03:00
David CARLIER
dbdafb6cc5
os: expand sched_getaffinity wrapper and update freebsd's cpuset api flags.
2023-04-22 13:54:57 +03:00
-k
0282c2a924
doc: fix minor grammar issues
2023-04-22 13:09:15 +03:00
Jacob Young
f5cf732659
zig.h: add missing msvc atomics
2023-04-22 01:16:25 -04:00
Jacob Young
3f1c51ca90
std: remove names from incorrectly named tests
...
Tests that only reference decls for the purpose of analyzing more tests
should be unnamed, otherwise trying to filter for just a referenced test
can become impossible depending on the names.
2023-04-21 23:08:48 -04:00
Jacob Young
08a8aa100d
cbe: fix local aliasing issues in atomic ops
2023-04-21 23:08:48 -04:00
Jacob Young
5feb27c126
zig.h: fix float negation
2023-04-21 23:08:48 -04:00
Krzysztof Wolicki
428f745270
autodoc: Change html file destination dirs
...
Each file is now saved with its package index in data.json
2023-04-22 02:36:19 +02:00
Manlio Perillo
4374ce51b0
std.Build.RunStep: fix captureStdOut function return type
...
The return type of the captureStdOut function is incorrect.
Replace *std.Build.GeneratedFile with std.Build.FileSource.
2023-04-21 15:24:23 -07:00
Jakub Konka
14dfbbc213
macho: rebase lazy pointers and apply corrected base offset
2023-04-21 22:44:28 +02:00
Jakub Konka
9a181f367d
macho: mark relocs dirty by target when updating GOT/stubs
2023-04-21 22:44:28 +02:00
Jakub Konka
a596e48d8f
coff: mark relocs dirty by target when updating GOT
2023-04-21 22:44:28 +02:00
Jakub Konka
dd300d92e1
coff: treat vmaddr of 0 as unallocated when checking if resolvable
2023-04-21 22:44:28 +02:00
Jakub Konka
bee35fe3f0
coff: add image base to GOT relocations
...
Sort base relocations by address for deterministic debugging.
2023-04-21 22:44:28 +02:00
Jakub Konka
ae8fb21514
coff: use TableSection for GOT
2023-04-21 22:44:28 +02:00
Jakub Konka
d6e66cff12
macho: fix dirtying of GOT entries
2023-04-21 22:44:28 +02:00
Jakub Konka
f9e9974c8f
macho: skip GOT for TLVs; handle them separately when lowering
2023-04-21 22:44:27 +02:00
Jakub Konka
9530b95afe
macho: refactor common codepath for collecting bindings from TableSection
2023-04-21 22:44:27 +02:00
Jakub Konka
cec4755310
macho: do not allocate atom for __stub_helper preamble
2023-04-21 22:44:27 +02:00
Jakub Konka
fa40267b04
macho: do not allocate atoms for stub entries
2023-04-21 22:44:27 +02:00
Jakub Konka
c55e821df6
macho: resolve relocs before writing to memory (fixes HCS)
2023-04-21 22:44:27 +02:00
Jakub Konka
91bb9302e5
macho: correctly dirty the GOT table after memory realloc
2023-04-21 22:44:27 +02:00
Jakub Konka
c6e916d7fe
macho: fix runtime panics
2023-04-21 22:44:27 +02:00
Jakub Konka
711bc2cf39
macho: use generic TableSection for GOT mgmt
2023-04-21 22:44:27 +02:00