Andrew Kelley
521744bb91
correct the calling convention of WinMainCRTStartup
2019-12-03 16:55:27 -05:00
Andrew Kelley
8db4d2332e
correct startup logic for exporting libc main
2019-12-03 13:10:26 -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
621c08e692
exported main must be pub
2019-12-03 12:50:42 -05:00
Vexu
a0ca30ce01
move more startup code to std lib
2019-12-03 12:50:18 -05:00
Andrew Kelley
b6127b0fe9
add some null-termination annotations
...
closes #3797
2019-12-02 01:13:46 -05:00
LemonBoy
e1e06e6766
linux-i386 support
2019-11-30 16:13:33 +01:00
Andrew Kelley
cb38bd0a14
rename std.heap.direct_allocator to std.heap.page_allocator
...
std.heap.direct_allocator is still available for now but it is marked
deprecated.
2019-11-25 17:25:06 -05:00
Andrew Kelley
15d415e10b
make std.mem.toSlice use null terminated pointers
...
and fix the fallout
2019-11-24 21:21:05 -05:00
Andrew Kelley
34b1ebefaa
Merge remote-tracking branch 'origin/master' into null-terminated-pointers
2019-11-24 20:28:46 -05:00
Andrew Kelley
44b1dc6db8
add type coercion: [:x]T to [*:x]T
2019-11-24 15:17:55 -05:00
syscall0
eea8b10463
Call DllMain entry point if declared
2019-11-24 14:46:22 -05:00
Andrew Kelley
47f06be369
string literals are now null terminated
...
this also deletes C string literals from the language, and then makes
the std lib changes and compiler changes necessary to get the behavior
tests and std lib tests passing again.
2019-11-21 20:43:41 -05:00
Vexu
977b613881
add container doc comments to generated docs
2019-11-15 15:17:59 +02:00
Andrew Kelley
0237e7a701
std.io.getStdOut and related fns no longer can error
...
Thanks to the Windows Process Environment Block, it is possible to
obtain handles to the standard input, output, and error streams without
possibility of failure.
2019-11-13 04:01:40 +00:00
Andrew Kelley
e0db54e89d
update the codebase to use @as
2019-11-08 15:57:24 -05:00
Vexu
3858a526e3
make callMainAsync async
2019-11-07 13:18:47 -05:00
Andrew Kelley
913f7d0450
improve the start code for evented I/O
...
When evented I/O is being used, prevent event loop from terminating
at least until main() has returned.
2019-11-06 15:08:29 -05:00
Shawn Landden
1c22cb5e51
fix noreturn function that may return.
...
we do not want undefined behavior here in --release-fast
and --release-small modes
2019-11-05 11:38:32 -05:00
Shawn Landden
55685ae780
remove duplicate isNan implementation
2019-11-05 11:34:33 -05:00
Andrew Kelley
d6dec80261
startup code respects root source file's event_loop if present
2019-10-31 14:21:04 -04:00
Andrew Kelley
d3d3e4e374
startup code sets up event loop if I/O mode is declared evented
2019-10-31 11:41:39 -04:00
Henry Wu
7c73503451
generated docs: move color to box-shadow CSS prop
2019-10-30 21:20:02 -04:00
Andrew Kelley
a3222b5ff1
remove dead tls code
2019-10-28 15:10:12 -04:00
Timon Kruiper
03603ea353
Std docs: Fix a js error that would cause some function to be not rendered
2019-10-28 15:06:55 -04:00
Henry Wu
f756d875b1
generated docs: vertically align fns with comments
2019-10-27 15:11:36 -04:00
Andrew Kelley
17eb24a7e4
move types from builtin to std
...
* All the data types from `@import("builtin")` are moved to
`@import("std").builtin`. The target-related types are moved
to `std.Target`. This allows the data types to have methods, such as
`std.Target.current.isDarwin()`.
* `std.os.windows.subsystem` is moved to
`std.Target.current.subsystem`.
* Remove the concept of the panic package from the compiler
implementation. Instead, `std.builtin.panic` is always the panic
function. It checks for `@hasDecl(@import("root"), "panic")`,
or else provides a default implementation.
This is an important step for multibuilds (#3028 ). Without this change,
the types inside the builtin namespace look like different types, when
trying to merge builds with different target settings. With this change,
Zig can figure out that, e.g., `std.builtin.Os` (the enum type) from one
compilation and `std.builtin.Os` from another compilation are the same
type, even if the target OS value differs.
2019-10-23 19:09:49 -04:00
Felix Queißner
03f1ad5007
Merge branch 'master' of https://github.com/ziglang/zig into markdown-renderer
2019-10-22 20:29:25 +02:00
Andrew Kelley
e839250c51
Merge branch 'stratact-no-dir-allocators'
...
closes #2885
closes #2886
closes #2888
closes #3249
2019-10-21 23:54:29 -04:00
Andrew Kelley
064377be9a
test runner: restore previous behavior of printing all tests passed
2019-10-21 22:21:18 -04:00
Andrew Kelley
65165554d0
test runner: restore previous behavior when...
...
...stderr does not support ansi escape codes
2019-10-21 20:50:47 -04:00
Andrew Kelley
859cbef8a4
test runner: refresh display before running test
...
This makes it so that when a test fails quickly, and writes output, it
will do so after the test name is printed.
2019-10-21 19:01:08 -04:00
Andrew Kelley
16a91e6a45
adjust test runner to print the test name when error occurs
2019-10-21 18:36:37 -04:00
Felix Queißner
5456eb1107
Starts to implement markdown parser. Implemented: strong, emphasis, strikethrough, underline, code blocks, ulist, olist, paragraphs, headings. Planned: Links, Images, internal references.
2019-10-20 11:49:28 +02:00
Andrew Kelley
6948d7fce7
Merge pull request #3429 from Rocknest/docs-local
...
Design suggestion for generated docs
2019-10-19 16:43:39 -04:00
Andrew Kelley
2d5b2bf1c9
improve progress reporting
...
* use erase rest of line escape code.
* use `stderr.supportsAnsiEscapeCodes` rather than `isTty`.
* respect `--color off`
* avoid unnecessary recursion
* add `Progress.log`
* disable the progress std lib test since it's noisy and uses
`time.sleep()`.
* enable/integrate progress printing with the default test runner
2019-10-17 21:55:49 -04:00
Rocknest
40d53a7bc5
Merge branch 'master' into docs-local
2019-10-17 01:57:29 +03:00
Rocknest
c95a9e9785
Cleanup
2019-10-17 01:54:39 +03:00
Rocknest
1c5dfaaca9
Changes from master
2019-10-17 01:35:10 +03:00
Andrew Kelley
1014cfdf3b
generated docs: progress towards generic types being useful
...
See #3406
2019-10-16 01:49:02 -04:00
Andrew Kelley
e6ca61bdd1
generated docs: further clean up keyboard shortcut handling
...
now it's harder to introduce a bug when modifying keyboard shortcut
code.
2019-10-15 18:37:24 -04:00
dtw-waleee
725c873e81
fix small misstake, 'escape' v. 'Escape'
2019-10-15 18:19:13 -04:00
dtw-waleee
3e891c9c0b
Fix keyboard layout issue with help-modal
...
Some keyboard layouts produces a different ev.which value in firefox
for ? than 191, eg. the Swedish QWERTY one produces 171. Chrome/chromium
doesn't have this issue.
2019-10-15 18:19:13 -04:00
Rocknest
b175468159
Consistent margins
2019-10-12 19:17:35 +03:00
Andrew Kelley
8b45921664
merge targets of generated docs
2019-10-11 18:14:06 -04:00
Andrew Kelley
0e0976828a
Merge pull request #3421 from LemonBoy/win32-mingw
...
Win32 mingw
2019-10-10 21:23:28 -04:00
Rocknest
b0cd64c019
Merge branch 'master' into docs-local
2019-10-11 04:09:01 +03:00
Rocknest
2bb2a2fcea
Changes from master
2019-10-11 03:54:03 +03:00
Andrew Kelley
6082c14753
generated docs: add optional type support
2019-10-10 20:32:17 -04:00
Andrew Kelley
bc393eefa1
generated docs: better rendering of unknown decls
2019-10-10 19:21:56 -04:00