ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<pupp> no, without libc it acts the same way
<andrewrk> oh
<pupp> os puts something on stack that closes app
<pupp> it's not really documented anywhere, but seems that it just works
<pupp> some people prefer to not depend on not documented behaviour, I see no reason to not depend on it
<andrewrk> in this case probably exporting WinMainCRTStartup is probably what you want
<pupp> so just replacing WinMain with WinMainCRTStartup will work?
<andrewrk> let me try it
<GitHub2> [zig] andrewrk pushed 1 new commit to master: https://git.io/vd1KJ
<GitHub2> zig/master f54aff4 Andrew Kelley: implement io.OutStream.openMode for windows
<andrewrk> I will add a couple lines of code to the compiler to make it work
<andrewrk> pupp, with the change I just pushed it works
<GitHub116> [zig] andrewrk pushed 1 new commit to master: https://git.io/vd1KR
<GitHub116> zig/master fd7654e Andrew Kelley: build-exe allows direct export of WinMainCRTStartup
<andrewrk> however, I noticed that not calling ExitProcess resulted in the process staying alive in task manager
<pupp> I'll check what's up with that tomorrow
<andrewrk> I'm about to do the text color attribute change, will you be around for 10 min to test it?
<pupp> ok
<pupp> should I rebuild it?
<andrewrk> yes after I push, but I have not pushed yet
<pupp> by the way, it's weird that 32bit exe loads at address 1210000, they usually start at 400000
<pupp> it's sort of tradition.
<andrewrk> I think we can pass a linker flag to change this
<andrewrk> pupp, see if this makes console colors work for you?
<GitHub181> [zig] andrewrk pushed 1 new commit to master: https://git.io/vd16B
<GitHub181> zig/master ba405ed Andrew Kelley: try harder to emit console colors
<andrewrk> you should be able to do `make install` from the build directory to rebuild
<pupp> it takes him suspiciously long to link Zig.exe
<pupp> I guess I'll have to do it tomorrow after all
<pupp> it generated zig.exe though
<pupp> trying it out
<andrewrk> it links much faster with msvc
<pupp> make finished instantly, make install took forever
<pupp> nah, doesn't run, did something wrong
<pupp> tomorrow
<andrewrk> take care
_whitelogger has joined #zig
hasen_judy has quit [Ping timeout: 258 seconds]
pupp has quit [Quit: pupp]
hasen_judy has joined #zig
hasen_judy has quit [Remote host closed the connection]
_whitelogger has joined #zig
cenomla has quit [Quit: cenomla]
_whitelogger has joined #zig
hasen_judy has quit [Ping timeout: 258 seconds]
<GitHub23> [zig] andrewrk pushed 3 new commits to master: https://git.io/vd1y5
<GitHub23> zig/master 9c44dd7 Andrew Kelley: disable byval parameters on windows to work around llvm bug...
<GitHub23> zig/master 55e8bbd Andrew Kelley: std.mem.IncrementingAllocator: check for errors
<GitHub23> zig/master 8ab5313 Andrew Kelley: implement environment variables for windows
<GitHub136> [zig] andrewrk pushed 1 new commit to master: https://git.io/vd1yd
<GitHub136> zig/master 3b0fe53 Andrew Kelley: fix regression on posix from previous commit
_whitelogger has joined #zig
<GitHub145> [zig] andrewrk pushed 1 new commit to master: https://git.io/vd1SQ
<GitHub145> zig/master 6fe1c31 Andrew Kelley: disable some of the failing tests...
_whitelogger has joined #zig
pupp has joined #zig
hasen_judy has joined #zig
<pupp> Here's how colors are displayed now
hasen_judy has quit [Ping timeout: 246 seconds]
hasen_judy has joined #zig
_whitelogger has joined #zig
hasen_judy has quit [Remote host closed the connection]
hasen_judy has joined #zig
pupp has quit [Quit: pupp]
hasen_judy has quit [Remote host closed the connection]
hasen_judy has joined #zig
hasen_judy has quit [Remote host closed the connection]
hasen_judy has joined #zig
hasen_judy has quit [Remote host closed the connection]
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 255 seconds]
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
pupp has joined #zig
<andrewrk> pupp, wow, interesting. let me try one more thing
cenomla has quit [Quit: cenomla]
<GitHub114> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMq5
<GitHub114> zig/master 3c19883 Andrew Kelley: only SetConsoleTextAttribute to do console colors on windows
<andrewrk> pupp, I believe this fixes it ^
<andrewrk> thanks for the report
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
cenomla has quit [Client Quit]
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 252 seconds]
<pupp> src/os.cpp:976:11: error: unused variable 'chars_written' [-Werror=unused-variable]
pupp has quit [Quit: pupp]
pupp has joined #zig
<GitHub141> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMZf
<GitHub141> zig/master a98373f Andrew Kelley: use correct integer type for windows BOOL
<GitHub95> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMZT
<GitHub95> zig/master 1fe1e6e Andrew Kelley: mingw build: delete unused variable
<andrewrk> pupp, ^ fixed (I tested the compilation with mingw this time)
hasen_judy has joined #zig
<pupp> color works
<andrewrk> great
hasen_judy has quit [Ping timeout: 252 seconds]
pupp has quit [Ping timeout: 248 seconds]
<GitHub124> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdM4L
<GitHub124> zig/master bb169a7 Andrew Kelley: fix child process stdio piping behavior on windows
ofelas has quit [Quit: shutdown -h now]
<GitHub79> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMR3
<GitHub79> zig/master fcef7c4 Andrew Kelley: fix std.io.InStream for windows...
<GitHub26> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMRc
<GitHub26> zig/master faf64b5 Andrew Kelley: fix posix from previous commit
<GitHub93> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdM0r
<GitHub93> zig/master fca1d53 Andrew Kelley: std.io: fix bug when writing large buffer
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 252 seconds]
_whitelogger has joined #zig
<GitHub47> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMgN
<GitHub47> zig/master c837ae1 Andrew Kelley: set stdout and stderr to binary mode on windows
<GitHub137> [zig] andrewrk pushed 1 new commit to master: https://git.io/vdMa0
<GitHub137> zig/master f87f980 Andrew Kelley: 16MB stack size when building with msvc...
hasen_judy has joined #zig
hasen_judy has quit [Ping timeout: 252 seconds]