citrun

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

commit f5603085af570935531b0c18fe105ea6e8130d36
parent b511a74e86945c875342429c8b1205a5121b289b
Author: Kyle Milz <kyle@0x30.net>
Date:   Sat,  7 Oct 2017 19:42:04 -0600

lib: rename libP.h -> lib_os.h

Diffstat:
Mlib/lib.c | 3++-
Dlib/libP.h | 7-------
Alib/lib_os.h | 6++++++
Mlib/lib_unix.c | 3++-
Mlib/lib_win32.c | 3++-
5 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/lib/lib.c b/lib/lib.c @@ -17,7 +17,8 @@ #include <stdio.h> /* fprintf, stderr */ #include <string.h> /* strncpy */ -#include "libP.h" /* lib.h, citrun_extend, citrun_open_fd */ +#include "lib.h" /* struct citrun_header, struct citrun_node */ +#include "lib_os.h" /* citrun_{extend,os_info,open_fd} */ /* diff --git a/lib/libP.h b/lib/libP.h @@ -1,7 +0,0 @@ -#include "lib.h" -/* - * Operating system specific functions. - */ -void *citrun_extend(int, size_t); -void citrun_os_info(struct citrun_header *); -int citrun_open_fd(); diff --git a/lib/lib_os.h b/lib/lib_os.h @@ -0,0 +1,6 @@ +/* + * Operating system specific functions. + */ +void *citrun_extend(int, size_t); +int citrun_open_fd(); +void citrun_os_info(struct citrun_header *); diff --git a/lib/lib_unix.c b/lib/lib_unix.c @@ -25,7 +25,8 @@ #include <string.h> /* strl{cpy,cat} */ #include <unistd.h> /* lseek get{cwd,pid,ppid,pgrp} */ -#include "libP.h" +#include "lib.h" /* struct citrun_header */ +#include "lib_os.h" /* diff --git a/lib/lib_win32.c b/lib/lib_win32.c @@ -19,7 +19,8 @@ #include <io.h> #define PATH_MAX 32000 -#include "libP.h" +#include "lib.h" /* struct citrun_header */ +#include "lib_os.h" static HANDLE h = INVALID_HANDLE_VALUE;