[fpc-devel] Patch for bug 2453

Sterling Bates iwannabefp at yahoo.ca
Sun Mar 27 01:13:36 CET 2005


(My ISP's mail server is blacklisted, so sending this from Yahoo.  Ugh.)
 
This is my first shot, so be gentle :-)
 
The patch assumes FP wants compatibility with BP 7.  If so, it fixes two problems; if not, at least it was a fun exercise.
 
First, BP ignores non-numeric characters when a ReadLn is called with an integer parameter.  To fix this, I changed ReadNumeric's end condition to explicitly terminate on all non-numerics.
 
Second, BP will not read a Text file past an EOF character at all, regardless of its location in the file.  The fix for this is inelegant (inline buffer check), but I can move this out to an external proc if it's onerous to maintain.
 
It's likely there are things I haven't thought of, so I appreciate comments on it.
 
Sterling 



---------------------------------
Post your free ad now! Yahoo! Canada Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050326/fa4bb6a1/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug2453_diff.txt
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20050326/fa4bb6a1/attachment.txt>


More information about the fpc-devel mailing list