alex
2eb0909206
std.ChildProcess: correct fn getUserInfo pkg in setUserName
...
17b0166e moved getUserInfo from std.os to std.process
but ChildProcess.setUserName never updated the pkg name.
2022-10-03 12:59:47 +03:00
zooster
91b05ad473
std.math: allow comptime_float for radiansToDegrees and degreesToRadians
...
And some other minor things.
2022-10-01 13:46:20 +03:00
r00ster91
f6312e4b69
docs: minor improvements
...
Just some minor improvements when passing by.
2022-09-29 21:40:25 +02:00
r00ster91
fda0b2c372
fix(std.testing.refAllDeclsRecursive): silently return if !builtin.is_test
2022-09-29 21:40:25 +02:00
ominitay
295451dfe5
std: Replace use of stage1 function pointers
2022-09-29 21:45:30 +03:00
Chris Boesch
9c99a88796
std.math: add "Greatest common divisor" (gcd)
2022-09-29 21:42:56 +03:00
zooster
12896d36cb
std.builtin: un-pub testVersionParse()
2022-09-29 14:47:41 +03:00
Lee Cannon
8d288a5fa7
Fix Step.cast for OptionsStep and CheckObjectStep
2022-09-29 14:41:39 +03:00
Jacob Young
5e0d8a435e
testing: fix copy paste typo
2022-09-29 14:39:10 +03:00
Evin Yulo
779c2daa19
Remove outdated comment
2022-09-28 13:00:00 +03:00
Silver
f3a1b5c481
std/meta: make FieldEnum(T) == Tag(T) for tagged unions when values match field indices
2022-09-27 18:42:20 +03:00
Jacob Young
e915b905e0
use @ptrCast to assigned generic type to default_value
...
If the type happens to be a pointer, then the double pointer will not
coerce implicitly.
2022-09-27 13:21:01 +03:00
Lee Cannon
38a50f819c
make runPkgConfig pub
2022-09-27 13:20:32 +03:00
Der Teufel
55a9db4c9d
autodoc: Added .html to generated source view file names
2022-09-26 15:46:01 +02:00
Bill Nagel
eeeda53423
add missing darwin types
2022-09-23 12:25:40 +03:00
ノYuh
eaaaceaf3c
make fmt.formatAsciiChar respect options parameter
2022-09-23 12:20:38 +03:00
noiryuh
0be46866fe
use std.ascii instead of defining ascii functions in std.fs.path
2022-09-23 12:19:09 +03:00
Evin Yulo
dab5bb9247
Fix docstring for std.fs.path.extension
2022-09-22 20:13:09 -04:00
Ali Chraghi
0799e98562
std: update NativeTargetInfo.detect doc comments
...
`detect` doesn't take allocator anymore
2022-09-21 20:14:39 +03:00
Veikka Tuominen
694fab4848
std: add return address parameter to panic fn
2022-09-20 19:05:00 -07:00
Andrew Kelley
62ecc154d9
Merge pull request #12904 from Vexu/ptrcast
...
stage2: pointer casting fixes and improvements
2022-09-20 22:02:36 -04:00
Meghan
521c753fda
std: fix os.linux.S function signatures to use mode_t
2022-09-20 17:54:32 -04:00
Veikka Tuominen
541b3e3a31
Sema: check pointer qualifiers before implicit cast
...
Closes #12881
2022-09-20 00:50:13 +03:00
Jakub Konka
e42f83825f
Merge pull request #12893 from ziglang/macho-relocs-cleanup
...
macho: rewrite incremental linker, and init splitting of linking contexts
2022-09-18 23:19:33 +02:00
Loris Cro
2698cb346a
autodoc: don't collect tests, usingnamespace and comptime blocks
...
Previously we were collecting as autodoc decls everything that was a ZIR
decl in a rather naive way. Now we only collect decltests as part of the
data relative to the decl they refer to, and ignore everything else.
2022-09-18 20:00:44 +02:00
Jakub Konka
e601969244
macho: rewrite how we allocate space in incremental context
2022-09-18 10:00:04 +02:00
billzez
dfcadd22bb
fix android definition of pthread_rwlock_t ( #12830 )
2022-09-16 20:20:24 -05:00
Veikka Tuominen
b2aedb0709
Merge pull request #12796 from Vexu/referenced-by-v2
...
stage2: add referenced by trace to compile errors attempt #2 (+ some fixes)
2022-09-16 23:49:00 +03:00
Andrew Kelley
d3d24874c9
std: remove deprecated API for the upcoming release
...
See #3811
2022-09-16 14:46:53 -04:00
cod1r
7b32aacbaf
fix ChildProcess crash when PATH is empty.
2022-09-15 22:54:17 -04:00
Stephen Gregoratto
7ccb94fac8
Audit FreeBSD structs to match header files/ABI
...
The big outliers were `Stat` and `mcontext_t`. Also adds doc-comments
from the headers where possible.
2022-09-14 20:05:54 -04:00
alichraghi
8c9f468fdd
std.ArrayList.ensureTotalCapacity: optimize and fix integer overflow
...
Fixes #12099
2022-09-14 20:05:15 -04:00
Andrew Kelley
0931dda9a9
Merge pull request #11663 from matu3ba/utf16
...
std.unicode: add utf16 byte length and codepoints counting routines
2022-09-14 19:25:15 -04:00
Veikka Tuominen
31daea74d2
stage2: implement referenced by trace for error messages
...
Closes #7668
Closes #12141
2022-09-15 00:50:18 +03:00
Martin Wickham
5523e2061b
Move std.testing.zig_exe_path into build options
2022-09-14 14:42:58 -07:00
Andrew Kelley
61aaef0b07
std: re-enable test case for fixed bug
...
The miscompilation in question has been fixed upstream in LLVM 14.
closes #9879
2022-09-13 18:36:39 -07:00
Andrew Kelley
68f2d6cb24
std: remove workaround for fixed bug
...
The miscompilation in question has been fixed upstream in LLVM 13.
closes #8117
2022-09-13 18:20:18 -07:00
Veikka Tuominen
349d78a443
validate number literals in AstGen
2022-09-13 20:26:04 -04:00
Andrew Kelley
0a4cfb81bc
Merge remote-tracking branch 'origin/master' into llvm15
2022-09-13 13:50:25 -07:00
Andrew Kelley
7a941391d8
universal-libc: fix strncmp tests
...
The specification for this function is that it returns a positive value,
zero, or negative value, not that it returns the difference between
ascii values.
2022-09-12 22:32:15 -07:00
Andrew Kelley
f16855b9d7
remove pointless discards
2022-09-12 18:13:24 -07:00
Andrew Kelley
ab3ac291ac
Merge remote-tracking branch 'origin/master' into llvm15
2022-09-11 20:26:53 -07:00
Shane Kennedy
c97d64b677
chore: Remove unused constants
2022-09-11 23:18:43 -04:00
Andrew Kelley
349df40d14
Merge pull request #12814 from ziglang/native-libc-integration
...
stage2: no condition on system libs to link native libc
2022-09-11 23:12:50 -04:00
Andrew Kelley
65bea514ae
Compilation: handle system C compiler not found
...
When linking libc and compiling natively, Zig tries to integrate with
the system C compiler. However, this caused Zig to fail when no system C
compiler is installed, despite the fact that Zig is perfectly capable of
compiling & linking libc without one.
This commit makes Zig fall back to using its own ability to provide libc
in the case that no C compiler is installed. For glibc, it means
sometimes getting the warning "zig cannot build new glibc version abc,
providing instead xyz".
Ideally, Zig would do some more validation about the system libraries
being linked against, and report an error in case it could not provide
the exact correct libc version of the system libraries (or that the
system libraries themselves conflict with each other), however, I think
it is fair to call that a separate enhancement.
2022-09-11 16:37:03 -07:00
Loris Cro
60678f5baf
autodoc: fix regression in frontend rendering of values
2022-09-11 23:45:18 +02:00
Loris Cro
2a96f80d03
autodoc: reduce json payload size
...
this commit removes whitespace and changes Decl, AstNode and Type to be
json arrays instead of json objects. This change reduces json payload
size for the stdlib from 25mb to < 10mb.
2022-09-11 21:35:01 +02:00
Andrew Kelley
37cdb5dbf9
Merge remote-tracking branch 'origin/master' into llvm15
2022-09-09 10:26:17 -07:00
Andrew Kelley
9e070b653c
Merge pull request #12788 from ziglang/detect-native-glibc
...
std.zig.system.NativeTargetInfo: improve glibc version and dynamic linker detection
2022-09-09 12:28:25 -04:00
Andrew Kelley
68e61bbc0c
std.zig.system.NativeTargetInfo: more headroom for libc.so.6 .dynstr
2022-09-09 09:27:02 -07:00