unix: replace C99/C++ comments, fix build

This commit is contained in:
Ben Noordhuis 2012-03-09 09:15:43 -08:00
parent 5d21056277
commit 6dcce92d44
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ static void write_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0); ASSERT(status == 0);
uv_write(&write_req, req->handle, &buf, 1, (uv_write_cb) fail_cb); uv_write(&write_req, req->handle, &buf, 1, (uv_write_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_write refs the loop uv_unref(uv_default_loop()); /* uv_write refs the loop */
} }
@ -55,7 +55,7 @@ static void shutdown_unref_cb(uv_connect_t* req, int status) {
ASSERT(status == 0); ASSERT(status == 0);
uv_shutdown(&shutdown_req, req->handle, (uv_shutdown_cb) fail_cb); uv_shutdown(&shutdown_req, req->handle, (uv_shutdown_cb) fail_cb);
uv_unref(uv_default_loop()); // uv_shutdown refs the loop uv_unref(uv_default_loop()); /* uv_shutdown refs the loop */
} }

View File

@ -25,7 +25,7 @@
#ifdef _WIN32 #ifdef _WIN32
# include <io.h> # include <io.h>
# include <windows.h> # include <windows.h>
#else // Unix #else /* Unix */
# include <fcntl.h> # include <fcntl.h>
# include <unistd.h> # include <unistd.h>
#endif #endif
@ -37,7 +37,7 @@ TEST_IMPL(tty) {
uv_tty_t tty_in, tty_out; uv_tty_t tty_in, tty_out;
uv_loop_t* loop = uv_default_loop(); uv_loop_t* loop = uv_default_loop();
// Make sure we have an FD that refers to a tty /* Make sure we have an FD that refers to a tty */
#ifdef _WIN32 #ifdef _WIN32
HANDLE handle; HANDLE handle;
handle = CreateFileA("conin$", handle = CreateFileA("conin$",