]> granicus.if.org Git - gc/commit
Convert cord tests to valid C++ code
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Feb 2018 06:57:23 +0000 (09:57 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 8 Feb 2018 06:57:23 +0000 (09:57 +0300)
commit551bed3add45ef909cf4cce02af255e08f4a0ec2
treea2cf6076519c0ad7e9e0e6a2c0533134526304ad
parente86bb4f781292c6256f35d055a42b54e5a641392
Convert cord tests to valid C++ code

Issue #201 (bdwgc).

* cord/tests/de.c (main): Cast buf to char* when passed to setvbuf().
* cord/tests/de_win.c (de_error): Change "char*" to "const char*" for
the argument (because ISO C++ forbids converting a string constant to
char*).
* cord/tests/de_win.h (de_error): Likewise.
* cord/tests/de_win.c (WinMain): Change type of hAccel local variable
from HANDLE to HACCEL; cast GetStockObject(WHITE_BRUSH) result to
HBRUSH type.
* cord/tests/de_win.c (plain_chars, control_chars): Cast
GC_MALLOC_ATOMIC() result to char*.
* cord/tests/de_win.c (WndProc): Change type of hInstance static
variable from HANDLE to HINSTANCE.
cord/tests/de.c
cord/tests/de_win.c
cord/tests/de_win.h