systemh.inc 23 KB

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