systemh.inc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  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 OS independent declarations of the system unit
  6. See the File COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {****************************************************************************
  13. Needed switches
  14. ****************************************************************************}
  15. {$I-,Q-,H-,R-,V-}
  16. {$mode objfpc}
  17. { don't use FPU registervariables on the i386 }
  18. {$ifdef i386}
  19. {$maxfpuregisters 0}
  20. {$endif i386}
  21. { needed for insert,delete,readln }
  22. {$P+}
  23. { Stack check gives a note under linux }
  24. {$ifndef unix}
  25. {$S-}
  26. {$endif}
  27. {****************************************************************************
  28. Global Types and Constants
  29. ****************************************************************************}
  30. Type
  31. ShortInt = -128..127;
  32. SmallInt = -32768..32767;
  33. { can't use -2147483648 because of a bug in 1.0.2's val() procedure (JM) }
  34. Longint = +(-2147483647-1)..$7fffffff;
  35. Byte = 0..255;
  36. Word = 0..65535;
  37. DWord = Cardinal;
  38. LongWord = Cardinal;
  39. Integer = SmallInt;
  40. { at least declare Turbo Pascal real types }
  41. {$ifdef i386}
  42. StrLenInt = LongInt;
  43. {$define DEFAULT_EXTENDED}
  44. {$define SUPPORT_SINGLE}
  45. {$define SUPPORT_DOUBLE}
  46. {$define SUPPORT_EXTENDED}
  47. {$define SUPPORT_COMP}
  48. ValSInt = Longint;
  49. ValUInt = Cardinal;
  50. ValReal = Extended;
  51. {$endif}
  52. {$ifdef m68k}
  53. StrLenInt = Longint;
  54. {$define SUPPORT_ANSISTRING}
  55. ValSInt = Longint;
  56. ValUInt = Cardinal;
  57. ValReal = Real;
  58. { Comp type does not exist on fpu }
  59. Comp = int64;
  60. {$define SUPPORT_SINGLE}
  61. {$IFDEF LINUX}
  62. { Linux FPU emulator will be used }
  63. {$define SUPPORT_DOUBLE}
  64. {$ENDIF}
  65. {$IFOPT E-}
  66. { If not compiling with emulation }
  67. { then support double type. }
  68. {$define SUPPORT_DOUBLE}
  69. {$ENDIF}
  70. {$endif}
  71. { Zero - terminated strings }
  72. PChar = ^Char;
  73. PPChar = ^PChar;
  74. TAnsiChar = Char;
  75. AnsiChar = TAnsiChar;
  76. PAnsiChar = ^TAnsiChar;
  77. PPAnsiChar = ^PAnsiChar;
  78. UCS4Char = Cardinal;
  79. PUCS4Char = ^UCS4Char;
  80. Currency = Int64;
  81. HRESULT = Longint;
  82. TDateTime = Double;
  83. Error = Longint;
  84. PSingle = ^Single;
  85. PDouble = ^Double;
  86. PCurrency = ^Currency;
  87. {$ifdef SUPPORT_COMP}
  88. PComp = ^Comp;
  89. {$endif SUPPORT_COMP}
  90. {$ifdef SUPPORT_EXTENDED}
  91. PExtended = ^Extended;
  92. {$endif SUPPORT_EXTENDED}
  93. PSmallInt = ^Smallint;
  94. PInteger = ^Longint;
  95. PByte = ^Byte;
  96. PWord = ^word;
  97. PDWord = ^DWord;
  98. PLongWord = ^LongWord;
  99. PLongint = ^Longint;
  100. PCardinal = ^Cardinal;
  101. PQWord = ^QWord;
  102. PInt64 = ^Int64;
  103. PPointer = ^Pointer;
  104. PPPointer = ^PPointer;
  105. PBoolean = ^Boolean;
  106. PWordBool = ^WordBool;
  107. PLongBool = ^LongBool;
  108. PShortString = ^ShortString;
  109. PAnsiString = ^AnsiString;
  110. PDate = ^TDateTime;
  111. PError = ^Error;
  112. {$ifdef HASVARIANT}
  113. PVariant = ^Variant;
  114. {$endif HASVARIANT}
  115. {$ifdef HASWIDECHAR}
  116. PWideChar = ^WideChar;
  117. PPWideChar = ^PWideChar;
  118. { 1.0.x also has HASWIDECHAR defined, but doesn't support it
  119. fully, setting WChar to Word as fallback (PFV) }
  120. {$ifndef VER1_0}
  121. WChar = Widechar;
  122. {$else}
  123. WChar = Word;
  124. {$endif}
  125. {$else}
  126. WChar = Word;
  127. {$endif HASWIDECHAR}
  128. {$ifdef HASWIDESTRING}
  129. PWideString = ^WideString;
  130. {$endif HASWIDESTRING}
  131. TTextLineBreakStyle = (tlbsLF,tlbsCRLF,tlbsCR);
  132. { procedure type }
  133. TProcedure = Procedure;
  134. { Text file }
  135. TextFile = Text;
  136. const
  137. { Maximum value of the biggest signed and unsigned integer type available}
  138. MaxSIntValue = High(ValSInt);
  139. MaxUIntValue = High(ValUInt);
  140. { max. values for longint and int}
  141. maxLongint = $7fffffff;
  142. maxSmallint = 32767;
  143. const
  144. maxint = maxsmallint;
  145. { Compatibility With TP }
  146. const
  147. { code to use comps in int64mul and div code is commented out! (JM) }
  148. FPUInt64 : boolean = false; { set this to false if you don't want that }
  149. { the fpu does int64*int64 and }
  150. { int64 div int64, if the * is overflow }
  151. { checked, it is done in software }
  152. {$ifdef i386}
  153. Test8086 : byte = 2; { Always i386 or newer }
  154. Test8087 : byte = 3; { Always 387 or newer. Emulated if needed. }
  155. {$endif i386}
  156. {$ifdef m68k}
  157. Test68000 : byte = 0; { Must be determined at startup for both }
  158. Test68881 : byte = 0;
  159. {$endif}
  160. { max level in dumping on error }
  161. Max_Frame_Dump : Word = 8;
  162. { Exit Procedure handling consts and types }
  163. ExitProc : pointer = nil;
  164. Erroraddr: pointer = nil;
  165. Errorcode: Word = 0;
  166. { file input modes }
  167. fmClosed = $D7B0;
  168. fmInput = $D7B1;
  169. fmOutput = $D7B2;
  170. fmInOut = $D7B3;
  171. fmAppend = $D7B4;
  172. Filemode : byte = 2;
  173. CmdLine : PChar = nil;
  174. var
  175. { Standard In- and Output }
  176. Output,
  177. Input,
  178. StdOut,
  179. StdErr : Text;
  180. ExitCode : Word;
  181. StackBottom,
  182. LowestStack,
  183. RandSeed : Cardinal;
  184. { Delphi compatible }
  185. IsLibrary,IsMultiThreaded,IsConsole : boolean;
  186. {$ifdef MT}
  187. ThreadVar
  188. {$else MT}
  189. Var
  190. {$endif MT}
  191. InOutRes : Word;
  192. {****************************************************************************
  193. Processor specific routines
  194. ****************************************************************************}
  195. Procedure Move(const source;var dest;count:Longint);
  196. Procedure FillChar(Var x;count:Longint;Value:Boolean);
  197. Procedure FillChar(Var x;count:Longint;Value:Char);
  198. Procedure FillChar(Var x;count:Longint;Value:Byte);
  199. procedure FillByte(var x;count:longint;value:byte);
  200. Procedure FillWord(Var x;count:Longint;Value:Word);
  201. procedure FillDWord(var x;count:longint;value:DWord);
  202. function IndexChar(const buf;len:longint;b:char):longint;
  203. function IndexByte(const buf;len:longint;b:byte):longint;
  204. function Indexword(const buf;len:longint;b:word):longint;
  205. function IndexDWord(const buf;len:longint;b:DWord):longint;
  206. function CompareChar(const buf1,buf2;len:longint):longint;
  207. function CompareByte(const buf1,buf2;len:longint):longint;
  208. function CompareWord(const buf1,buf2;len:longint):longint;
  209. function CompareDWord(const buf1,buf2;len:longint):longint;
  210. procedure MoveChar0(const buf1;var buf2;len:longint);
  211. function IndexChar0(const buf;len:longint;b:char):longint;
  212. function CompareChar0(const buf1,buf2;len:longint):longint;
  213. {****************************************************************************
  214. Math Routines
  215. ****************************************************************************}
  216. Function lo(w:Word):byte;
  217. Function lo(l:Longint):Word;
  218. Function lo(l:DWord):Word;
  219. Function lo(i:Integer):byte;
  220. Function lo(B: Byte):Byte;
  221. Function hi(w:Word):byte;
  222. Function hi(i:Integer):byte;
  223. Function hi(l:Longint):Word;
  224. Function hi(b : Byte) : Byte;
  225. Function hi(l: DWord): Word;
  226. Function Swap (X:Word):Word;
  227. Function Swap (X:Integer):Integer;
  228. Function Swap (X:Cardinal):Cardinal;
  229. Function Swap (X:LongInt):LongInt;
  230. Function lo(q : QWord) : DWord;
  231. Function lo(i : Int64) : DWord;
  232. Function hi(q : QWord) : DWord;
  233. Function hi(i : Int64) : DWord;
  234. Function Swap (X:QWord):QWord;
  235. Function Swap (X:Int64):Int64;
  236. Function Random(l:cardinal):cardinal;
  237. Function Random(l:longint):longint;
  238. Function Random: extended;
  239. Procedure Randomize;
  240. Function abs(l:Longint):Longint;
  241. Function sqr(l:Longint):Longint;
  242. Function odd(l:Longint):Boolean;
  243. Function odd(l:Cardinal):Boolean;
  244. Function odd(l:Int64):Boolean;
  245. Function odd(l:QWord):Boolean;
  246. { float math routines }
  247. {$I mathh.inc}
  248. {****************************************************************************
  249. Addr/Pointer Handling
  250. ****************************************************************************}
  251. Function ptr(sel,off:Longint):farpointer;
  252. Function Cseg:Word;
  253. Function Dseg:Word;
  254. Function Sseg:Word;
  255. {****************************************************************************
  256. PChar and String Handling
  257. ****************************************************************************}
  258. function strpas(p:pchar):shortstring;
  259. function strlen(p:pchar):longint;
  260. { Shortstring functions }
  261. {$ifndef INTERNSETLENGTH}
  262. Procedure SetLength (Var S:ShortString;len:StrLenInt);
  263. {$endif INTERNSETLENGTH}
  264. Function Copy(const s:shortstring;index:StrLenInt;count:StrLenInt):shortstring;
  265. Procedure Delete(Var s:shortstring;index:StrLenInt;count:StrLenInt);
  266. Procedure Insert(const source:shortstring;Var s:shortstring;index:StrLenInt);
  267. Procedure Insert(source:Char;Var s:shortstring;index:StrLenInt);
  268. Function Pos(const substr:shortstring;const s:shortstring):StrLenInt;
  269. Function Pos(C:Char;const s:shortstring):StrLenInt;
  270. Procedure SetString (Var S : Shortstring; Buf : PChar; Len : Longint);
  271. Procedure SetString (Var S : AnsiString; Buf : PChar; Len : Longint);
  272. {$ifndef INTERNLENGTH}
  273. Function Length(s:string):byte;
  274. {$endif INTERNLENGTH}
  275. Function upCase(const s:shortstring):shortstring;
  276. Function lowerCase(const s:shortstring):shortstring;
  277. Function Space(b:byte):shortstring;
  278. Function hexStr(Val:Longint;cnt:byte):shortstring;
  279. Function binStr(Val:Longint;cnt:byte):shortstring;
  280. Function hexStr(Val:int64;cnt:byte):shortstring;
  281. Function binStr(Val:int64;cnt:byte):shortstring;
  282. { Char functions }
  283. Function Chr(b:byte):Char;
  284. Function upCase(c:Char):Char;
  285. Function lowerCase(c:Char):Char;
  286. function copy(c:char;index : StrLenInt;count : StrLenInt): shortstring;
  287. function pos(const substr : shortstring;c:char): StrLenInt;
  288. {$ifndef INTERNLENGTH}
  289. function length(c:char):byte;
  290. {$endif INTERNLENGTH}
  291. {****************************************************************************
  292. AnsiString Handling
  293. ****************************************************************************}
  294. {$ifndef INTERNSETLENGTH}
  295. Procedure SetLength (Var S : AnsiString; l : Longint);
  296. {$endif INTERNSETLENGTH}
  297. Procedure UniqueString (Var S : AnsiString);
  298. {$ifndef INTERNLENGTH}
  299. Function Length (Const S : AnsiString) : Longint;
  300. {$endif INTERNLENGTH}
  301. Function Copy (Const S : AnsiString; Index,Size : Longint) : AnsiString;
  302. Function Pos (Const Substr : AnsiString; Const Source : AnsiString) : Longint;
  303. Function Pos (c : Char; Const s : AnsiString) : Longint;
  304. Procedure Insert (Const Source : AnsiString; Var S : AnsiString; Index : Longint);
  305. Procedure Delete (Var S : AnsiString; Index,Size: Longint);
  306. Function StringOfChar(c : char;l : longint) : AnsiString;
  307. function upcase(const s : ansistring) : ansistring;
  308. function lowercase(const s : ansistring) : ansistring;
  309. {****************************************************************************
  310. WideString Handling
  311. ****************************************************************************}
  312. {$ifdef HASWIDESTRING}
  313. {$ifndef INTERNSETLENGTH}
  314. Procedure SetLength (Var S : WideString; l : Longint);
  315. {$endif INTERNSETLENGTH}
  316. Procedure UniqueString (Var S : WideString);
  317. {$ifndef INTERNLENGTH}
  318. Function Length (Const S : WideString) : Longint;
  319. {$endif INTERNLENGTH}
  320. Function Copy (Const S : WideString; Index,Size : Longint) : WideString;
  321. Function Pos (Const Substr : WideString; Const Source : WideString) : Longint;
  322. Function Pos (c : Char; Const s : WideString) : Longint;
  323. Function Pos (c : WideChar; Const s : WideString) : Longint;
  324. Procedure Insert (Const Source : WideString; Var S : WideString; Index : Longint);
  325. Procedure Delete (Var S : WideString; Index,Size: Longint);
  326. {$endif HASWIDESTRING}
  327. {****************************************************************************
  328. Untyped File Management
  329. ****************************************************************************}
  330. Procedure Assign(Var f:File;const Name:string);
  331. Procedure Assign(Var f:File;p:pchar);
  332. Procedure Assign(Var f:File;c:char);
  333. Procedure Rewrite(Var f:File;l:Longint);
  334. Procedure Rewrite(Var f:File);
  335. Procedure Reset(Var f:File;l:Longint);
  336. Procedure Reset(Var f:File);
  337. Procedure Close(Var f:File);
  338. Procedure BlockWrite(Var f:File;Const Buf;Count:Longint;Var Result:Longint);
  339. Procedure BlockWrite(Var f:File;Const Buf;Count:Cardinal;var Result:Cardinal);
  340. Procedure BlockWrite(Var f:File;Const Buf;Count:Word;Var Result:Word);
  341. Procedure BlockWrite(Var f:File;Const Buf;Count:Word;Var Result:Integer);
  342. Procedure BlockWrite(Var f:File;Const Buf;Count:Longint);
  343. Procedure BlockRead(Var f:File;Var Buf;count:Longint;Var Result:Longint);
  344. Procedure BlockRead(Var f:File;Var Buf;count:Cardinal;Var Result:Cardinal);
  345. Procedure BlockRead(Var f:File;Var Buf;count:Word;Var Result:Word);
  346. Procedure BlockRead(Var f:File;Var Buf;count:Word;Var Result:Integer);
  347. Procedure BlockRead(Var f:File;Var Buf;count:Longint);
  348. Function FilePos(Var f:File):Longint;
  349. Function FileSize(Var f:File):Longint;
  350. Procedure Seek(Var f:File;Pos:Longint);
  351. Function EOF(Var f:File):Boolean;
  352. Procedure Erase(Var f:File);
  353. Procedure Rename(Var f:File;const s:string);
  354. Procedure Rename(Var f:File;p:pchar);
  355. Procedure Rename(Var f:File;c:char);
  356. Procedure Truncate (Var F:File);
  357. {****************************************************************************
  358. Typed File Management
  359. ****************************************************************************}
  360. Procedure Assign(Var f:TypedFile;const Name:string);
  361. Procedure Assign(Var f:TypedFile;p:pchar);
  362. Procedure Assign(Var f:TypedFile;c:char);
  363. Procedure Rewrite(Var f:TypedFile);
  364. Procedure Reset(Var f:TypedFile);
  365. {****************************************************************************
  366. Text File Management
  367. ****************************************************************************}
  368. Procedure Assign(Var t:Text;const s:string);
  369. Procedure Assign(Var t:Text;p:pchar);
  370. Procedure Assign(Var t:Text;c:char);
  371. Procedure Close(Var t:Text);
  372. Procedure Rewrite(Var t:Text);
  373. Procedure Reset(Var t:Text);
  374. Procedure Append(Var t:Text);
  375. Procedure Flush(Var t:Text);
  376. Procedure Erase(Var t:Text);
  377. Procedure Rename(Var t:Text;const s:string);
  378. Procedure Rename(Var t:Text;p:pchar);
  379. Procedure Rename(Var t:Text;c:char);
  380. Function EOF(Var t:Text):Boolean;
  381. Function EOF:Boolean;
  382. Function EOLn(Var t:Text):Boolean;
  383. Function EOLn:Boolean;
  384. Function SeekEOLn (Var t:Text):Boolean;
  385. Function SeekEOF (Var t:Text):Boolean;
  386. Function SeekEOLn:Boolean;
  387. Function SeekEOF:Boolean;
  388. Procedure SetTextBuf(Var f:Text; Var Buf);
  389. Procedure SetTextBuf(Var f:Text; Var Buf; Size:Longint);
  390. {****************************************************************************
  391. Directory Management
  392. ****************************************************************************}
  393. Procedure chdir(const s:string);
  394. Procedure mkdir(const s:string);
  395. Procedure rmdir(const s:string);
  396. Procedure getdir(drivenr:byte;Var dir:shortstring);
  397. Procedure getdir(drivenr:byte;Var dir:ansistring);
  398. {*****************************************************************************
  399. Miscelleaous
  400. *****************************************************************************}
  401. { os independent calls to allow backtraces }
  402. function get_frame:longint;
  403. function get_caller_addr(framebp:longint):longint;
  404. function get_caller_frame(framebp:longint):longint;
  405. Function IOResult:Word;
  406. Function Sptr:Longint;
  407. {*****************************************************************************
  408. Init / Exit / ExitProc
  409. *****************************************************************************}
  410. Function Paramcount:Longint;
  411. Function ParamStr(l:Longint):string;
  412. Procedure Dump_Stack(var f : text;bp:Longint);
  413. Procedure RunError(w:Word);
  414. Procedure RunError;
  415. Procedure halt(errnum:byte);
  416. Procedure AddExitProc(Proc:TProcedure);
  417. Procedure halt;
  418. {*****************************************************************************
  419. Abstract/Assert/Error Handling
  420. *****************************************************************************}
  421. procedure AbstractError;
  422. Function SysBackTraceStr(Addr: Longint): ShortString;
  423. Procedure SysAssert(Const Msg,FName:ShortString;LineNo,ErrorAddr:Longint);
  424. { Error handlers }
  425. Type
  426. TBackTraceStrFunc = Function (Addr: Longint): ShortString;
  427. TErrorProc = Procedure (ErrNo : Longint; Address,Frame : Pointer);
  428. TAbstractErrorProc = Procedure;
  429. TAssertErrorProc = Procedure(const msg,fname:ShortString;lineno,erroraddr:longint);
  430. const
  431. BackTraceStrFunc : TBackTraceStrFunc = @SysBackTraceStr;
  432. ErrorProc : TErrorProc = nil;
  433. AbstractErrorProc : TAbstractErrorProc = nil;
  434. AssertErrorProc : TAssertErrorProc = @SysAssert;
  435. {*****************************************************************************
  436. SetJmp/LongJmp
  437. *****************************************************************************}
  438. {$i setjumph.inc}
  439. {*****************************************************************************
  440. Object Pascal support
  441. *****************************************************************************}
  442. {$i objpash.inc}
  443. {*****************************************************************************
  444. Internal helper routines support
  445. *****************************************************************************}
  446. {$i dynarrh.inc}
  447. {$i compproc.inc}
  448. {
  449. $Log$
  450. Revision 1.34 2001-08-01 18:01:20 peter
  451. * WChar fix to compile also with 1.0.x
  452. Revision 1.33 2001/08/01 15:00:11 jonas
  453. + "compproc" helpers
  454. * renamed several helpers so that their name is the same as their
  455. "public alias", which should facilitate the conversion of processor
  456. specific code in the code generator to processor independent code
  457. * some small fixes to the val_ansistring and val_widestring helpers
  458. (always immediately exit if the source string is longer than 255
  459. chars)
  460. * fixed fpc_dynarray_high and fpc_dynarray_length if the dynarray is
  461. still nil (used to crash, now return resp -1 and 0)
  462. Revision 1.32 2001/07/31 08:57:22 marco
  463. * Either I did something wrong, or Peter's merge killed wchar decl. Fixed.
  464. Revision 1.31 2001/07/30 21:38:55 peter
  465. * m68k updates merged
  466. Revision 1.29 2001/07/29 13:49:15 peter
  467. * m68k updates merged
  468. Revision 1.28 2001/07/15 11:57:16 peter
  469. * merged m68k updates
  470. Revision 1.27 2001/07/10 18:04:37 peter
  471. * merged textfile, readlink and concat ansistring fixes
  472. Revision 1.26 2001/07/09 21:15:41 peter
  473. * Length made internal
  474. * Add array support for Length
  475. Revision 1.25 2001/07/08 21:00:18 peter
  476. * various widestring updates, it works now mostly without charset
  477. mapping supported
  478. Revision 1.24 2001/06/04 11:43:51 peter
  479. * Formal const to var fixes
  480. * Hexstr(int64) added
  481. Revision 1.23 2001/06/03 20:17:06 peter
  482. * ucs4char added
  483. Revision 1.22 2001/05/16 17:44:25 jonas
  484. + odd() for cardinal, int64 and qword (merged)
  485. Revision 1.21 2001/05/09 19:57:07 peter
  486. *** empty log message ***
  487. Revision 1.20 2001/04/23 18:25:45 peter
  488. * m68k updates
  489. Revision 1.19 2001/04/13 18:06:07 peter
  490. * upcase, lowercase for ansistring
  491. Revision 1.18 2001/03/22 23:26:05 florian
  492. * some new types added like PBoolean
  493. Revision 1.17 2001/03/21 23:29:40 florian
  494. + sLineBreak and misc. stuff for Kylix compatiblity
  495. Revision 1.16 2001/01/24 21:47:18 florian
  496. + more MT stuff added
  497. Revision 1.15 2000/12/16 15:56:19 jonas
  498. - removed all ifdef cardinalmulfix code
  499. Revision 1.14 2000/12/08 14:04:43 jonas
  500. + added pos(char,ansistring), because there is also a pos(char,shortstring)
  501. and without the ansistring version, the shortstring version is always
  502. called when calling pos(char,pchar), even when using $h+ (because the
  503. first parameter matches exactly) (merged)
  504. Revision 1.13 2000/12/07 17:19:47 jonas
  505. * new constant handling: from now on, hex constants >$7fffffff are
  506. parsed as unsigned constants (otherwise, $80000000 got sign extended
  507. and became $ffffffff80000000), all constants in the longint range
  508. become longints, all constants >$7fffffff and <=cardinal($ffffffff)
  509. are cardinals and the rest are int64's.
  510. * added lots of longint typecast to prevent range check errors in the
  511. compiler and rtl
  512. * type casts of symbolic ordinal constants are now preserved
  513. * fixed bug where the original resulttype wasn't restored correctly
  514. after doing a 64bit rangecheck
  515. Revision 1.12 2000/11/13 13:40:04 marco
  516. * Renamefest
  517. Revision 1.11 2000/11/11 16:12:01 peter
  518. * ptr returns farpointer
  519. Revision 1.10 2000/11/06 21:35:59 peter
  520. * removed some warnings
  521. Revision 1.9 2000/11/06 20:34:24 peter
  522. * changed ver1_0 defines to temporary defs
  523. Revision 1.8 2000/10/23 16:15:40 jonas
  524. * renamed strlenint to longint since 1.0 doesn't know that type
  525. Revision 1.7 2000/10/23 14:00:59 florian
  526. * setlength export declaration for 1.0.2 fixed
  527. Revision 1.6 2000/10/21 18:20:17 florian
  528. * a lot of small changes:
  529. - setlength is internal
  530. - win32 graph unit extended
  531. ....
  532. Revision 1.5 2000/08/13 17:55:15 michael
  533. + Added some delphi compatibility types
  534. Revision 1.4 2000/08/08 22:11:45 sg
  535. * Added declarations for WideString utility functions
  536. Revision 1.3 2000/07/14 10:33:10 michael
  537. + Conditionals fixed
  538. Revision 1.2 2000/07/13 11:33:45 michael
  539. + removed logs
  540. }