Andrew Kelley
b1895da9b8
add behavioral test case for previous commit
2019-12-06 12:27:56 -05:00
LemonBoy
f64cff3e16
Fix misinterpretation of sentinel constant value
...
Fixes #3842
2019-12-06 12:27:52 -05:00
Andrew Kelley
e41495de9d
private linkage for unnamed internal constants
2019-12-05 23:13:42 -05:00
Andrew Kelley
105ef560b3
Merge pull request #3853 from xackus/doc-fixes
...
Docs: assembly example printing garbage and minor html fixes
2019-12-05 20:43:10 -05:00
xackus
cb96a096cb
docs: fix duplicate closing tag generation
2019-12-05 22:56:56 +01:00
xackus
71354498c9
docs: add html lang and minor fixes
2019-12-05 22:40:58 +01:00
xackus
ba78d71b09
docs: fix assembly example
2019-12-05 22:40:47 +01:00
Vexu
bfb15f1c9f
fix casts
2019-12-05 15:47:06 -05:00
frmdstryr
1baaf9a503
Increase io.BufferedInStream readByte speed by ~75%
2019-12-05 10:16:50 -05:00
Andrew Kelley
8829b5316b
Merge pull request #3849 from Vexu/fix-fmt
...
Fix zig fmt c pointer return type
2019-12-05 10:14:31 -05:00
Vexu
d40ad92668
use enum literals in render.zig
2019-12-05 14:50:51 +02:00
Vexu
10cc8cad86
fix zig fmt of c pointers
2019-12-05 14:50:46 +02:00
Andrew Kelley
bef3769bb7
std.fmt.ParseUnsignedError is now public
2019-12-04 18:44:22 -05:00
Andrew Kelley
10e172b1d7
add other
OS and fix regression in build-exe for freestanding
2019-12-04 14:42:40 -05:00
Andrew Kelley
44e896f613
Merge pull request #3844 from Snektron/sort-improvements
...
Small sort improvements
2019-12-04 14:25:00 -05:00
Vexu
137cb32f5e
add docs for function parameters
2019-12-04 14:14:47 -05:00
Robin Voetter
841a37ab59
Add std.sort.argMax and std.sort.argMin
2019-12-04 18:20:55 +01:00
Robin Voetter
0159fa284a
Make std.sort.min and std.sort.max return ?T
2019-12-04 18:10:20 +01:00
Robin Voetter
65f57e4499
Make std.sort.max accept const slices and add tests
2019-12-04 16:42:18 +01:00
Robin Voetter
6bb0ee0bc4
Add std.sort.isSorted
2019-12-04 16:41:32 +01:00
Andrew Kelley
38791ac616
Merge branch 'Vexu-build-start'
...
closes #3810
closes #3793
closes #3798
2019-12-03 17:26:26 -05:00
Andrew Kelley
521744bb91
correct the calling convention of WinMainCRTStartup
2019-12-03 16:55:27 -05:00
Andrew Kelley
e3ebaab3c7
fix zig builtin
2019-12-03 13:57:13 -05:00
Andrew Kelley
8db4d2332e
correct startup logic for exporting libc main
2019-12-03 13:10:26 -05:00
Andrew Kelley
a91f552393
WinMainCRTStartup implies defaulting to console subsystem
2019-12-03 12:52:28 -05:00
Andrew Kelley
6a046c1bcd
activate start code when pub main exists
...
and rename LinkType->LinkMode, OutType->OutputMode
2019-12-03 12:50:42 -05:00
Vexu
ffd21c586d
fix tests
2019-12-03 12:50:42 -05:00
Vexu
621c08e692
exported main must be pub
2019-12-03 12:50:42 -05:00
Vexu
20bcdab462
correct caching and add test for missing fn name
2019-12-03 12:50:41 -05:00
Vexu
a0ca30ce01
move more startup code to std lib
2019-12-03 12:50:18 -05:00
LemonBoy
fd7c7be33c
Pick up WinMain with proper CC
2019-12-03 12:49:08 -05:00
Andrew Kelley
0d48b60794
Merge pull request #3837 from yvt/patch-as
...
Replace the remaining uses of the legacy cast syntax with `@as`
2019-12-03 10:26:07 -05:00
yvt
29f25cf059
Update process_headers.zig
to use @as
2019-12-03 20:05:07 +09:00
yvt
3c6c317424
Update the docs to use @as
2019-12-03 19:56:50 +09:00
LemonBoy
26c8930b95
Accept comptime-known expression for asm
2019-12-02 19:53:06 -05:00
Andrew Kelley
b7be57766b
Merge pull request #3715 from daurnimator/towards-afd
...
Misc windows additions+fixes
2019-12-02 16:12:55 -05:00
Andrew Kelley
55202a021a
add missing license files
2019-12-02 16:02:03 -05:00
Andrew Kelley
6a36c549a8
add extra LICENSE file for clarification
2019-12-02 15:11:11 -05:00
Andrew Kelley
ad214c7aa0
bring your own OS layer in the std lib
...
closes #3784
2019-12-02 15:02:17 -05:00
Andrew Kelley
dcbd5ad155
remove upstream support for Zen hobby OS
...
The new plan to support hobby operating systems is #3784 .
And what kind of name is "Zen" anyway? There's already a
[Zen programming language](http://zenlang.sourceforge.net/ )
and that's just confusing.
2019-12-02 12:01:49 -05:00
Andrew Kelley
fc1373a85d
ci: update sr.ht to use alpine/latest, more reliable
2019-12-02 10:48:12 -05:00
Andrew Kelley
b6127b0fe9
add some null-termination annotations
...
closes #3797
2019-12-02 01:13:46 -05:00
Andrew Kelley
6d8550a7df
fix crash assigning optional struct with anon literal
...
closes #3827
2019-12-02 01:09:06 -05:00
Andrew Kelley
fecd540826
Merge pull request #3787 from ziglang/remove-array-type-coercion
...
Remove array type coercion and fix result location bugs
2019-12-02 00:03:41 -05:00
Andrew Kelley
e7ee6647a1
fix invalid check for fn_inline property
2019-12-01 23:56:28 -05:00
Andrew Kelley
3644e85091
fix regressions on windows
2019-12-01 21:31:00 -05:00
Andrew Kelley
37caa56fbc
fix docs regressions
2019-12-01 21:27:55 -05:00
Andrew Kelley
c32e50f505
fix regressions in compile error tests
2019-12-01 20:53:24 -05:00
Andrew Kelley
4af5c38674
fixes for self-hosted compiler
2019-12-01 19:22:03 -05:00
Andrew Kelley
080316cd4f
fix assigning to an unwrapped optional field in an inline loop
2019-12-01 18:55:35 -05:00