systemh.inc 24 KB

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