Contd.. Modula-2/Amiga
05-Jul-88 09:25:22
Sb: #133230-Contd.. Modula-2/Amiga
Fm: Les Caudle, TDI 75026,1331
To: Mark Olbert 73557,1512
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
The Syntax.ind file is simply a block of 1024 CARDINALS that are the file
offsets to 0C terminated error messages. (ie.
TYPE HeaderBlock = ARRAY [0..1023] OF CARDINALZ5S| VAR
SyntaxFile : RECORD
head : HeaderBlock ;
msgs : ARRAY [0..9999] OF CHAR ;
END ; ) So to find an error number; lookup offset using
error number as index into header, then setpos file to that offset, then read
string gill 0C.
Phil Camp.