citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit f85b5459e7020ef15ee4d50bcbe0c83e76395122
parent 0852142d0a40ec2b4975fd72fd1e90a73570ef68
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 22 Jan 2017 11:13:56 -0700

lib: try namespace win32 too

Diffstat:
Mlib_win32.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib_win32.c b/lib_win32.c @@ -73,7 +73,7 @@ mkstemp(char *template) * Returns a pointer to the extended region on success, exits on failure. */ void * -extend(size_t req_bytes) +citrun_extend(size_t req_bytes) { size_t aligned_bytes; size_t len; @@ -87,7 +87,6 @@ extend(size_t req_bytes) page_mask = system_info.dwAllocationGranularity - 1; aligned_bytes = (req_bytes + page_mask) & ~page_mask; - /* Get current file length. */ if ((len = GetFileSize(h, NULL)) == INVALID_FILE_SIZE) Err(1, "GetFileSize"); @@ -110,7 +109,6 @@ extend(size_t req_bytes) Err(1, "MapViewOfFile"); CloseHandle(fm); - return mem; } @@ -118,7 +116,7 @@ extend(size_t req_bytes) * Opens a file with a random suffix. Exits on error. */ void -open_fd() +citrun_open_fd() { char *procdir; char procfile[PATH_MAX];