Josh Junon
b6dc7fc9ff
publicize member functions affected by #4909
2020-05-08 14:26:28 +03:00
Josh Junon
4a5c58dd35
fix private member checking for non-canonical invocations ( fixes #4909 )
2020-05-08 14:26:13 +03:00
Josh Junon
fbf081a306
add failing test for #4909
2020-05-08 14:26:13 +03:00
xackus
2c9effc101
stage1: handle all cases of invalid struct field default value
2020-05-07 16:39:16 -04:00
Andrew Kelley
3aa259d119
Merge branch 'kristoff-it-macos-kqueue'
...
closes #5286
2020-05-07 13:41:26 -04:00
Loris Cro
35a59b5b0f
remove readable check when opening a socket connection
2020-05-07 13:41:17 -04:00
Loris Cro
7e8b859095
fix oneshot flag erroneusly set as filter_flag
2020-05-07 13:41:17 -04:00
Loris Cro
a78ac96134
fix crash in single-threaded builds
2020-05-07 13:41:02 -04:00
xackus
79bf4003da
stage1: add ZigList gdb pretty printing
2020-05-07 12:43:22 -04:00
Andrew Kelley
ba43492c0e
Merge pull request #5268 from tadeokondrak/remove-callconv-redundant-syntax
...
Remove syntax redundant with callconv
2020-05-07 12:42:26 -04:00
Jens Goldberg
20c1696865
Removed GetModuleHandleA from user32
...
GetModuleHandleA is an kernel32 function and already defined there, it doesn't belong in user32.
2020-05-07 12:38:46 -04:00
Jens Goldberg
25810bc1e6
Removed duplicate WM_ACTIVATE
2020-05-07 12:38:46 -04:00
Vexu
54b2a6ec41
Merge pull request #5287 from marler8997/fixAllocWithPayload
...
fix copy/paste error in AllocWithOptionaPayload
2020-05-07 12:39:57 +03:00
Jonathan Marler
0a76e11617
add failAllocator to enable some regression tests
2020-05-06 23:56:48 -06:00
Jonathan Marler
0c7397b49f
fix copy/paste error in AllocWithOptionaPayload
2020-05-06 23:08:08 -06:00
Timon Kruiper
b336dda076
Standard library: Fix a regression in loop.waitUntilFdWritableOrReadable
...
This broke async io on linux.
Regressed in 8ebcca6734e07aea29098ca4c63c0216b3099d0e
2020-05-06 13:14:06 -04:00
Vexu
9c422c28f6
Merge pull request #5281 from data-man/hash_vector_nocopy
...
Optimization of vectors hashing
2020-05-06 18:12:35 +03:00
data-man
3c4abacba6
Optimization of vectors hashing
2020-05-06 17:08:49 +05:00
Vexu
0e30edd8d0
std: handle ConnectionTimedOut in switch
...
regression from #5266
closes #5270
2020-05-06 12:52:26 +03:00
Vexu
06e6d39c6c
Merge pull request #5257 from matt1795/scoped-typedef
...
Add scoped typedef to translate-c
2020-05-06 12:28:30 +03:00
Vexu
c0b269bf46
translate-c: small patch to fix bultin type detection
2020-05-06 11:48:46 +03:00
Matthew Knight
52f0adb305
checkForBuiltinTypedef now returns a string
2020-05-05 23:26:00 -07:00
Lann
eb4fa63d3d
Remove reference to import type ( #5279 )
...
* Remove reference to import type
* Improve language in `@This()` doc
2020-05-05 19:13:35 -04:00
Andrew Kelley
ae080b5c21
readme: remove the part about stage2 until it's done
2020-05-05 15:26:36 -04:00
Andrew Kelley
ad43155f25
Merge branch 'haze-hb/test-evented-io-build-zig'
...
closes #5274
2020-05-05 15:18:34 -04:00
Andrew Kelley
6f3d76f61e
simplify test-evented-io build setting
2020-05-05 15:18:04 -04:00
Haze Booth
a39cb034ea
Add setUseTestEventedIO for test steps in build.zig
2020-05-05 15:16:54 -04:00
Andrew Kelley
b13a02ed1a
avoid unnecessary fcntl syscalls when setting socket flags
2020-05-05 12:50:50 -04:00
Andrew Kelley
0a2104689b
fix incorrect flags being set in os.setSockFlags
...
fixes networking stuff on darwin
2020-05-05 12:45:39 -04:00
Tadeo Kondrak
84a0a9688c
update docs/tests for async/extern fn removal
2020-05-05 10:31:32 -06:00
StrangeBug
54088fe6e1
Add support for external links and URL to markdown parser.
2020-05-05 18:09:32 +02:00
Tadeo Kondrak
6745a6f6f6
zig fmt
2020-05-05 09:38:02 -06:00
Tadeo Kondrak
d0e996405b
add zig fmt fix for async/extern fn
2020-05-05 09:37:59 -06:00
Tadeo Kondrak
7ada59f873
remove nakedcc/stdcallcc/async fn/extern fn fnproto
2020-05-05 09:37:28 -06:00
Jakub Konka
81d824bf80
Clear PreopenList on every populate call
2020-05-05 17:23:49 +02:00
Andrew Kelley
e6955688ac
Merge pull request #5272 from tadeokondrak/noasync-to-nosuspend
...
Noasync to nosuspend
2020-05-05 11:21:02 -04:00
Jakub Konka
07a968b344
Add docs
2020-05-05 17:05:30 +02:00
Vexu
fde6d28c23
Merge pull request #5273 from haze/hb/fix-posix-errorunion-thread-spawn-result
...
Update ErrorUnion thread spawn result to return null instead of 0
2020-05-05 16:20:05 +03:00
Jakub Konka
558bb24601
Move preopen and path wasi helpers to std.fs.wasi module
...
Previously, the path and preopens helpers were prototyped in `std.os.wasi`
module, but since they are higher-level abstraction over wasi, they belong in
`std.fs.wasi` module.
2020-05-05 15:08:52 +02:00
Jakub Konka
d4c33129cf
Shuffle things around; add PreopenList.findByPath method
...
This commit removes `std.os.openatWasi` function, and renames it to
`std.os.wasi.openat`. Additionally, the added `PreopenList.findByPath`
method allows querying the list for a matching preopen by path.
2020-05-05 15:08:52 +02:00
Jakub Konka
dd238352a4
Encapsulate getPreopens inside PreopenList
2020-05-05 15:08:52 +02:00
Jakub Konka
fc77e393fd
Remove obsolete PATH_MAX const
2020-05-05 15:08:52 +02:00
Jakub Konka
b8112b3d17
Simplify File constructors
2020-05-05 15:08:52 +02:00
Jakub Konka
8bce1b6981
Refactor resolve_preopen into getPreopens function
...
This commit refactors `std.os.wasi.resolve_preopen` into a (higher-level)
`std.os.wasi.getPreopens` funtion which returns a slice with _all_
preopens at any given time. This fn allows the WASI module to
inquire at any given time for all preopens provided by the runtime.
This commit also makes `cwd()` a compile error on WASI.
2020-05-05 15:08:52 +02:00
Jakub Konka
05fb3e79fe
Make std.fs.cwd() return preopen for "." if exists
...
This commit adds WASI specific impl of `std.fs.cwd()` in which we
emulate the `cwd` behaviour by inquiring the runtime for a "."
preopen if available. This is OK for simple relative ops, but will
not work for any ops which require absolute paths.
2020-05-05 15:08:52 +02:00
Jakub Konka
8e1cd69717
Implement std.fs.Dir.openFileWasi
...
It seems that `std.os.openZ` is too POSIX-specific, so I think it
should not be a point of entry for WASI `open` call. I figure
WASI should be treated as a separate "os" that's _not_ POSIX
especially given the incoming changes in the ephemeral snapshot.
2020-05-05 15:08:52 +02:00
Jakub Konka
d7ca220121
Start drafting out openZ
2020-05-05 15:08:52 +02:00
Tadeo Kondrak
fdfdac4939
update comments for nosuspend
2020-05-05 05:55:27 -06:00
Tadeo Kondrak
2c9204032d
update tests for nosuspend
2020-05-05 05:55:26 -06:00
Tadeo Kondrak
af00afed98
zig fmt
2020-05-05 05:55:25 -06:00