compproc.inc 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Run time library.
  4. Copyright (c) 1999-2000 by the Free Pascal development team
  5. This file contains the declarations of internal compiler helper
  6. routines. That means you can *NOT* call these directly, as they may
  7. be changed or even removed at any time. The only reason they are
  8. included in the interface of the system unit, is so that the
  9. compiler doesn't need special code to access their parameter
  10. list information etc.
  11. Note that due to the "compilerproc" directive, it isn't even possible
  12. to use these routines in your programs.
  13. See the File COPYING.FPC, included in this distribution,
  14. for details about the copyright.
  15. This program is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18. **********************************************************************}
  19. { some dummy types necessary to have generic resulttypes for certain compilerprocs }
  20. type
  21. { normally the array shall be maxlongint big, but that will confuse
  22. the debugger }
  23. fpc_big_chararray = array[0..1023] of char;
  24. fpc_small_set = longint;
  25. fpc_normal_set = array[0..7] of longint;
  26. {$ifdef hascompilerproc}
  27. { Needed to solve overloading problem with call from assembler (PFV) }
  28. {$ifdef valuegetmem}
  29. Function fpc_getmem(size:Longint):pointer;compilerproc;
  30. {$endif}
  31. {$ifdef valuefreemem}
  32. Procedure fpc_freemem(p:pointer);compilerproc;
  33. {$endif valuefreemem}
  34. procedure fpc_Shortstr_SetLength(var s:shortstring;len:StrLenInt); compilerproc;
  35. function fpc_shortstr_to_shortstr(len:longint; const sstr: shortstring): shortstring; compilerproc;
  36. function fpc_shortstr_concat(const s1,s2:shortstring): shortstring; compilerproc;
  37. procedure fpc_shortstr_append_shortstr(var s1:shortstring;const s2:shortstring); compilerproc;
  38. function fpc_shortstr_compare(const left,right:shortstring) : longint; compilerproc;
  39. function fpc_pchar_to_shortstr(p:pchar):shortstring; compilerproc;
  40. function fpc_pchar_length(p:pchar):longint; compilerproc;
  41. function fpc_pwidechar_length(p:pwidechar):longint; compilerproc;
  42. function fpc_chararray_to_shortstr(const arr: array of char):shortstring; compilerproc;
  43. function fpc_shortstr_to_chararray(arraysize: longint; const src: ShortString): fpc_big_chararray; compilerproc;
  44. Function fpc_shortstr_Copy(const s:shortstring;index:StrLenInt;count:StrLenInt):shortstring;compilerproc;
  45. Function fpc_ansistr_Copy (Const S : AnsiString; Index,Size : Longint) : AnsiString;compilerproc;
  46. Function fpc_widestr_Copy (Const S : WideString; Index,Size : Longint) : WideString;compilerproc;
  47. function fpc_char_copy(c:char;index : StrLenInt;count : StrLenInt): shortstring;compilerproc;
  48. procedure fpc_dynarray_copy(var pdest : pointer;psrc : pointer;ti : pointer;lowidx,highidx:longint);compilerproc;
  49. function fpc_dynarray_length(p : pointer) : tdynarrayindex; compilerproc;
  50. function fpc_dynarray_high(p : pointer) : tdynarrayindex; compilerproc;
  51. procedure fpc_dynarray_clear(var p : pointer;ti : pointer); compilerproc;
  52. procedure fpc_dynarray_decr_ref(var p : pointer;ti : pointer); compilerproc;
  53. procedure fpc_dynarray_incr_ref(p : pointer); compilerproc;
  54. procedure fpc_dynarray_setlength(var p : pointer;pti : pointer; dimcount : dword;dims : pdynarrayindex); compilerproc;
  55. procedure fpc_ShortStr_Float(d : ValReal;len,fr,rt : longint;var s : shortstring); compilerproc;
  56. procedure fpc_ShortStr_Longint(v : longint;len : longint;var s : shortstring); compilerproc;
  57. procedure fpc_shortstr_longword(v : longword;len : longint;var s : shortstring); compilerproc;
  58. procedure fpc_chararray_Float(d : ValReal;len,fr,rt : longint;var a : array of char); compilerproc;
  59. procedure fpc_chararray_Longint(v : longint;len : longint;var a : array of char); compilerproc;
  60. procedure fpc_chararray_longword(v : longword;len : longint;var a : array of char); compilerproc;
  61. Function fpc_Val_SInt_ShortStr(DestSize: longint; Const S: ShortString; var Code: ValSInt): ValSInt; compilerproc;
  62. Function fpc_Val_UInt_Shortstr(Const S: ShortString; var Code: ValSInt): ValUInt; compilerproc;
  63. Function fpc_Val_Real_ShortStr(const s : shortstring; var code : ValSInt): ValReal; compilerproc;
  64. Procedure fpc_AnsiStr_Decr_Ref (Var S : Pointer); compilerproc;
  65. Procedure fpc_AnsiStr_Incr_Ref (S : Pointer); compilerproc;
  66. Procedure fpc_AnsiStr_Assign (Var S1 : Pointer;S2 : Pointer); compilerproc;
  67. function fpc_AnsiStr_Concat (const S1,S2 : AnsiString): AnsiString; compilerproc;
  68. Procedure fpc_ansistr_append_char(Var S : AnsiString;c : char); compilerproc;
  69. Procedure fpc_ansistr_append_shortstring(Var S : AnsiString;Str : ShortString); compilerproc;
  70. Procedure fpc_ansistr_append_ansistring(Var S : AnsiString;Str : AnsiString); compilerproc;
  71. {$ifdef EXTRAANSISHORT}
  72. Procedure fpc_AnsiStr_ShortStr_Concat (Var S1: AnsiString; Var S2 : ShortString); compilerproc;
  73. {$endif EXTRAANSISHORT}
  74. function fpc_AnsiStr_To_ShortStr (high_of_res: longint;const S2 : Ansistring): shortstring; compilerproc;
  75. Function fpc_ShortStr_To_AnsiStr (Const S2 : ShortString): ansistring; compilerproc;
  76. Function fpc_Char_To_AnsiStr(const c : Char): AnsiString; compilerproc;
  77. Function fpc_PChar_To_AnsiStr(const p : pchar): ansistring; compilerproc;
  78. Function fpc_CharArray_To_AnsiStr(const arr: array of char): ansistring; compilerproc;
  79. function fpc_ansistr_to_chararray(arraysize: longint; const src: ansistring): fpc_big_chararray; compilerproc;
  80. Function fpc_AnsiStr_Compare(const S1,S2 : AnsiString): Longint; compilerproc;
  81. Procedure fpc_AnsiStr_CheckZero(p : pointer); compilerproc;
  82. Procedure fpc_AnsiStr_CheckRange(len,index : longint); compilerproc;
  83. Procedure fpc_AnsiStr_SetLength (Var S : AnsiString; l : Longint); compilerproc;
  84. {$ifdef EXTRAANSISHORT}
  85. Function fpc_AnsiStr_ShortStr_Compare (Var S1 : Pointer; Var S2 : ShortString): Longint; compilerproc;
  86. {$endif EXTRAANSISHORT}
  87. { pointer argument because otherwise when calling this, we get }
  88. { an endless loop since a 'var s: ansistring' must be made }
  89. { unique as well }
  90. Function fpc_ansistr_Unique(Var S : Pointer): Pointer; compilerproc;
  91. Procedure fpc_WideStr_Decr_Ref (Var S : Pointer); compilerproc;
  92. Procedure fpc_WideStr_Incr_Ref (S : Pointer); compilerproc;
  93. function fpc_WideStr_To_ShortStr (high_of_res: longint;const S2 : WideString): shortstring; compilerproc;
  94. Function fpc_ShortStr_To_WideStr (Const S2 : ShortString): WideString; compilerproc;
  95. Function fpc_WideStr_To_AnsiStr (const S2 : WideString): AnsiString; compilerproc;
  96. Function fpc_AnsiStr_To_WideStr (Const S2 : AnsiString): WideString; compilerproc;
  97. Procedure fpc_WideStr_Assign (Var S1 : Pointer;S2 : Pointer); compilerproc;
  98. Function fpc_WideStr_Concat (const S1,S2 : WideString) : WideString; compilerproc;
  99. Function fpc_Char_To_WideStr(const c : Char): WideString; compilerproc;
  100. Function fpc_PChar_To_WideStr(const p : pchar): WideString; compilerproc;
  101. Function fpc_CharArray_To_WideStr(const arr: array of char): WideString; compilerproc;
  102. function fpc_widestr_to_chararray(arraysize: longint; const src: WideString): fpc_big_chararray; compilerproc;
  103. Function fpc_WideStr_Compare(const S1,S2 : WideString): Longint; compilerproc;
  104. Procedure fpc_WideStr_CheckZero(p : pointer); compilerproc;
  105. Procedure fpc_WideStr_CheckRange(len,index : longint); compilerproc;
  106. Procedure fpc_WideStr_SetLength (Var S : WideString; l : Longint); compilerproc;
  107. function fpc_widestr_Unique(Var S : Pointer): Pointer; compilerproc;
  108. {$ifdef HASWIDECHAR}
  109. Function fpc_PWideChar_To_AnsiStr(const p : pwidechar): ansistring; compilerproc;
  110. Function fpc_PWideChar_To_WideStr(const p : pwidechar): widestring; compilerproc;
  111. Function fpc_PWideChar_To_ShortStr(const p : pwidechar): shortstring; compilerproc;
  112. {$endif HASWIDECHAR}
  113. Function fpc_Val_Real_AnsiStr(Const S : AnsiString; Var Code : ValSInt): ValReal; compilerproc;
  114. Function fpc_Val_UInt_AnsiStr (Const S : AnsiString; Var Code : ValSInt): ValUInt; compilerproc;
  115. Function fpc_Val_SInt_AnsiStr (DestSize: longint; Const S : AnsiString; Var Code : ValSInt): ValSInt; compilerproc;
  116. Function fpc_Val_qword_AnsiStr (Const S : AnsiString; Var Code : ValSInt): qword;compilerproc;
  117. Function fpc_Val_int64_AnsiStr (Const S : AnsiString; Var Code : ValSInt): Int64; compilerproc;
  118. procedure fpc_AnsiStr_Float(d : ValReal;len,fr,rt : longint;var s : ansistring); compilerproc;
  119. Procedure fpc_AnsiStr_Longword(C : Longword;Len : Longint; Var S : AnsiString); compilerproc;
  120. Procedure fpc_AnsiStr_Longint(L : Longint; Len : Longint; Var S : AnsiString); compilerproc;
  121. Function fpc_Val_Real_WideStr(Const S : WideString; Var Code : ValSInt): ValReal; compilerproc;
  122. Function fpc_Val_UInt_WideStr (Const S : WideString; Var Code : ValSInt): ValUInt; compilerproc;
  123. Function fpc_Val_SInt_WideStr (DestSize: longint; Const S : WideString; Var Code : ValSInt): ValSInt; compilerproc;
  124. Function fpc_Val_qword_WideStr (Const S : WideString; Var Code : ValSInt): qword; compilerproc;
  125. Function fpc_Val_int64_WideStr (Const S : WideString; Var Code : ValSInt): Int64; compilerproc;
  126. procedure fpc_WideStr_Float(d : ValReal;len,fr,rt : longint;var s : WideString); compilerproc;
  127. Procedure fpc_WideStr_Longword(C : Longword;Len : Longint; Var S : WideString); compilerproc;
  128. Procedure fpc_WideStr_Longint(L : Longint; Len : Longint; Var S : WideString); compilerproc;
  129. { from text.inc }
  130. Procedure fpc_Write_End(var f:Text); compilerproc;
  131. Procedure fpc_Writeln_End(var f:Text); compilerproc;
  132. Procedure fpc_Write_Text_ShortStr(Len : Longint;var f : Text;const s : String); compilerproc;
  133. Procedure fpc_Write_Text_Pchar_as_Array(Len : Longint;var f : Text;const s : array of char); compilerproc;
  134. Procedure fpc_Write_Text_PChar_As_Pointer(Len : Longint;var f : Text;p : PChar); compilerproc;
  135. Procedure fpc_Write_Text_AnsiStr (Len : Longint; Var f : Text; S : AnsiString); compilerproc;
  136. {$ifdef HASWIDESTRING}
  137. Procedure fpc_Write_Text_WideStr (Len : Longint; Var f : Text; S : WideString); compilerproc;
  138. {$endif HASWIDESTRING}
  139. Procedure fpc_Write_Text_SInt(Len : Longint;var t : Text;l : ValSInt); compilerproc;
  140. Procedure fpc_Write_Text_UInt(Len : Longint;var t : Text;l : ValUInt); compilerproc;
  141. procedure fpc_write_text_qword(len : longint;var t : text;q : qword); compilerproc;
  142. procedure fpc_write_text_int64(len : longint;var t : text;i : int64); compilerproc;
  143. Procedure fpc_Write_Text_Float(rt,fixkomma,Len : Longint;var t : Text;r : ValReal); compilerproc;
  144. Procedure fpc_Write_Text_Boolean(Len : Longint;var t : Text;b : Boolean); compilerproc;
  145. Procedure fpc_Write_Text_Char(Len : Longint;var t : Text;c : Char); compilerproc;
  146. {$ifdef HASWIDECHAR}
  147. Procedure fpc_Write_Text_WideChar(Len : Longint;var t : Text;c : WideChar); compilerproc;
  148. {$endif HASWIDECHAR}
  149. {$ifdef HASVARIANT}
  150. // Procedure fpc_Write_Text_Variant(Len : Longint;var f : Text;const v : variant);compilerproc;
  151. // function fpc_variant_to_dynarray(const v : variant;typeinfo : pointer) : pointer;compilerproc;
  152. {$endif HASVARIANT}
  153. Procedure fpc_Read_End(var f:Text); compilerproc;
  154. Procedure fpc_ReadLn_End(var f : Text); compilerproc;
  155. Procedure fpc_Read_Text_ShortStr(var f : Text;var s : String); compilerproc;
  156. Procedure fpc_Read_Text_PChar_As_Pointer(var f : Text;var s : PChar); compilerproc;
  157. Procedure fpc_Read_Text_PChar_As_Array(var f : Text;var s : array of char); compilerproc;
  158. Procedure fpc_Read_Text_AnsiStr(var f : Text;var s : AnsiString); compilerproc;
  159. Procedure fpc_Read_Text_Char(var f : Text; var c : char); compilerproc;
  160. Procedure fpc_Read_Text_SInt(var f : Text; var l :ValSInt); compilerproc;
  161. Procedure fpc_Read_Text_UInt(var f : Text; var u :ValUInt); compilerproc;
  162. Procedure fpc_Read_Text_Float(var f : Text; var v :ValReal); compilerproc;
  163. Procedure fpc_Read_Text_QWord(var f : text; var q : qword); compilerproc;
  164. Procedure fpc_Read_Text_Int64(var f : text; var i : int64); compilerproc;
  165. { from int64.inc }
  166. procedure fpc_shortstr_qword(v : qword;len : longint;var s : shortstring); compilerproc;
  167. procedure fpc_shortstr_int64(v : int64;len : longint;var s : shortstring); compilerproc;
  168. procedure fpc_ansistr_qword(v : qword;len : longint;var s : ansistring); compilerproc;
  169. procedure fpc_ansistr_int64(v : int64;len : longint;var s : ansistring); compilerproc;
  170. Function fpc_val_int64_shortstr(Const S: ShortString; var Code: ValSInt): Int64; compilerproc;
  171. Function fpc_val_qword_shortstr(Const S: ShortString; var Code: ValSInt): QWord; compilerproc;
  172. procedure fpc_widestr_qword(v : qword;len : longint;var s : widestring); compilerproc;
  173. procedure fpc_widestr_int64(v : int64;len : longint;var s : widestring); compilerproc;
  174. function fpc_div_qword(n,z : qword) : qword; compilerproc;
  175. function fpc_mod_qword(n,z : qword) : qword; compilerproc;
  176. function fpc_div_int64(n,z : int64) : int64; compilerproc;
  177. function fpc_mod_int64(n,z : int64) : int64; compilerproc;
  178. function fpc_mul_qword(f1,f2 : qword;checkoverflow : longbool) : qword; compilerproc;
  179. function fpc_mul_int64(f1,f2 : int64;checkoverflow : longbool) : int64; compilerproc;
  180. function fpc_round(d : Extended) : int64;compilerproc;
  181. function fpc_do_is(aclass : tclass;aobject : tobject) : boolean; compilerproc;
  182. function fpc_do_as(aclass : tclass;aobject : tobject): tobject; compilerproc;
  183. procedure fpc_intf_decr_ref(var i: pointer); compilerproc;
  184. procedure fpc_intf_incr_ref(i: pointer); compilerproc;
  185. procedure fpc_intf_assign(var D: pointer; const S: pointer); compilerproc;
  186. function fpc_intf_as(const S: pointer; const iid: TGUID): pointer; compilerproc;
  187. function fpc_class_as_intf(const S: pointer; const iid: TGUID): pointer; compilerproc;
  188. Function fpc_PushExceptAddr (Ft: Longint;_buf,_newaddr : pointer): PJmp_buf ; compilerproc;
  189. Procedure fpc_PushExceptObj (Obj : TObject; AnAddr,AFrame : Pointer); compilerproc;
  190. Function fpc_Raiseexception (Obj : TObject; AnAddr,AFrame : Pointer) : TObject; compilerproc;
  191. Procedure fpc_PopAddrStack; compilerproc;
  192. function fpc_PopObjectStack : TObject; compilerproc;
  193. function fpc_PopSecondObjectStack : TObject; compilerproc;
  194. Procedure fpc_ReRaise; compilerproc;
  195. Function fpc_Catches(Objtype : TClass) : TObject; compilerproc;
  196. function fpc_help_constructor(_self:pointer;var _vmt:pointer;_vmt_pos:cardinal):pointer;compilerproc;
  197. procedure fpc_help_destructor(_self,_vmt:pointer;vmt_pos:cardinal);compilerproc;
  198. procedure fpc_help_fail(_self:pointer;var _vmt:pointer;vmt_pos:cardinal);compilerproc;
  199. {$ifdef dummy}
  200. Procedure fpc_DestroyException(o : TObject); compilerproc;
  201. procedure fpc_check_object(obj:pointer); compilerproc;
  202. procedure fpc_check_object_ext(vmt,expvmt:pointer);compilerproc;
  203. {$endif dummy}
  204. Procedure fpc_Initialize (Data,TypeInfo : pointer); compilerproc;
  205. Procedure fpc_finalize (Data,TypeInfo: Pointer); compilerproc;
  206. Procedure fpc_Addref (Data,TypeInfo : Pointer); compilerproc;
  207. Procedure fpc_DecRef (Data,TypeInfo : Pointer); compilerproc;
  208. procedure fpc_finalize_array(data,typeinfo : pointer;count,size : longint); compilerproc;
  209. function fpc_set_load_small(l: fpc_small_set): fpc_normal_set; compilerproc;
  210. function fpc_set_create_element(b : byte): fpc_normal_set; compilerproc;
  211. function fpc_set_set_byte(const source: fpc_normal_set; b : byte): fpc_normal_set; compilerproc;
  212. function fpc_set_unset_byte(const source: fpc_normal_set; b : byte): fpc_normal_set; compilerproc;
  213. function fpc_set_set_range(const orgset: fpc_normal_set; l,h : byte): fpc_normal_set; compilerproc;
  214. function fpc_set_in_byte(const p: fpc_normal_set; b: byte): boolean; compilerproc;
  215. function fpc_set_add_sets(const set1,set2: fpc_normal_set): fpc_normal_set; compilerproc;
  216. function fpc_set_mul_sets(const set1,set2: fpc_normal_set): fpc_normal_set; compilerproc;
  217. function fpc_set_sub_sets(const set1,set2: fpc_normal_set): fpc_normal_set; compilerproc;
  218. function fpc_set_symdif_sets(const set1,set2: fpc_normal_set): fpc_normal_set; compilerproc;
  219. function fpc_set_comp_sets(const set1,set2: fpc_normal_set): boolean; compilerproc;
  220. function fpc_set_contains_sets(const set1,set2: fpc_normal_set): boolean; compilerproc;
  221. {$ifdef LARGESETS}
  222. procedure fpc_largeset_set_word(p : pointer;b : word); compilerproc;
  223. procedure fpc_largeset_in_word(p : pointer;b : word); compilerproc;
  224. procedure fpc_largeset_add_sets(set1,set2,dest : pointer;size : longint); compilerproc;
  225. procedure fpc_largeset_sets(set1,set2,dest : pointer;size : longint); compilerproc;
  226. procedure fpc_largeset_sub_sets(set1,set2,dest : pointer;size : longint); compilerproc;
  227. procedure fpc_largeset_symdif_sets(set1,set2,dest : pointer;size : longint); compilerproc;
  228. procedure fpc_largeset_comp_sets(set1,set2 : pointer;size : longint); compilerproc;
  229. procedure fpc_largeset_contains_sets(set1,set2 : pointer; size: longint); compilerproc;
  230. {$endif LARGESETS}
  231. procedure fpc_rangeerror; compilerproc;
  232. procedure fpc_overflow; compilerproc;
  233. //procedure fpc_iocheck(addr : longint); compilerproc;
  234. procedure fpc_iocheck; compilerproc;
  235. procedure fpc_InitializeUnits; compilerproc;
  236. // not generated by compiler, called directly in system unit
  237. // procedure fpc_FinalizeUnits; compilerproc;
  238. {
  239. Procedure fpc_do_exit; compilerproc;
  240. Procedure fpc_lib_exit; compilerproc;
  241. Procedure fpc_HandleErrorAddrFrame (Errno : longint;addr,frame : pointer); compilerproc;
  242. Procedure fpc_HandleError (Errno : longint); compilerproc;
  243. }
  244. procedure fpc_AbstractErrorIntern;compilerproc;
  245. procedure fpc_assert(Const Msg,FName:Shortstring;LineNo:Longint;ErrorAddr:Pointer); compilerproc;
  246. Procedure fpc_reset_typed(var f : TypedFile;Size : Longint); compilerproc;
  247. Procedure fpc_rewrite_typed(var f : TypedFile;Size : Longint); compilerproc;
  248. Procedure fpc_typed_write(TypeSize : Longint;var f : TypedFile;const Buf); compilerproc;
  249. Procedure fpc_typed_read(TypeSize : Longint;var f : TypedFile;var Buf); compilerproc;
  250. {$ifdef CPUPOWERPC}
  251. function fpc_int64_to_double(i: int64): double; compilerproc;
  252. function fpc_qword_to_double(q: qword): double; compilerproc;
  253. {$endif CPUPOWERPC}
  254. {$endif hascompilerproc}
  255. {
  256. $Log$
  257. Revision 1.46 2003-08-21 22:07:43 olle
  258. - removed parameter from fpc_iocheck
  259. Revision 1.45 2003/06/17 19:24:08 jonas
  260. * fixed conversion of fpc_*str_unique to compilerproc
  261. Revision 1.44 2003/06/17 16:38:53 jonas
  262. * fpc_{ansistr|widestr}_unique is now a function so it can be used as
  263. compilerproc
  264. Revision 1.43 2003/05/26 19:36:46 peter
  265. * fpc_shortstr_concat is now the same for all targets
  266. * fpc_shortstr_append_shortstr added for optimized code generation
  267. Revision 1.42 2003/05/16 22:40:11 florian
  268. * fixed generic shortstr_compare
  269. Revision 1.41 2003/05/13 19:18:08 peter
  270. * fpc_help_fail compilerproc
  271. * fpc_new_class, fpc_dispose_class not needed by latest compiler
  272. Revision 1.40 2003/05/11 21:39:14 peter
  273. * constructor helper added
  274. Revision 1.39 2003/04/25 21:15:20 peter
  275. * fpc_big_array changed to 1k only. using maxlongint will crash gdb
  276. Revision 1.38 2003/04/23 21:28:21 peter
  277. * fpc_round added, needed for int64 currency
  278. Revision 1.37 2003/04/02 14:07:30 peter
  279. * class helpers compilerprocs are not needed yet, changed
  280. ifndef i386 to ifdef dummy
  281. Revision 1.36 2003/03/17 14:30:11 peter
  282. * changed address parameter/return values to pointer instead
  283. of longint
  284. Revision 1.35 2003/01/11 00:17:29 florian
  285. * uncommented the variant<->dyn. array stuff
  286. Revision 1.34 2003/01/09 20:14:20 florian
  287. * fixed helper declarations
  288. Revision 1.33 2003/01/06 23:04:21 mazen
  289. * functions headers modified in generic.inc to make it possible compiling sparc
  290. RTL based on generic code
  291. Revision 1.32 2003/01/06 08:25:47 michael
  292. + PAtch from peter fixing daily build
  293. Revision 1.31 2003/01/05 21:32:35 mazen
  294. * fixing several bugs compiling the RTL
  295. Revision 1.30 2002/12/29 16:59:17 peter
  296. * implemented some more conversions
  297. Revision 1.29 2002/11/26 23:02:07 peter
  298. * fixed dynarray copy
  299. Revision 1.28 2002/10/17 12:43:00 florian
  300. + ansistring_append* implemented
  301. Revision 1.27 2002/10/10 19:24:28 florian
  302. + write(ln) support for variants added
  303. Revision 1.26 2002/10/10 16:08:50 florian
  304. + several widestring/pwidechar related helpers added
  305. Revision 1.25 2002/10/05 14:20:16 peter
  306. * fpc_pchar_length compilerproc and strlen alias
  307. Revision 1.24 2002/10/02 18:21:51 peter
  308. * Copy() changed to internal function calling compilerprocs
  309. * FPC_SHORTSTR_COPY renamed to FPC_SHORTSTR_ASSIGN because of the
  310. new copy functions
  311. Revision 1.23 2002/09/27 21:10:40 carl
  312. * fix 2GB limit problem
  313. Revision 1.22 2002/09/07 21:12:04 carl
  314. * cardinal -> longword
  315. - remove some unused routines
  316. Revision 1.21 2002/09/07 15:07:45 peter
  317. * old logs removed and tabs fixed
  318. Revision 1.20 2002/09/02 19:24:41 peter
  319. * array of char support for Str()
  320. Revision 1.19 2002/08/20 18:24:05 jonas
  321. * interface "as" helpers converted from procedures to functions
  322. Revision 1.18 2002/07/31 16:58:12 jonas
  323. * fixed conversion from int64/qword to double errors
  324. Revision 1.17 2002/07/28 20:43:47 florian
  325. * several fixes for linux/powerpc
  326. * several fixes to MT
  327. Revision 1.16 2002/04/25 20:14:56 peter
  328. * updated compilerprocs
  329. * incr ref count has now a value argument instead of var
  330. Revision 1.15 2002/04/24 16:15:35 peter
  331. * fpc_finalize_array renamed
  332. Revision 1.14 2002/04/21 18:56:59 peter
  333. * fpc_freemem and fpc_getmem compilerproc
  334. Revision 1.13 2002/01/21 20:16:08 peter
  335. * updated for dynarr:=nil
  336. }