123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768 |
- {
- $Id$
- This file is part of the Free Pascal run time library.
- Copyright (c) 1999-2000 by the Free Pascal development team.
- Processor independent implementation for the system unit
- (adapted for intel i386.inc file)
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- {****************************************************************************
- Primitives
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_MOVE}
- procedure Move(var source;var dest;count:longint);
- type
- longintarray = array [0..maxlongint] of longint;
- bytearray = array [0..maxlongint] of byte;
- var
- i,size : longint;
- begin
- size:=count div sizeof(longint);
- if (@dest)<@source) or
- (@dest>@source+count) then
- begin
- for i:=0 to size-1 do
- longintarray(dest)[i]:=longintarray(source)[i];
- for i:=size*sizeof(longint) to count-1 do
- bytearray(dest)[i]:=bytearray(source)[i];
- end
- else
- begin
- for i:=count-1 downto size*sizeof(longint) do
- bytearray(dest)[i]:=bytearray(source)[i];
- for i:=size-1 downto 0 do
- longintarray(dest)[i]:=longintarray(source)[i];
- end;
- end;
- {$endif ndef FPC_SYSTEM_HAS_MOVE}
- {$ifndef FPC_SYSTEM_HAS_FILLCHAR}
- Procedure FillChar(var x;count:longint;value:byte);
- type
- longintarray = array [0..maxlongint] of longint;
- bytearray = array [0..maxlongint] of byte;
- var
- i,v : longint;
- begin
- v:=value*256+value;
- v:=v*$10000+v;
- for i:=0 to (count div 4) -1 do
- longintarray(x)[i]:=v;
- for i:=(count div 4)*4 to count-1 do
- bytearray(x)[i]:=value;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FILLCHAR}
- {$ifndef RTLLITE}
- {$ifndef FPC_SYSTEM_HAS_FILLBYTE}
- procedure FillByte (var x;count : longint;value : byte );
- begin
- FillChar (X,Count,CHR(VALUE));
- end;
- {$endif ndef FPC_SYSTEM_HAS_FILLBYTE}
- {$ifndef FPC_SYSTEM_HAS_FILLWORD}
- procedure fillword(var x;count : longint;value : word);
- type
- longintarray = array [0..maxlongint] of longint;
- wordarray = array [0..maxlongint] of word;
- var
- i,v : longint;
- begin
- v:=value*$10000+value;
- for i:=0 to (count div 2) -1 do
- longintarray(x)[i]:=v;
- for i:=(count div 2)*2 to count-1 do
- wordarray(x)[i]:=value;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FILLWORD}
- {$ifndef FPC_SYSTEM_HAS_FILLDWORD}
- procedure FillDWord(var x;count : longint;value : DWord);
- var
- I : longint;
- begin
- if Count<>0 then
- begin
- I:=Count;
- while I<>0 do
- begin
- PDWord(@X)[I-1]:=Value;
- Dec(I);
- end;
- end;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FILLDWORD}
- {$ifndef FPC_SYSTEM_HAS_INDEXCHAR}
- function IndexChar(var buf;len:longint;b:char):longint;
- begin
- IndexChar:=IndexByte(Buf,Len,byte(B));
- end;
- {$endif ndef FPC_SYSTEM_HAS_INDEXCHAR}
- {$ifndef FPC_SYSTEM_HAS_INDEXBYTE}
- function IndexByte(var buf;len:longint;b:byte):longint;
- var
- I : longint;
- begin
- I:=0;
- while (pbyte(@buf)[I]<>b) and (I<Len) do
- inc(I);
- if (i=Len) then
- i:=-1; {Can't use 0, since it is a possible value}
- IndexByte:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INDEXBYTE}
- {$ifndef FPC_SYSTEM_HAS_INDEXWORD}
- function Indexword(var buf;len:longint;b:word):longint;
- var
- I : longint;
- begin
- I:=0;
- while (pword(@buf)[I]<>b) and (I<Len) do
- inc(I);
- if (i=Len) then
- i:=-1; {Can't use 0, since it is a possible value for index}
- Indexword:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INDEXWORD}
- {$ifndef FPC_SYSTEM_HAS_INDEXDWORD}
- function IndexDWord(var buf;len:longint;b:DWord):longint;
- var
- I : longint;
- begin
- I:=0;
- while (PDWord(@buf)[I]<>b) and (I<Len) do inc(I);
- if (i=Len) then
- i:=-1; {Can't use 0, since it is a possible value for index}
- IndexDWord:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INDEXDWORD}
- {$ifndef FPC_SYSTEM_HAS_COMPARECHAR}
- function CompareChar(var buf1,buf2;len:longint):longint;
- begin
- CompareChar:=CompareByte(buf1,buf2,len);
- end;
- {$endif ndef FPC_SYSTEM_HAS_COMPARECHAR}
- {$ifndef FPC_SYSTEM_HAS_COMPAREBYTE}
- function CompareByte(var buf1,buf2;len:longint):longint;
- var
- I,J : longint;
- begin
- I:=0;
- if (Len<>0) and (@Buf1<>@Buf2) then
- begin
- while (pbyte(@Buf1)[I]=pbyte(@Buf2)[I]) and (I<Len) do
- inc(I);
- if I=Len then {No difference}
- I:=0
- else
- begin
- I:=pbyte(@Buf1)[I]-pbyte(@Buf2)[I];
- if I>0 then
- I:=1
- else
- if I<0 then
- I:=-1;
- end;
- end;
- CompareByte:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_COMPAREBYTE}
- {$ifndef FPC_SYSTEM_HAS_COMPAREWORD}
- function CompareWord(var buf1,buf2;len:longint):longint;
- var
- I,J : longint;
- begin
- I:=0;
- if (Len<>0) and (@Buf1<>@Buf2) then
- begin
- while (pword(@Buf1)[I]=pword(@Buf2)[I]) and (I<Len) do
- inc(I);
- if I=Len then {No difference}
- I:=0
- else
- begin
- I:=pword(@Buf1)[I]-pword(@Buf2)[I];
- if I>0 then
- I:=1
- else
- if I<0 then
- I:=-1;
- end;
- end;
- CompareWord:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_COMPAREWORD}
- {$ifndef FPC_SYSTEM_HAS_COMPAREDWORD}
- function CompareDWord(var buf1,buf2;len:longint):longint;
- var
- I,J : longint;
- begin
- I:=0;
- if (Len<>0) and (@Buf1<>@Buf2) then
- begin
- while (PDWord(@Buf1)[I]=PDWord(@Buf2)[I]) and (I<Len) do
- inc(I);
- if I=Len then {No difference}
- I:=0
- else
- begin
- I:=PDWord(@Buf1)[I]-PDWord(@Buf2)[I];
- if I>0 then
- I:=1
- else
- if I<0 then
- I:=-1;
- end;
- end;
- CompareDWord:=I;
- end;
- {$endif ndef FPC_SYSTEM_HAS_COMPAREDWORD}
- {$ifndef FPC_SYSTEM_HAS_MOVECHAR0}
- procedure MoveChar0(var buf1,buf2;len:longint);
- var
- I : longint;
- begin
- if Len<> 0 then
- begin
- I:=IndexByte(Buf1,Len,0);
- if I<>0 then
- Move(Buf1,Buf2,I);
- end;
- end;
- {$endif ndef FPC_SYSTEM_HAS_MOVECHAR0}
- {$ifndef FPC_SYSTEM_HAS_INDEXCHAR0}
- function IndexChar0(var buf;len:longint;b:Char):longint;
- var
- I : longint;
- begin
- if Len<>0 then
- begin
- I:=IndexByte(Buf1,Len,0);
- IndexChar0:=IndexByte(Buf1,I,0);
- end
- else
- IndexChar0:=0;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INDEXCHAR0}
- {$ifndef FPC_SYSTEM_HAS_COMPARECHAR0}
- function CompareChar0(var buf1,buf2;len:longint):longint;
- var
- I,J,K,bytesTodo : longint;
- begin
- K:=0;
- if Len<>0 then
- begin
- I:=IndexByte(Buf1,Len,0);
- J:=IndexByte(Buf2,Len,0);
- if (I<>0) and (J<>0) then
- begin
- bytesTodo:=I;
- if J<bytesTodo then
- bytesTodo:=J;
- K:=CompareByte(Buf1,Buf2,bytesTodo); // Safe for bytesTodo=0
- end;
- end;
- CompareChar0:=K;
- end;
- {$endif ndef FPC_SYSTEM_HAS_COMPARECHAR0}
- {$endif ndef RTLLITE}
- {****************************************************************************
- Object Helpers
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_FPC_HELP_CONSTRUCTOR}
- { Generic code does not set the register used for self !
- So this needs to be done by the compiler after calling
- FPC_HELP_CONSTRUCTOR : generic allways means aa little less efficient (PM) }
- procedure int_help_constructor(var _self : pointer; vmt : pointer; vmt_pos : cardinal); [public,alias:'FPC_HELP_CONSTRUCTOR'];
- type
- ppointer = ^pointer;
- pvmt = ^tvmt;
- tvmt = record
- size,msize : longint;
- parent : pointer;
- end;
- var
- objectsize : longint;
- begin
- objectsize:=pvmt(vmt)^.size;
- getmem(_self,objectsize);
- fillchar(_self,objectsize,#0);
- ppointer(_self+vmt_pos)^:=vmt;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_HELP_CONSTRUCTOR}
- {$ifndef FPC_SYSTEM_HAS_FPC_HELP_DESTRUCTOR}
- procedure int_help_destructor(var _self : pointer; vmt : pointer; vmt_pos : cardinal);[public,alias:'FPC_HELP_DESTRUCTOR'];
- type
- ppointer = ^pointer;
- pvmt = ^tvmt;
- tvmt = record
- size,msize : longint;
- parent : pointer;
- end;
- var
- objectsize : longint;
- begin
- if (_self=nil) then
- exit;
- if (pvmt(ppointer(_self+vmt_pos)^)^.size=0) or
- (pvmt(ppointer(_self+vmt_pos)^)^.size+pvmt(ppointer(_self+vmt_pos)^)^.msize<>0) then
- RunError(210);
- objectsize:=pvmt(vmt)^.size;
- { reset vmt to nil for protection }
- ppointer(_self+vmt_pos)^:=nil;
- freemem(_self,objectsize);
- _self:=nil;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_HELP_DESTRUCTOR}
- {$ifndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
- procedure int_new_class;assembler;[public,alias:'FPC_NEW_CLASS'];
- asm
- { to be sure in the future, we save also edit }
- pushl %edi
- { create class ? }
- movl 8(%ebp),%edi
- orl %edi,%edi
- jz .LNEW_CLASS1
- { save registers !! }
- pushl %ebx
- pushl %ecx
- pushl %edx
- { esi contains the vmt }
- pushl %esi
- { call newinstance (class method!) }
- call *16(%esi)
- popl %edx
- popl %ecx
- popl %ebx
- { newinstance returns a pointer to the new created }
- { instance in eax }
- { load esi and insert self }
- movl %eax,%esi
- .LNEW_CLASS1:
- movl %esi,8(%ebp)
- orl %eax,%eax
- popl %edi
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_NEW_CLASS}
- {$ifndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
- procedure int_dispose_class;assembler;[public,alias:'FPC_DISPOSE_CLASS'];
- asm
- { to be sure in the future, we save also edit }
- pushl %edi
- { destroy class ? }
- movl 12(%ebp),%edi
- orl %edi,%edi
- jz .LDISPOSE_CLASS1
- { no inherited call }
- movl (%esi),%edi
- { save registers !! }
- pushl %eax
- pushl %ebx
- pushl %ecx
- pushl %edx
- { push self }
- pushl %esi
- { call freeinstance }
- call *20(%edi)
- popl %edx
- popl %ecx
- popl %ebx
- popl %eax
- .LDISPOSE_CLASS1:
- popl %edi
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_DISPOSE_CLASS}
- {$ifndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT}
- procedure int_check_object(vmt : pointer);[public,alias:'FPC_CHECK_OBJECT'];
- type
- pvmt = ^tvmt;
- tvmt = record
- size,msize : longint;
- parent : pointer;
- end;
- begin
- if (vmt=nil) or
- (pvmt(vmt)^.size=0) or
- (pvmt(vmt)^.size+pvmt(vmt)^.msize<>0) then
- RunError(210);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT}
- { checks for a correct vmt pointer }
- { deeper check to see if the current object is }
- { really related to the true }
- {$ifndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT_EXT}
- procedure int_check_object_ext(vmt, expvmt : pointer);[public,alias:'FPC_CHECK_OBJECT_EXT'];
- type
- pvmt = ^tvmt;
- tvmt = record
- size,msize : longint;
- parent : pointer;
- end;
- begin
- if (vmt=nil) or
- (pvmt(vmt)^.size=0) or
- (pvmt(vmt)^.size+pvmt(vmt)^.msize<>0) then
- RunError(210);
- while assigned(vmt) do
- if vmt=expvmt then
- exit
- else
- vmt:=pvmt(vmt)^.parent;
- RunError(220);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_CHECK_OBJECT_EXT}
- {****************************************************************************
- String
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_FPC_SHORTSTR_COPY}
- procedure int_strcopy(len:longint;sstr,dstr:pointer);[public,alias:'FPC_SHORTSTR_COPY'];
- var
- slen : byte;
- begin
- if dstr=nil then
- exit;
- if sstr=nil then
- begin
- if dstr<>nil then
- pstring(dstr)^[0]:=#0;
- exit;
- end;
- slen:=length(pstring(sstr)^);
- if slen<len then
- len:=slen;
- move(sstr^,dstr^,len);
- pstring(dstr)^[0]:=chr(len);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_SHORTSTR_COPY}
- {$ifndef FPC_SYSTEM_HAS_FPC_SHORTSTR_CONCAT}
- procedure int_strconcat(s1,s2:pointer);[public,alias:'FPC_SHORTSTR_CONCAT'];
- var
- s1l, s2l : byte;
- begin
- if (s1=nil) or (s2=nil) then
- exit;
- s1l:=length(pstring(s1)^);
- s2l:=length(pstring(s2)^);
- if s1l+s2l>255 then
- s1l:=255-s2l;
- move(@(pstring(s1)^[1]),@(pstring(s2)^[s2l+1]),s1l);
- pstring(s2)^[0]:=chr(s1l+s2l);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_SHORTSTR_CONCAT}
- {$ifndef FPC_SYSTEM_HAS_FPC_SHORTSTR_COMPARE}
- function int_strcmp(dstr,sstr:pointer) : longint;[public,alias:'FPC_SHORTSTR_COMPARE'];
- var
- s1,s2,max,i : byte;
- d : longint;
- begin
- s1:=length(pstring(dstr)^);
- s2:=length(pstring(sstr)^);
- if s1<s2 then
- max:=s1
- else
- max:=s2;
- for i:=1 to max do
- begin
- d:=byte(pstring(dstr)^[i])-byte(pstring(sstr)^[i]);
- if d>0 then
- exit(1)
- else if d<0 then
- exit(-1);
- end;
- if s1>s2 then
- exit(1)
- else if s1<s2 then
- exit(-1)
- else
- exit(0);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_SHORTSTR_COMPARE}
- {$ifndef FPC_SYSTEM_HAS_FPC_PCHAR_TO_SHORTSTR}
- function strpas(p:pchar):string;[public,alias:'FPC_PCHAR_TO_SHORTSTR'];
- var
- l : longint;
- begin
- if p=nil then
- l:=0
- else
- l:=strlen(p);
- if l>255 then
- l:=255;
- if l>0 then
- move(p^,@(strpas[1]),l);
- strpas[0]:=chr(l);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_PCHAR_TO_SHORTSTR}
- {$ifndef FPC_SYSTEM_HAS_FPC_CHARARRAY_TO_SHORTSTR}
- function strchararray(p:pchar; l : longint):shortstring;[public,alias:'FPC_CHARARRAY_TO_SHORTSTR'];
- begin
- if l>=256 then
- l:=255
- else if l<0 then
- l:=0;
- move(p^,@(strchararray[1]),l);
- strchararray[0]:=chr(l);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_CHARARRAY_TO_SHORTSTR}
- {$ifndef FPC_SYSTEM_HAS_STRLEN}
- function strlen(p:pchar):longint;
- var i : longint;
- begin
- i:=0;
- while p[i]<>#0 do inc(i);
- exit(i);
- end;
- {$endif ndef FPC_SYSTEM_HAS_STRLEN}
- {****************************************************************************
- Caller/StackFrame Helpers
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_GET_FRAME}
- {$error Get_frame must be defined for each processor }
- {$endif ndef FPC_SYSTEM_HAS_GET_FRAME}
- {$ifndef FPC_SYSTEM_HAS_GET_CALLER_ADDR}
- {$error Get_caller_addr must be defined for each processor }
- {$endif ndef FPC_SYSTEM_HAS_GET_CALLER_ADDR}
- {$ifndef FPC_SYSTEM_HAS_GET_CALLER_FRAME}
- {$error Get_caller_frame must be defined for each processor }
- {$endif ndef FPC_SYSTEM_HAS_GET_CALLER_FRAME}
- {****************************************************************************
- Math
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_ABS_LONGINT}
- function abs(l:longint):longint;[internconst:in_const_abs];
- begin
- if l<0 then
- abs:=-l
- else
- abs:=l;
- end;
- {$endif ndef FPC_SYSTEM_HAS_ABS_LONGINT}
- {$ifndef FPC_SYSTEM_HAS_ODD_LONGINT}
- function odd(l:longint):boolean;[internconst:in_const_odd];
- begin
- odd:=((l and 1)<>0);
- end;
- {$endif ndef FPC_SYSTEM_HAS_ODD_LONGINT}
- {$ifndef FPC_SYSTEM_HAS_SQR_LONGINT}
- function sqr(l:longint):longint;[internconst:in_const_sqr];
- begin
- sqr:=l*l;
- end;
- {$endif ndef FPC_SYSTEM_HAS_SQR_LONGINT}
- {$ifndef FPC_SYSTEM_HAS_SPTR}
- {$error Sptr must be defined for each processor }
- {$endif ndef FPC_SYSTEM_HAS_SPTR}
- {****************************************************************************
- Str()
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_INT_STR_LONGINT}
- procedure int_str(l : longint;var s : string);
- var
- sign : boolean;
- begin
- { Workaround: }
- if l=$80000000 then
- begin
- s:='-2147483648';
- exit;
- end;
- if l<0 then
- begin
- sign:=true;
- l:=-l;
- end
- else
- sign:=false;
- s:='';
- while l>0 do
- begin
- s:=char(ord('0')+(l mod 10))+s;
- l:=l div 10;
- end;
- if sign then
- s:='-'+s;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INT_STR_LONGINT}
- {$ifndef FPC_SYSTEM_HAS_INT_STR_CARDINAL}
- procedure int_str(l : cardinal;var s : string);
- begin
- s:='';
- while l>0 do
- begin
- s:=char(ord('0')+(l mod 10))+s;
- l:=l div 10;
- end;
- if sign then
- s:='-'+s;
- end;
- {$endif ndef FPC_SYSTEM_HAS_INT_STR_CARDINAL}
- {****************************************************************************
- Bounds Check
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_FPC_BOUNDCHECK}
- procedure int_boundcheck(l : longint; range : pointer);[public,alias: 'FPC_BOUNDCHECK'];
- type
- prange = ^trange;
- trange = record
- min,max : longint;
- end;
- begin
- if (l < prange(range)^.min) or
- (l > prange(range)^.max) then
- HandleError(201);
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_BOUNDCHECK}
- {$ifndef HASSAVEREGISTERS}
- {****************************************************************************
- IoCheck
- ****************************************************************************}
- {$ifndef FPC_SYSTEM_HAS_FPC_IOCHECK}
- procedure int_iocheck(addr : longint);[public,alias:'FPC_IOCHECK'];
- var
- l : longint;
- begin
- if InOutRes<>0 then
- begin
- l:=InOutRes;
- InOutRes:=0;
- HandleErrorFrame(l,get_frame);
- end;
- end;
- {$endif ndef FPC_SYSTEM_HAS_FPC_IOCHECK}
- {$endif}
- {
- $Log$
- Revision 1.7 2000-02-09 16:59:29 peter
- * truncated log
- Revision 1.6 2000/01/10 09:54:30 peter
- * primitives added
- Revision 1.5 2000/01/07 16:41:34 daniel
- * copyright 2000
- Revision 1.4 2000/01/07 16:32:24 daniel
- * copyright 2000 added
- Revision 1.3 1999/12/21 11:12:16 pierre
- * some assembler functions translated to pascal
- WARNING these are not yet TESTED !!!
- + FPC_CHARARRAY_TO_SHORTSTRING added
- }
|