Text preview for : DirectoryDefs.mesa_Oct77.pdf part of xerox DirectoryDefs.mesa Oct77 xerox mesa 3.0_1977 listing DirectoryDefs.mesa_Oct77.pdf



Back to : DirectoryDefs.mesa_Oct77. | Home

directorydefs.mESA 24-0CT-77 16:38:25 Page 1


DirectoryDefs.Mesa Edited by Sandman on May 19. 1977 12:20 PM
DIRECTORY
AltoFileDefs: FROM "altofiledefs".
StreamDefs: FROM "streamdefs";
DEFINITIONS FROM StreamDefs. AltoFileDefs;
DirectoryDefs: DEFINITIONS = BEGIN
-- Signals
BadFilename: SIGNAL [name: STRING];
BadDirectory: SIGNAL [name: STRING];
-- procedures
EnumerateDirectory: PROCEDURE [proc: PROCEDURE [POINTER TO FP, STRING] RETURNS [BOOLEAN]]:
DirectoryLookup: PROCEDURE [fp: POINTER TO FP. name: STRING. create: BOOLEAN]
RETURNS [old: BOOLEAN];
DirectoryLookupFP: PROCEDURE [fp: POINTER TO FP, name: STRING] RCTURNS [old: BOOLEAN];
DirectoryPurge: PROCEDURE [fp: POINTER TO FP. name: STRING] RETURNS [found: BOOLEAN]:
DirectoryPurgeFP: PROCEDURE [fp: POINTER TO FP] RETURNS (found: BOOLEAN]:
EnumerateEntries: PROCEDURE [dir: StreamHandle,
proc: PROCEDURE [StreamIndex. POINTER TO DV, STRING] RETURNS [BOOLEAN]]
RETURNS [StreamIndex]:
-- Filename Parsing (such as it is)
ExpandFilename: PROCEDURE (name, filename: STRING]:
END,
-- stuff yet to be done:
SetCurrentDir, ~loseCurrentDir, SetWorkingDir. ParseFilename.
VersionsKept. StripVersion, AppendVersion, SearchForVersion.