aboutsummaryrefslogtreecommitdiff
path: root/src/port/path.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-08-04 00:43:34 +0000
committerBruce Momjian <bruce@momjian.us>2003-08-04 00:43:34 +0000
commit089003fb462fcce46c02bf47322b429f73c33c50 (patch)
tree77d78bc3a149df06f5603f60200a6ab363336624 /src/port/path.c
parent63354a0228a1dbc4a0d5ddc8ecdd8326349d2100 (diff)
downloadpostgresql-089003fb462fcce46c02bf47322b429f73c33c50.tar.gz
postgresql-089003fb462fcce46c02bf47322b429f73c33c50.zip
pgindent run.
Diffstat (limited to 'src/port/path.c')
-rw-r--r--src/port/path.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/port/path.c b/src/port/path.c
index 9cca1586f17..4bbe7960ec1 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -1,4 +1,4 @@
-/* $Id: path.c,v 1.1 2003/04/04 20:42:13 momjian Exp $ */
+/* $Id: path.c,v 1.2 2003/08/04 00:43:33 momjian Exp $ */
#include "c.h"
#include <ctype.h>
@@ -6,28 +6,32 @@
/*
* is_absolute_path
*/
-bool is_absolute_path(const char *filename)
+bool
+is_absolute_path(const char *filename)
{
return filename[0] == '/'
-#ifdef WIN32 /* WIN32 paths can either have forward or backward slashes */
+#ifdef WIN32 /* WIN32 paths can either have forward or
+ * backward slashes */
|| filename[0] == '\\'
|| (isalpha(filename[0]) && filename[1] == ':'
- && (filename[2] == '\\' || filename[2] == '/'))
+ && (filename[2] == '\\' || filename[2] == '/'))
#endif
;
}
-
+
/*
* first_path_separator
*/
-char *first_path_separator(const char *filename)
+char *
+first_path_separator(const char *filename)
{
#ifndef WIN32
return strchr(filename, '/');
#else
- char *slash, *bslash;
+ char *slash,
+ *bslash;
/* How should we handle "C:file.c"? */
slash = strchr(filename, '/');
@@ -45,12 +49,14 @@ char *first_path_separator(const char *filename)
/*
* last_path_separator
*/
-char *last_path_separator(const char *filename)
+char *
+last_path_separator(const char *filename)
{
#ifndef WIN32
return strrchr(filename, '/');
#else
- char *slash, *bslash;
+ char *slash,
+ *bslash;
/* How should we handle "C:file.c"? */
slash = strrchr(filename, '/');