/* * Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc. * * This file is part of Jam - see jam.c for Copyright information. */ /* * pathsys.h - PATHNAME struct * * 11/04/02 (seiwald) - const-ing for string literals */ /* * PATHNAME - a name of a file, broken into <grist>dir/base/suffix(member) * * <grist> is salt to distinguish between targets that otherwise would * have the same name: it never appears in the bound name of a target. * (member) is an archive member name: the syntax is arbitrary, but must * agree in path_parse(), path_build() and the Jambase. * * On VMS, we keep track of whether the original path was a directory * (without a file), so that $(VAR:D) can climb to the parent. */ typedef struct _pathname PATHNAME; typedef struct _pathpart PATHPART; struct _pathpart { const char *ptr; int len; }; struct _pathname { PATHPART part[6]; # ifdef OS_VMS int parent; # endif # define f_grist part[0] # define f_root part[1] # define f_dir part[2] # define f_base part[3] # define f_suffix part[4] # define f_member part[5] } ; void path_build( PATHNAME *f, char *file, int binding ); void path_parse( const char *file, PATHNAME *f ); void path_parent( PATHNAME *f );
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 9952 | malouf |
Path handling fix for NT: use the delimiter (/ or \) that was found in the path to rebuild the path, rather than parsing at / and rebuilding at \. p4transfer.py: Transferred from production |
||
#3 | 2493 | rmg |
Rewrite the past: update all jam's source with comments to reflect changes since about 2.3, very early 2001. Whitespace only change. === computer:1666: Change 37660 by seiwald@play-seiwald on 2002/11/06 22:41:35 Note: I regenerated jamgram.c on my linux 7.3 system prior to the submit, since patch was so unhappy trying to lay down the changes from Christopher's change. Presumably this is just due to different yacc/bison/whatever particulars on the system where Christopher made the changes originally. - rmg |
||
#2 | 2491 | rmg |
Some consting in jam to make it more compilable by C++ compilers. No functional change. === computer:1666: Change 37433 by perforce@perforce on 2002/10/30 16:08:51 Recreational const-ing of jam, for compilers that don't allow "string" to be passed as a non-const char *. This included a few places where we were modifying what could possibly have been read-only storage, oddly enough. No functional change. === computer:1666: Change 37602 by seiwald@play-seiwald on 2002/11/04 17:25:40 |
||
#1 | 1319 | rmg |
Jam 2.3 + Perforce's internal changes. This change is a drop of the Perforce internal Jam changes since the 2.3 public release. The individual changes represented herein are preserved in the //guest/richard_geiger/intjam/ branch. The intent of this drop is to provide a base, from which other contributors' Jam branches may be integrated into. It is not intended to become a packaged release in this state. We will be integrating changes from other users prior to creating the next packaged release. Please refer to the src/RELNOTES file for an overview of the changes present in this integration. - Richard Geiger Open Source Engineer at Perforce |
||
//guest/richard_geiger/intjam/src/pathsys.h | |||||
#2 | 1317 | Richard Geiger |
Update the copyright notices in all files touched in the upcoming drop into //public/jam/ |
||
#1 | 1240 | Richard Geiger |
Split jam's pathsys.h from filesys.h, since they are really two different pieces. === computer.perforce.com:1666: Change 19938 by seiwald@spice on 2001/01/08 21:46:33 Added note in RELNOTES about the internal code change - rmg |