1 |
|
---|
2 | /***********************************************************************
|
---|
3 |
|
---|
4 | $Id: pathutil.h 1761 2014-03-21 23:29:52Z stevenhl $
|
---|
5 |
|
---|
6 | Path handling utility functions
|
---|
7 |
|
---|
8 | Copyright (c) 1993-98 M. Kimes
|
---|
9 | Copyright (c) 2001, 2009 Steven H. Levine
|
---|
10 |
|
---|
11 | 05 Jan 08 SHL Move from fm3dll.h to here
|
---|
12 | 29 Feb 08 GKY Changes to enable user settable command line length
|
---|
13 | 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
|
---|
14 | 23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
|
---|
15 | 21 Mar 14 SHL Add IsAbsolutePath
|
---|
16 |
|
---|
17 | ***********************************************************************/
|
---|
18 |
|
---|
19 | #if !defined(PATHUTIL_H)
|
---|
20 |
|
---|
21 | #define PATHUTIL_H
|
---|
22 |
|
---|
23 | #if !defined(OS2_INCLUDED)
|
---|
24 | #include <os2.h>
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | PSZ AddBackslashToPath(PSZ pszPathName);
|
---|
28 |
|
---|
29 | PSZ BldFullPathName(PSZ pszFullPathName, PCSZ pszPathName, PCSZ pszFileName);
|
---|
30 | PSZ BldQuotedFullPathName(PSZ pszFullPathName, PCSZ pszPathName, PCSZ pszFileName);
|
---|
31 | PSZ BldQuotedFileName(PSZ pszQuotedFileName, PCSZ pszFileName);
|
---|
32 |
|
---|
33 | BOOL IsAbsolutePath(PCSZ pszPathName);
|
---|
34 | PSZ ForwardslashToBackslash(PSZ pszPathName);
|
---|
35 |
|
---|
36 | PCSZ NormalizeCmdLine(PSZ pszWorkBuf, PSZ pszCmdLine_);
|
---|
37 |
|
---|
38 | #define MAXCOMLINESTRGDEFAULT (1024) /* used to build command line strings */
|
---|
39 | #define CMDLNLNGTH_MIN (299)
|
---|
40 | #define CMDLNLNGTH_MAX (32768)
|
---|
41 |
|
---|
42 | #ifdef DEFINE_GLOBALS
|
---|
43 | #define DATADEF
|
---|
44 | #else
|
---|
45 | #define DATADEF extern
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | DATADEF ULONG MaxComLineStrg;
|
---|
49 |
|
---|
50 | #endif // PATHUTIL_H
|
---|