1 /*
2  * -= Copyright 2005 Tim Baker (treectrl@hotmail.com) =-
3  *
4  * This file is part of depslib.
5  *
6  * License is hereby granted to use this software and distribute it
7  * freely, as long as this copyright notice is retained and modifications
8  * are clearly marked.
9  *
10  * ALL WARRANTIES ARE HEREBY DISCLAIMED.
11  */
12 
13 #ifdef DEPSLIB_WINDOWS
14 #define SEP1 '\\'
15 #define SEP2 '/'
16 #endif
17 
18 #ifdef DEPSLIB_UNIX
19 #define SEP1 '/'
20 #define SEP2 '/'
21 #endif
22 
23 typedef struct _pathsplit PATHSPLIT;
24 
25 struct _pathsplit
26 {
27 	PATHPART part[64];
28 	int count;
29 };
30 
31 extern void path_split(const char *path, PATHSPLIT *f);
32 extern int path_normalize(PATHSPLIT *f, PATHSPLIT *cwd);
33 extern char *path_tostring(PATHSPLIT *f, char *buf);
34 extern void path_setcwd(const char *cwd);
35 extern void path_print(PATHSPLIT *f);
36 extern void donepath(void);
37 
38