On 27 May 2004 at 13:03, Frank Heckenbach wrote:
[...]
This is the output: "d:\mingw\lib\gcc-lib\mingw32\3.2.3\units\dosunix.pas:400:5: internal error: parser position mismatch BufPos: 9871, BufCount: 9870 d:\mingw\lib\gcc-lib\mingw32\3.2.3\units\dosunix.pas:400:5: internal erro r: parser position mismatch BufPos: 9871, BufCount: 9870"
Seems that something is trying to read past EOF (or perhaps an extra character (^z ?) exists in the file).
Still can't reproduce it. Can you send me the output of `gpc -E dosunix.pas'?
Attached.
Can you try to find out which part of the unit is causing problems by removing lines (doesn't have to compile, just `{$if}' etc. have to match)?
The fault is random. If I insert a space after the "." of the last "end." statement, there is no error. If I remove the space so that the dot is the last thing in the file, the error comes back. If I remove all the comments at the top of the file, the error goes away. If I add the comments back, the error comes back. In each case, BufPos = BufCount + 1. Perhaps you just need to allow for the extra byte.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.
---- File information ----------- File: dosunix.e.gz Date: 27 May 2004, 22:52 Size: 2664 bytes. Type: Unknown