/* * Copyright 1995, 1996 Perforce Software. All rights reserved. * * This file is part of the Library RCS. See rcstest.c. */ /* * rcsvfile.h - open & close the RCS ,v file and its temp successor * * External routines: * * RcsVfile::RcsVfile() - open the RCS ,v file and its temp successor * RcsVfile::~RcsVfile() - close the RCS ,v file and discard its temp * RcsVfile::Commit() - replace the RCS ,v file with its successor * * External structures: * * RcsVfile - opened RCS ,v file and its successor * * History: * 2-18-97 (seiwald) - translated to C++. */ /* * RcsVfile - opened RCS ,v file and its successor */ enum RcsVfileMode { RCS_VFILE_READ = 0x01, /* open ,v file */ RCS_VFILE_WRITE = 0x02, /* open ,temp, file */ RCS_VFILE_UPDATE = 0x03, /* both */ RCS_VFILE_NOLOCK = 0x04, /* trash existing ,temp, file */ RCS_VFILE_DELETE = 0x08 /* all revs deleted - delete file */ } ; class FileSys; struct RcsVfile { public: RcsVfile( char *fileName, int modes, int nocase, Error *e ); ~RcsVfile(); void Commit( Error *e ); inline void Delete() { modes |= RCS_VFILE_DELETE; } public: /* Names of files */ FileSys *rcsFile; FileSys *writeFile; /* I/O descriptors */ ReadFile *readFd; /* remembered mode */ int modes; int readCasefullPath; StrBuf *originalFilename; // for nocase operation } ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2014-1/rcs/rcsvfile.h | |||||
#1 | 15902 | Matt Attaway | A second renaming that I will not obliterate as a badge of shame | ||
//guest/perforce_software/p4/2014_1/rcs/rcsvfile.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2014.1/rcs/rcsvfile.h | |||||
#1 | 12188 | Matt Attaway | Move 'main' p4 into a release specific directory in prep for new releases | ||
//guest/perforce_software/p4/rcs/rcsvfile.h | |||||
#1 | 9129 | Matt Attaway | Initial commit of the 2014.1 p4/p4api source code |