[fpc-pascal]FPC Debugging (with SQLite)

James Mills prologic at daisy.ods.org
Mon Jul 7 23:15:37 CEST 2003


On Mon, Jul 07, 2003 at 03:37:20PM +0100, Matt Emson wrote:
> Actually, got it to compile and run under Delphi with only about 2 or 3
> changes.
> 
> Change all ref's to 'strings' to 'sysutils', and there is an assignment to
> 'OnData' that must read:
> 
> OnData := SQLOnData;
> 
> rather than
> 
> OnData := @SQLOnData;
> 
> Other than that it compiles and runs.
> 
> One question, why is StrAlloc in Strings??? It should be in Sysutils for
> Delphi compatibility. I thought the main FPC thrust was now for Delphi
> compatibility over Turbo Pascal?!?!

Good question. However I don't really care about Delphi compatibility,
as as such I think the FPC developers put it in Strings for a very
logical reason. Afterall it is a String function call.

cheers
James

> 
> Matt
> 
> ----- Original Message -----
> From: "James Mills" <prologic at daisy.ods.org>
> To: <fpc-pascal at lists.freepascal.org>
> Sent: Monday, July 07, 2003 12:49 PM
> Subject: Re: [fpc-pascal]FPC Debugging (with SQLite)
> 
> 
> > On Mon, Jul 07, 2003 at 12:29:10PM +0100, Matt Emson wrote:
> > > > I know he wrote it. I regularly speak to him on MSN. There was a
> problem
> > > > with using it, for some reason he didn't need to use the cMem unit
> back
> > > > when he wrote the unit. But he had used a very old version of sqlite
> at
> > > > the time. I guess the SQLite library has changed dramatically since
> > > > 2.7...
> > >
> > > I think that was more to do with whoever ported SQLLite to BeOS rather
> than
> > > him actually wanting to use an older version ;-)
> >
> > How so ? It's been fixed there was no problem with his unit other than
> > the fact that, with the current version of SQLite the cMem unit was
> > needed in order because of the way SQLite uses memory.
> >
> > cheers
> > James
> >
> > >
> > > Matt
> > >
> > >
> > >
> > > _______________________________________________
> > > fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> > --
> > -
> > - James Mills
> > Zero Defect Software Engineers Group - ZDSEG
> >
> > _______________________________________________
> > fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> 
> 
> 
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

-- 
-
- James Mills
Zero Defect Software Engineers Group - ZDSEG




More information about the fpc-pascal mailing list