MoberyPrivate.mesa
Mna, September 5, 1991 5:24 pm PDT
DIRECTORY
IO;
MoberyPrivate: CEDAR DEFINITIONS
~ BEGIN
ObjectFileTypeMatcherProc: TYPE = PROC[stream: IO.STREAM] RETURNS [matches: BOOLEANFALSE, start, end: CARD];
ObjectFileTypeMatcherProc is a call-back registered with RegisterObjectFileType. The procedure returns matches = TRUE iff the stream is a file of that object file type. The ObjectFileTypeMatcherProc will should look at the file's "magic number" to determine if it is of its type. start and end are the search ranges for stamps. start and end generally refer to the data segment of the file as determined by looking in the file's header. start and end are undefined when matches = FALSE.
RegisterObjectFileType: PROC[p: ObjectFileTypeMatcherProc];
RegisterObjectFileType is called to register a new procedure to handle a particular object file type. See above for the parameters and purpose of a ObjectFileTypeMatcherProc.
END.