ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
dtzWill has quit [Ping timeout: 260 seconds]
jjido has quit [Remote host closed the connection]
scientes has quit [Ping timeout: 248 seconds]
scientes has joined #zig
scientes has quit [Changing host]
scientes has joined #zig
cenomla has quit [Quit: cenomla]
arBmind has joined #zig
arBmind has quit [Quit: Leaving.]
jjido has joined #zig
scientes has quit [Ping timeout: 250 seconds]
jjido has quit [Remote host closed the connection]
jjido has joined #zig
jjido has quit [Remote host closed the connection]
<skyfex> Damn andrewrk, that was fast.
<skyfex> There's some issue with the full .h file though
<skyfex> C:\SW\zig\zig-nrf-demo\test.zig:2:13: error: compiler bug: @cImport generated invalid zig code const nrf = @cImport({ ^ ?.c:1:1: note: expected pointer, found 'c_ulong' TODO: remember C source location to display here
<skyfex> I put up the header files I've tested here: https://github.com/skyfex/zig-nrf-demo/tree/master/include
<skyfex> const nrf = @cImport({ @cDefine("__GNUC__", "4"); @cDefine("NRF51", ""); @cInclude("nrf.h"); });
<skyfex> I updated the repository with the test-code and build script (using build-ldd.bat now) too. The cImport stuff is commented out though
<skyfex> Litte-endian bit packing is still not correct btw, but I don't think I saw a commit related to it so you probably knew that
<skyfex> FYI, it looks like Nordic Semiconductor will update the startup assembly file to be compatible with LLVM in a future SDK release :)
jjido has joined #zig
dtzWill has joined #zig
<andrewrk> skyfex, yeah I thought that might happen. The problem with the code as is is that it guesses that the type of the thing to cast is a pointer, when it's actually a unsigned long in this case
<andrewrk> I'll see if I can have it look up the type
<skyfex> Don't worry too much about it for my sake, just letting you know what I find when playing around :)
<skyfex> cImport is really a killer feature when porting C code. I'm already impressed
skyfex has quit [Quit: Page closed]
<andrewrk> thanks :)
<andrewrk> my goal is to resolve the issues you have listed under "status" so that you can be unblocked
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
cenomla has quit [Client Quit]
jjido has quit [Quit: Leaving]
jjido has joined #zig
arBmind has joined #zig
jjido has quit [Ping timeout: 240 seconds]
scientes has joined #zig
jjido has joined #zig
scientes has quit [Ping timeout: 240 seconds]
<GitHub35> [zig] andrewrk pushed 1 new commit to master: https://git.io/vb40v
<GitHub35> zig/master 756a218 Andrew Kelley: add implicit cast from enum tag type of union to const ptr to the union...
jjido has quit []
jjido has joined #zig
jjido is now known as Guest22165
Guest22165 has quit [Client Quit]
arBmind1 has joined #zig
arBmind has quit [Ping timeout: 240 seconds]
jjido_ has joined #zig
jjido_ has quit [Client Quit]
scientes has joined #zig
scientes has quit [Changing host]
scientes has joined #zig
arBmind1 has quit [Quit: Leaving.]