]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testcarchive: split main.c into unix and non-unix
authorChristopher Nelson <nadiasvertex@gmail.com>
Thu, 24 Mar 2016 21:50:21 +0000 (17:50 -0400)
committerIan Lance Taylor <iant@golang.org>
Sat, 26 Mar 2016 00:57:23 +0000 (00:57 +0000)
commit93c5fbf3905920a8d0cb0618816165f368e9d965
tree6d154f4a73675bacd8aebbf6630d639bf71bb30a
parent135109d241da1427461fdb19656a976b3e9c7b22
misc/cgo/testcarchive: split main.c into unix and non-unix

This is in support of https://golang.org/cl/18057 which adds
support for c-archive to the Windows platform.

The signal handling tests do not compile on Windows. This splits
them out into a separate main_unix.c file, and conditionally
includes them for non-Windows platforms.

Change-Id: Ic79ce83da7656d6703505e514554748a482b81a1
Reviewed-on: https://go-review.googlesource.com/21086
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/testcarchive/carchive_test.go
misc/cgo/testcarchive/main.c
misc/cgo/testcarchive/main_unix.c [new file with mode: 0644]
misc/cgo/testcarchive/main_windows.c [new file with mode: 0644]