2 * Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
4 * This file is part of Jam - see jam.c for Copyright information.
8 * pathsys.h - PATHNAME struct
10 * 11/04/02 (seiwald) - const-ing for string literals
14 * PATHNAME - a name of a file, broken into <grist>dir/base/suffix(member)
16 * <grist> is salt to distinguish between targets that otherwise would
17 * have the same name: it never appears in the bound name of a target.
18 * (member) is an archive member name: the syntax is arbitrary, but must
19 * agree in path_parse(), path_build() and the Jambase.
21 * On VMS, we keep track of whether the original path was a directory
22 * (without a file), so that $(VAR:D) can climb to the parent.
25 typedef struct _pathname PATHNAME
;
26 typedef struct _pathpart PATHPART
;
35 # define f_grist part[0]
36 # define f_root part[1]
37 # define f_dir part[2]
38 # define f_base part[3]
39 # define f_suffix part[4]
40 # define f_member part[5]
44 void path_build (PATHNAME
*f
, char *file
, int binding
);
45 void path_parse (const char *file
, PATHNAME
*f
);
46 void path_parent (PATHNAME
*f
);