pcs 97/09/14 05:09:51
Modified: src/os/win32 os.c os.h Log: Make os_is_path_absolute() inline under Win32 Revision Changes Path 1.3 +2 -8 apachen/src/os/win32/os.c Index: os.c =================================================================== RCS file: /export/home/cvs/apachen/src/os/win32/os.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- os.c 1997/09/12 08:54:42 1.2 +++ os.c 1997/09/14 12:09:49 1.3 @@ -1,13 +1,7 @@ /* - * OS abstraction functions + * OS abstraction functions. Small functions should be defined + * as "__inline" in os.h. */ #include "os.h" -API_EXPORT(int)os_is_path_absolute(char *file) -{ - /* For now, just do the same check that http_request.c and mod_alias.c - * do. - */ - return (file && (file[0] == '/' || file[1] == ':') ? 1 : 0); -} 1.4 +8 -4 apachen/src/os/win32/os.h Index: os.h =================================================================== RCS file: /export/home/cvs/apachen/src/os/win32/os.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- os.h 1997/09/12 20:13:25 1.3 +++ os.h 1997/09/14 12:09:49 1.4 @@ -1,11 +1,9 @@ /* * This file in included in all Apache source code. It contains definitions * of facilities available on _this_ operating system (HAVE_* macros), - * and prototypes of OS specific functions defined in os.c or os-inline.c + * and prototypes of OS specific functions defined in os.c */ -/* Put your NT stuff here - Ambarish */ - /* temporarily replace crypt */ /* char *crypt(const char *pw, const char *salt); */ #define crypt(buf,salt) (buf) @@ -71,5 +69,11 @@ #define NO_OTHER_CHILD #define NO_RELIABLE_PIPED_LOGS +__inline int os_is_path_absolute(char *file) +{ + /* For now, just do the same check that http_request.c and mod_alias.c + * do. + */ + return file && (file[0] == '/' || file[1] == ':'); +} -API_EXPORT(int)os_is_path_absolute(char *f);