Browse Source

* soft float support functions declarations fixed.
* ANSI<->WIDE support functions declarations moved to interface section.

git-svn-id: trunk@961 -

yury 20 years ago
parent
commit
2ed95f4a75
1 changed files with 22 additions and 18 deletions
  1. 22 18
      rtl/wince/system.pp

+ 22 - 18
rtl/wince/system.pp

@@ -76,6 +76,10 @@ const
 type
   HMODULE = THandle;
 
+{ ANSI <-> Wide }
+function AnsiToWideBuf(AnsiBuf: PChar; AnsiBufLen: longint; WideBuf: PWideChar; WideBufLen: longint): longint;
+function WideToAnsiBuf(WideBuf: PWideChar; WideBufLen: longint; AnsiBuf: PChar; AnsiBufLen: longint): longint;
+
 { Wrappers for some WinAPI calls }
 function  CreateEvent(lpEventAttributes:pointer;bManualReset:longbool;bInitialState:longbool;lpName:pchar): THandle; stdcall;
 function ResetEvent(h: THandle): LONGBOOL; stdcall;
@@ -96,59 +100,59 @@ function CreateDirectory(name : pointer;sec : pointer) : longbool; stdcall;
 function RemoveDirectory(name:pointer):longbool; stdcall;
 
 function addd(d1,d2 : double) : double; compilerproc;
-   stdcall;external 'coredll' name '_addd';
+   cdecl;external 'coredll' name '__addd';
 
 function muld(d1,d2 : double) : double; compilerproc;
-   stdcall;external 'coredll' name '_muld';
+   cdecl;external 'coredll' name '__muld';
 
 function divd(d1,d2 : double) : double; compilerproc;
-   stdcall;external 'coredll' name '_divd';
+   cdecl;external 'coredll' name '__divd';
 
 function subd(d1,d2 : double) : double; compilerproc;
-   stdcall;external 'coredll' name '_subd';
+   cdecl;external 'coredll' name '__subd';
 
 function eqs(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_eqs';
+   cdecl;external 'coredll' name '__eqs';
 
 function nes(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_nes';
+   cdecl;external 'coredll' name '__nes';
 
 function lts(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_lts';
+   cdecl;external 'coredll' name '__lts';
 
 function gts(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_gts';
+   cdecl;external 'coredll' name '__gts';
 
 function ges(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_ges';
+   cdecl;external 'coredll' name '__ges';
 
 function les(d1,d2 : single) : boolean; compilerproc;
-   stdcall;external 'coredll' name '_les';
+   cdecl;external 'coredll' name '__les';
 
 function dtos(d : double) : single; compilerproc;
-   stdcall;external 'coredll' name '_dtos';
+   cdecl;external 'coredll' name '__dtos';
 
 function stod(d : single) : double; compilerproc;
-   stdcall;external 'coredll' name '_stod';
+   cdecl;external 'coredll' name '__stod';
 
 function negs(d : single) : single; compilerproc;
-   stdcall;external 'coredll' name '_negs';
+   cdecl;external 'coredll' name '__negs';
 
 function negd(d : double) : double; compilerproc;
-   stdcall;external 'coredll' name '_negd';
+   cdecl;external 'coredll' name '__negd';
 
 function utod(i : dword) : double; compilerproc;
-   stdcall;external 'coredll' name '_utod';
+   cdecl;external 'coredll' name '__utod';
 
 function itod(i : longint) : double; compilerproc;
-   stdcall;external 'coredll' name '_itod';
+   cdecl;external 'coredll' name '__itod';
 
 
 function ui64tod(i : qword) : double; compilerproc;
-   stdcall;external 'coredll' name '_ui64tod';
+   cdecl;external 'coredll' name '__u64tod';
 
 function i64tod(i : int64) : double; compilerproc;
-   stdcall;external 'coredll' name '_i64tod';
+   cdecl;external 'coredll' name '__i64tod';
 
 implementation