Yusuf Bham
c9f145a50b
std.os.uefi: mark BlockIoProtocol and EfiBlockMedia as public
2022-09-09 16:48:54 +03:00
Jakub Konka
56b96cd61b
Merge pull request #12772 from ziglang/coff-basic-imports
...
coff: implement enough of the incremental linker to pass behavior and incremental tests on Windows
2022-09-09 13:08:58 +02:00
Jakub Konka
0ae2ea671b
wasm: temporarily save curr file pointer before pwriting on Win
...
This is a temporary workaround to an unclear platform-dependence
behavior we have in libstd for `std.fs.File` abstraction. See
https://github.com/ziglang/zig/issues/12783 for more information.
2022-09-08 14:29:54 +02:00
Martin Stuurwold
a7661f115d
NativeTargetInfo.zig: fix typo
2022-09-08 01:53:32 -04:00
Jakub Konka
b98b3252be
revert part of 945111ae92c28f8ad642a64af4dc83acd3bef4a5
2022-09-07 23:18:57 +02:00
Jakub Konka
945111ae92
enable testing of x86_64-windows-gnu using self-hosted backend and linker
2022-09-07 22:42:58 +02:00
Jakub Konka
423f424c27
libstd: use windows.GetStdHandle() with stage2_x86_64 backend for now
2022-09-07 22:42:57 +02:00
Jakub Konka
3a4c69c018
x86_64: implement Windows x64 calling convention
2022-09-07 22:42:56 +02:00
Jakub Konka
a35f156cf6
coff: re-enable default entrypoint for Windows
2022-09-07 22:42:55 +02:00
Dan Ellis Echavarria
924679abc4
std.simd: change T to u16
...
The `element_bit_size` would break if `T` was signed due to `ceilPowerOfTwo` only working on unsigned numbers.
2022-09-07 15:22:30 +03:00
Loris Cro
201dca323e
autodoc: improve rendering of long fn signatures
2022-09-05 17:26:59 +02:00
Der Teufel
b8001335c4
autodoc: Opaque now handled like other container types
2022-09-04 22:47:58 +02:00
Loris Cro
dbd60e3d29
autodoc: add support for doc tests
2022-09-04 22:45:57 +02:00
Yujiri
ae3a5ff7f9
Fix #12440 : std.math.big.Rational order/orderAbs
2022-09-04 18:45:20 +03:00
yujiri8
10e11b60e5
zig fmt: don't delete container doc comments
...
Fixes #12617
2022-09-02 20:12:20 +02:00
Loris Cro
907c60aaa7
Merge pull request #12705 from der-teufel-programming/autodoc-big-int
...
Autodoc big_int
2022-09-02 17:48:17 +02:00
Loris Cro
70b96169ae
Merge pull request #12709 from der-teufel-programming/autodoc-compare-operators
...
autodoc: Compare operators
2022-09-02 17:38:00 +02:00
Loris Cro
081d5a9690
autodoc: correct line number implementation
...
we also correctly take advantage of the starting byte offset of the
parent decl when calling `tree.tokenLocation()`!
2022-09-02 17:28:12 +02:00
riChar
0d96f1f4fb
zig fmt: remove trailing comma at the end of assembly clobber
2022-09-02 12:52:33 +03:00
Der Teufel
0d3c6b7aa8
autodoc: Added int_big support
2022-09-02 11:01:46 +02:00
John Schmidt
36f4f32fad
Add AFNOSUPPORT error to bind ( #12560 )
2022-09-01 15:13:07 -05:00
Der Teufel
3bbf08e98a
autodoc: Compare operators
2022-09-01 15:17:14 +02:00
Jakub Konka
540d8cd809
coff: add import table definitions
2022-08-31 19:30:51 +02:00
Hashi364
973b440561
Using comptime level.asText() in log example
...
Some recent change makes slice concatenation runtime (merge #12368 ), so the example needs to be explicitly made comptime.
2022-08-31 16:01:35 +03:00
Evan Haas
fdb8870852
translate-c: promote large integer macros to unsigned long long if necessary
...
Closes #10793
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-08-31 15:52:53 +03:00
biexelar
59e33b447b
std.Thread: fix freeAndExit on x86_64-linux ( #12693 )
...
Previously, this function used incorrect registers for the munmap syscall, leading to detached threads not cleaning up.
closes #12690
Co-authored-by: bxlr <biexelar@diroot.org>
2022-08-30 22:31:47 -04:00
Jakub Konka
d3eaabd285
coff: add base relocation related types
2022-08-30 23:07:28 +02:00
Jakub Konka
aa5568beb6
coff: move Symtab and Strtab out of coff.Coff
...
This should ease interfacing with different std.coff functionalities.
2022-08-30 15:51:49 +02:00
Jakub Konka
7ef0c9d298
Merge pull request #12677 from ziglang/coff-linker
...
coff: initial rewrite of the COFF/PE linker
2022-08-30 14:29:41 +02:00
Jakub Konka
69d6931be7
Merge pull request #12662 from wsengir/coff-fix
...
coff: fix reading COFF header offset
2022-08-30 12:26:35 +02:00
Veikka Tuominen
e6be6d9768
std.rand: make weightedIndex proportions param a const slice
...
The function does not mutate the proportions and the signature should reflect that.
2022-08-30 13:02:17 +03:00
Jakub Konka
db1a3bb0e7
coff: fallback to _start as default entry point for now
...
This is not technically correct, but given that we are not yet able
to link against the CRT, it's a good default until then.
Add basic logging of generated symbol table in the linker.
2022-08-30 10:42:21 +02:00
Jakub Konka
30baba899c
coff: add missing bits required for minimal PE example
2022-08-30 10:42:21 +02:00
Jakub Konka
ed481e3837
coff: write headers to file
2022-08-30 10:42:21 +02:00
Jakub Konka
90b3599c68
coff: reorganize the linker
2022-08-30 10:42:21 +02:00
Jakub Konka
06371950cf
start: allow for explicitly defined entry point for Win
2022-08-30 10:42:21 +02:00
William Sengir
91b9f295d3
coff: publicize and flesh out more image constants
2022-08-28 06:20:18 -07:00
Justin Whear
5bb8c03697
std.random: add weightedIndex function
...
`weightedIndex` picks from a selection of weighted indices.
2022-08-28 14:19:51 +03:00
William Sengir
3860e664c5
coff: fix reading COFF header offset
2022-08-28 03:10:39 -07:00
Loris Cro
e0103704c5
autodoc: better line counting for decls
2022-08-27 22:48:18 +02:00
antlilja
ae8d26a6a0
Sema: add error for non-comptime param in comptime func
...
Adds error for taking a non comptime parameter in a function returning a
comptime-only type but not when that type is dependent on a parameter.
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-08-27 11:17:48 +03:00
Sébastien Marie
8bcb962ada
openbsd: fix sigcontext struct and avoid defining fxsave64
...
`sc_fpstate` member of `struct sigcontext` is a `struct fxsave64 *`.
use *anyopaque to represent it.
avoid to defining `fxsave64` as it is a packed struct with some arrays.
2022-08-26 17:30:07 +02:00
Loris Cro
2e0ff6c700
Merge pull request #12600 from ominitay/autodocs-errorset
...
autodocs: improve error set rendering
2022-08-26 16:36:06 +02:00
Loris Cro
a69a16c6bd
Merge pull request #12601 from ominitay/autodocs-shortdesc
...
autodocs: improve first-line descriptions
2022-08-26 16:35:00 +02:00
Jakub Konka
02e6960966
coff: do not pull in std.log into coff.zig definitions
2022-08-26 16:14:44 +02:00
Motiejus Jakštys
9038528187
copy_file_range: fix zigification of TXTBSY
...
From `copy_file_range(2)` errors:
ETXTBSY
Either fd_in or fd_out refers to an active swap file.
Same error will be used in the upcoming `ioctl_ficlonerange(2)`:
ETXTBSY
One of the files is a swap file. Swap files cannot share storage.
2022-08-26 15:36:40 +03:00
Motiejus Jakštys
ea785f70ef
glibc/abilists: add libresolv stubs
...
Generated with https://github.com/ziglang/glibc-abi-tool/pull/2
Fixes #12628
2022-08-25 16:36:10 +03:00
Andrew Kelley
7453f56e67
stage2: explicitly tagged enums no longer have one possible value
...
Previously, Zig had inconsistent semantics for an enum like this:
`enum(u8){zero = 0}`
Although in theory this can only hold one possible value, the tag
`zero`, Zig no longer will treat the type this way. It will do loads and
stores, as if the type has runtime bits.
Closes #12619
Tests passed locally:
* test-behavior
* test-cases
2022-08-24 22:20:31 -07:00
Jonas Gollenz
07afd5bdba
docs: remove confusion about align[For|Back]ward
2022-08-24 17:18:29 -04:00
max
d8e22fcb20
fix coff.zig with const qualifier convert problem
2022-08-24 22:49:47 +02:00