Re: [fpc-pascal] Porter Stemming for FPC 2.0

2005-09-19 Thread Alan Mead
memsom <[EMAIL PROTECTED]> wrote: > Reading PChars at negative indexes? Buffer underrun in other > words... This > is absolutely not a good thing. If FPC is preventing buffer under > and > overrruns, then it is actually right, for once, and Delphi is > wrong, > wrong, wrong! Yeah, it seems dumb.

[fpc-pascal] Turbo Pascal/legacy data file issue.

2005-09-19 Thread Lowell C. Savage
Has anyone come up with a set of routines for converting between Turbo Pascal's 6-byte "real" format and FPC's real number format? I am trying to use FPC to update a legacy TP 5.5 program. I've got most of the "major" issues solved and am now finding that I'm having trouble reading legacy dat

Re: [fpc-pascal] Turbo Pascal/legacy data file issue.

2005-09-19 Thread Florian Klaempfl
Lowell C. Savage wrote: > Has anyone come up with a set of routines for converting between Turbo > Pascal's 6-byte "real" format and FPC's real number format? http://www.freepascal.org/docs-html/rtl/system/real2double.html > > I am trying to use FPC to update a legacy TP 5.5 program. I've got

Re: [fpc-pascal] Porter Stemming for FPC 2.0

2005-09-19 Thread Jonas Maebe
On 19 Sep 2005, at 17:40, Alan Mead wrote: I think it's impossible that he could get a wrong result because even if the garbage at memory p[-3] to p[-1] matches the word ending, the word itself will not. There's not necessarily garbage at those locations, those addresses may simply not b

[fpc-pascal] Re: Turbo Pascal/legacy data file issue.

2005-09-19 Thread Lowell C. Savage
Well, I found a "Real2Double" function in the System unit that converts from an old TP 6-byte "real" to an 8-byte double. (Guess I should have looked a little harder, there.) But I'm not seeing anything going the other way. Anyone? Thanks, Lowell At 12:56 PM 9-19-05, Lowell C. Savage wrote