systemh.inc 22 KB

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