[fpc-pascal] converting TjanSQL

Florian Klaempfl florian at freepascal.org
Tue Mar 21 11:02:57 CET 2006


Michael Van Canneyt wrote:
> 
> 
> On Mon, 20 Mar 2006, Bisma Jayadi wrote:
> 
>> Hi all...
>>
>> I found TjanSQL from http://jansfreeware.com. It's a small-text-based
>> custom database component with SQL ability. The database itself is a
>> comma separated value (csv) text file. I think this component is
>> better than the TSDFDataSet (separated data file) or TFDFData (fixed
>> data format) component in Lazarus LCL since TjanSQL has query ability.
>> So, I started to convert it to FPC (Lazarus 0.9.13).
>>
>> Unfortunately, I stucked at some assembler methods in
>> janSQLStrings.pas (FPC failed to compile). :( Because I ain't an
>> assembler nerd, I have no clues what does the methods do and what's
>> the best way to convert it to FPC (replace it with compatible methods
>> in FPC or rewrite object pascal version of the methods?). I want the
>> convertion is written fully in object pascal in order the result can
>> be used in all FPC-supported platforms, and performance (speed) is in
>> the second cosideration.
>>
>> Is there someone would like to help me here? I thank you in advance.
> 
> If you are referring to the posstr functions, try replacing them with
> the PosEx() function in strutils.
> 
> Don't try to fix the assembler, it's highly dependend on how Delphi
> generates it's assembler.

This is not true. FPC can usually use inline assembler written for delphi when
{$mode delphi} and {$asmmode intel} is used.



More information about the fpc-pascal mailing list