diff options
author | Bruce Momjian | 2003-04-04 20:42:13 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-04-04 20:42:13 +0000 |
commit | d46e6438225d8741100dc400a4a63c87799f0945 (patch) | |
tree | c20b838ead99ca2558a188b84595115538c02dd2 /src/include | |
parent | 9bad936f67cb7561d0d232ca365e23fe73219a1a (diff) |
Add Win32 path handling for / vs. \ and drive letters.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/c.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/c.h b/src/include/c.h index 724bbb50b84..0129098d451 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.135 2003/01/09 18:00:24 tgl Exp $ + * $Id: c.h,v 1.136 2003/04/04 20:42:13 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -692,6 +692,12 @@ typedef NameData *Name; #include <unistd.h> #endif +/* Portable path handling for Unix/Win32 */ +bool is_absolute_path(const char *filename); +char *first_path_separator(const char *filename); +char *last_path_separator(const char *filename); +char *get_progname(char *argv0); + #if defined(bsdi) || defined(netbsd) int fseeko(FILE *stream, off_t offset, int whence); off_t ftello(FILE *stream); |