2
0

system.inc 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Run time library.
  4. Copyright (c) 1993,97 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. For details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {****************************************************************************
  12. Local types
  13. ****************************************************************************}
  14. {
  15. TextRec and FileRec are put in a separate file to make it available to other
  16. units without putting it explicitly in systemh.
  17. This way we keep TP compatibility, and the TextRec definition is available
  18. for everyone who needs it.
  19. }
  20. {$i filerec.inc}
  21. {$i textrec.inc}
  22. Procedure HandleError (Errno : Longint); forward;
  23. Procedure HandleErrorFrame (Errno : longint;frame : longint); forward;
  24. type
  25. FileFunc = Procedure(var t : TextRec);
  26. const
  27. { Random / Randomize constants }
  28. OldRandSeed : Cardinal = 0;
  29. InitialSeed : Boolean = TRUE;
  30. Seed2 : Cardinal = 0;
  31. Seed3 : Cardinal = 0;
  32. { For Error Handling.}
  33. ErrorBase : Longint = 0;
  34. { Used by the ansistrings and maybe also other things in the future }
  35. var
  36. emptychar : char;public name 'FPC_EMPTYCHAR';
  37. {****************************************************************************
  38. Routines which have compiler magic
  39. ****************************************************************************}
  40. {$I innr.inc}
  41. Function lo(i : Integer) : byte; [INTERNPROC: In_lo_Word];
  42. Function lo(w : Word) : byte; [INTERNPROC: In_lo_Word];
  43. Function lo(l : Longint) : Word; [INTERNPROC: In_lo_long];
  44. Function lo(l : DWord) : Word; [INTERNPROC: In_lo_long];
  45. Function lo(q : QWord) : DWord; [INTERNPROC: In_lo_qword];
  46. Function lo(i : Int64) : DWord; [INTERNPROC: In_lo_qword];
  47. Function hi(i : Integer) : byte; [INTERNPROC: In_hi_Word];
  48. Function hi(w : Word) : byte; [INTERNPROC: In_hi_Word];
  49. Function hi(l : Longint) : Word; [INTERNPROC: In_hi_long];
  50. Function hi(l : DWord) : Word; [INTERNPROC: In_hi_long];
  51. Function hi(q : QWord) : DWord; [INTERNPROC: In_hi_qword];
  52. Function hi(i : Int64) : DWord; [INTERNPROC: In_hi_qword];
  53. Function chr(b : byte) : Char; [INTERNPROC: In_chr_byte];
  54. Function Length(s : string) : byte; [INTERNPROC: In_Length_string];
  55. Function Length(c : char) : byte; [INTERNPROC: In_Length_string];
  56. Procedure Reset(var f : TypedFile); [INTERNPROC: In_Reset_TypedFile];
  57. Procedure Rewrite(var f : TypedFile); [INTERNPROC: In_Rewrite_TypedFile];
  58. {****************************************************************************
  59. Include processor specific routines
  60. ****************************************************************************}
  61. {$IFDEF I386}
  62. {$IFDEF M68K}
  63. {$Error Can't determine processor type !}
  64. {$ENDIF}
  65. {$I i386.inc} { Case dependent, don't change }
  66. {$ELSE}
  67. {$IFDEF M68K}
  68. {$I m68k.inc} { Case dependent, don't change }
  69. {$ELSE}
  70. {$Error Can't determine processor type !}
  71. {$ENDIF}
  72. {$ENDIF}
  73. {****************************************************************************
  74. Set Handling
  75. ****************************************************************************}
  76. { Include set support which is processor specific}
  77. {$I set.inc}
  78. {****************************************************************************
  79. Subroutines for String handling
  80. ****************************************************************************}
  81. { Needs to be before RTTI handling }
  82. {$i sstrings.inc}
  83. Type
  84. PLongint = ^Longint;
  85. PByte = ^Byte;
  86. {$i astrings.inc}
  87. {****************************************************************************
  88. Run-Time Type Information (RTTI)
  89. ****************************************************************************}
  90. {$i rtti.inc}
  91. {****************************************************************************
  92. Math Routines
  93. ****************************************************************************}
  94. {$ifndef RTLLITE}
  95. function Hi(b : byte): byte;
  96. begin
  97. Hi := b shr 4
  98. end;
  99. function Lo(b : byte): byte;
  100. begin
  101. Lo := b and $0f
  102. end;
  103. Function swap (X : Word) : Word;[internconst:in_const_swap_word];
  104. Begin
  105. swap:=(X and $ff) shl 8 + (X shr 8)
  106. End;
  107. Function Swap (X : Integer) : Integer;[internconst:in_const_swap_word];
  108. Begin
  109. swap:=(X and $ff) shl 8 + (X shr 8)
  110. End;
  111. Function swap (X : Longint) : Longint;[internconst:in_const_swap_long];
  112. Begin
  113. Swap:=(X and $ffff) shl 16 + (X shr 16)
  114. End;
  115. Function Swap (X : Cardinal) : Cardinal;[internconst:in_const_swap_long];
  116. Begin
  117. Swap:=(X and $ffff) shl 16 + (X shr 16)
  118. End;
  119. Function Swap (X : QWord) : QWord;
  120. Begin
  121. Swap:=(X and $ffffffff) shl 32 + (X shr 32);
  122. End;
  123. Function swap (X : Int64) : Int64;
  124. Begin
  125. Swap:=(X and $ffffffff) shl 32 + (X shr 32);
  126. End;
  127. {$endif RTLLITE}
  128. {****************************************************************************
  129. Random function routines
  130. This implements a very long cycle random number generator by combining
  131. three independant generators. The technique was described in the March
  132. 1987 issue of Byte.
  133. Taken and modified with permission from the PCQ Pascal rtl code.
  134. ****************************************************************************}
  135. {$R-}
  136. {$Q-}
  137. Procedure UseSeed(seed : Longint);Forward;
  138. Function Random : Real;
  139. var
  140. ReturnValue : Real;
  141. begin
  142. if (InitialSeed) OR ((RandSeed <> OldRandSeed) AND (NOT InitialSeed)) then
  143. Begin
  144. { This is a pretty complicated affair }
  145. { Initially we must call UseSeed when RandSeed is initalized }
  146. { We must also call UseSeed each time RandSeed is reinitialized }
  147. { DO NOT CHANGE THE ORDER OF DECLARATIONS IN THIS BLOCK }
  148. { UNLESS YOU WANT RANDON TO CRASH OF COURSE (CEC) }
  149. InitialSeed:=FALSE;
  150. OldRandSeed:=RandSeed;
  151. UseSeed(RandSeed);
  152. end;
  153. Inc(RandSeed);
  154. RandSeed := (RandSeed * 706) mod 500009;
  155. OldRandSeed:=RandSeed;
  156. INC(Seed2);
  157. Seed2 := (Seed2 * 774) MOD 600011;
  158. INC(Seed3);
  159. Seed3 := (Seed3 * 871) MOD 765241;
  160. ReturnValue := RandSeed/500009.0 +
  161. Seed2/600011.0 +
  162. Seed3/765241.0;
  163. Random := frac(ReturnValue);
  164. end;
  165. Function Random(l : Longint) : Longint;
  166. begin
  167. if (InitialSeed) OR ((RandSeed <> OldRandSeed) AND (NOT InitialSeed)) then
  168. Begin
  169. { This is a pretty complicated affair }
  170. { Initially we must call UseSeed when RandSeed is initalized }
  171. { We must also call UseSeed each time RandSeed is reinitialized }
  172. { DO NOT CHANGE THE ORDER OF DECLARATIONS IN THIS BLOCK }
  173. { UNLESS YOU WANT RANDON TO CRASH OF COURSE (CEC) }
  174. InitialSeed:=FALSE;
  175. OldRandSeed:=RandSeed;
  176. UseSeed(Randseed);
  177. end;
  178. Inc(RandSeed);
  179. RandSeed := (RandSeed * 998) mod 1000003;
  180. OldRandSeed:=RandSeed;
  181. if l=0 then
  182. Random:=0
  183. else
  184. Random := RandSeed mod l;
  185. end;
  186. Procedure UseSeed(seed : Longint);
  187. begin
  188. randseed := seed mod 1000003;
  189. Seed2 := (Random(65000) * Random(65000)) mod 600011;
  190. Seed3 := (Random(65000) * Random(65000)) mod 765241;
  191. end;
  192. { Include processor specific routines }
  193. {$I math.inc}
  194. {$ifdef INT64}
  195. {$I int64.inc}
  196. {$endif INT64}
  197. {****************************************************************************
  198. Memory Management
  199. ****************************************************************************}
  200. {$ifndef RTLLITE}
  201. Function Ptr(sel,off : Longint) : pointer;[internconst:in_const_ptr];
  202. Begin
  203. sel:=0;
  204. ptr:=pointer(off);
  205. End;
  206. {$ifndef INTERNALADDR}
  207. Function Addr(var x):pointer;
  208. begin
  209. Addr:=@x;
  210. end;
  211. {$endif}
  212. Function CSeg : Word;
  213. Begin
  214. Cseg:=0;
  215. End;
  216. Function DSeg : Word;
  217. Begin
  218. Dseg:=0;
  219. End;
  220. Function SSeg : Word;
  221. Begin
  222. Sseg:=0;
  223. End;
  224. {$endif RTLLITE}
  225. {*****************************************************************************
  226. Directory support.
  227. *****************************************************************************}
  228. Procedure getdir(drivenr:byte;Var dir:ansistring);
  229. { this is needed to also allow ansistrings, the shortstring version is
  230. OS dependent }
  231. var
  232. s : shortstring;
  233. begin
  234. getdir(drivenr,s);
  235. dir:=s;
  236. end;
  237. {*****************************************************************************
  238. Miscellaneous
  239. *****************************************************************************}
  240. procedure int_overflow;[public,alias:'FPC_OVERFLOW'];
  241. begin
  242. HandleErrorFrame(215,get_frame);
  243. end;
  244. Function IOResult:Word;
  245. Begin
  246. IOResult:=InOutRes;
  247. InOutRes:=0;
  248. End;
  249. procedure fillchar(var x;count : longint;value : boolean);
  250. begin
  251. fillchar(x,count,byte(value));
  252. end;
  253. procedure fillchar(var x;count : longint;value : char);
  254. begin
  255. fillchar(x,count,byte(value));
  256. end;
  257. {*****************************************************************************
  258. Init / Exit / ExitProc
  259. *****************************************************************************}
  260. {$ifdef HASFINALIZE}
  261. const
  262. maxunits=1024; { See also files.pas of the compiler source }
  263. type
  264. TInitFinalRec=record
  265. InitProc,
  266. FinalProc : TProcedure;
  267. end;
  268. TInitFinalTable=record
  269. TableCount,
  270. InitCount : longint;
  271. Procs : array[1..maxunits] of TInitFinalRec;
  272. end;
  273. var
  274. InitFinalTable : TInitFinalTable;external name 'INITFINAL';
  275. procedure InitializeUnits;[public,alias:'FPC_INITIALIZEUNITS'];
  276. var
  277. i : longint;
  278. begin
  279. with InitFinalTable do
  280. begin
  281. for i:=1to TableCount do
  282. begin
  283. if assigned(Procs[i].InitProc) then
  284. Procs[i].InitProc();
  285. InitCount:=i;
  286. end;
  287. end;
  288. end;
  289. procedure FinalizeUnits;[public,alias:'FPC_FINALIZEUNITS'];
  290. begin
  291. with InitFinalTable do
  292. begin
  293. while (InitCount>0) do
  294. begin
  295. if assigned(Procs[InitCount].FinalProc) then
  296. Procs[InitCount].FinalProc();
  297. dec(InitCount);
  298. end;
  299. end;
  300. end;
  301. {$endif}
  302. Procedure HandleErrorFrame (Errno : longint;frame : longint);
  303. {
  304. Procedure to handle internal errors, i.e. not user-invoked errors
  305. Internal function should ALWAYS call HandleError instead of RunError.
  306. Can be used for exception handlers to specify the frame
  307. }
  308. var
  309. addr : longint;
  310. begin
  311. addr:=get_caller_addr(frame);
  312. If ErrorProc<>Nil then
  313. TErrorProc (ErrorProc)(Errno,pointer(addr));
  314. errorcode:=Errno;
  315. exitcode:=Errno;
  316. erroraddr:=pointer(addr);
  317. errorbase:=get_caller_frame(frame);
  318. halt(errorcode);
  319. end;
  320. Procedure HandleError (Errno : longint);[public,alias : 'FPC_HANDLEERROR'];
  321. {
  322. Procedure to handle internal errors, i.e. not user-invoked errors
  323. Internal function should ALWAYS call HandleError instead of RunError.
  324. }
  325. begin
  326. HandleErrorFrame(Errno,get_frame);
  327. end;
  328. procedure runerror(w : word);[alias: 'FPC_RUNERROR'];
  329. begin
  330. errorcode:=w;
  331. exitcode:=w;
  332. erroraddr:=pointer(get_caller_addr(get_frame));
  333. errorbase:=get_caller_frame(get_frame);
  334. halt(errorcode);
  335. end;
  336. Procedure RunError;
  337. Begin
  338. RunError (0);
  339. End;
  340. Procedure Halt;
  341. Begin
  342. Halt(0);
  343. End;
  344. Procedure dump_stack(var f : text;bp : Longint);
  345. var
  346. i, prevbp : Longint;
  347. Begin
  348. prevbp:=bp-1;
  349. i:=0;
  350. while bp > prevbp Do
  351. Begin
  352. Writeln(stderr,' 0x',HexStr(get_caller_addr(bp),8));
  353. Inc(i);
  354. If i>max_frame_dump Then
  355. exit;
  356. prevbp:=bp;
  357. bp:=get_caller_frame(bp);
  358. End;
  359. End;
  360. Procedure system_exit;forward;
  361. Procedure do_exit;[Public,Alias:'FPC_DO_EXIT'];
  362. var
  363. current_exit : Procedure;
  364. Begin
  365. while exitProc<>nil Do
  366. Begin
  367. InOutRes:=0;
  368. current_exit:=tProcedure(exitProc);
  369. exitProc:=nil;
  370. current_exit();
  371. End;
  372. {$ifdef HASFINALIZE}
  373. { Finalize units }
  374. FinalizeUnits;
  375. {$endif}
  376. { Show runtime error }
  377. If erroraddr<>nil Then
  378. Begin
  379. Writeln(stdout,'Run time error ',Errorcode,' at 0x',hexstr(Longint(Erroraddr),8));
  380. dump_stack(stdout,ErrorBase);
  381. End;
  382. { call system dependent exit code }
  383. System_exit;
  384. End;
  385. Type
  386. PExitProcInfo = ^TExitProcInfo;
  387. TExitProcInfo = Record
  388. Next : PExitProcInfo;
  389. SaveExit : Pointer;
  390. Proc : TProcedure;
  391. End;
  392. const
  393. ExitProcList: PExitProcInfo = nil;
  394. Procedure DoExitProc;
  395. var
  396. P : PExitProcInfo;
  397. Proc : TProcedure;
  398. Begin
  399. P:=ExitProcList;
  400. ExitProcList:=P^.Next;
  401. ExitProc:=P^.SaveExit;
  402. Proc:=P^.Proc;
  403. DisPose(P);
  404. Proc();
  405. End;
  406. Procedure AddExitProc(Proc: TProcedure);
  407. var
  408. P : PExitProcInfo;
  409. Begin
  410. New(P);
  411. P^.Next:=ExitProcList;
  412. P^.SaveExit:=ExitProc;
  413. P^.Proc:=Proc;
  414. ExitProcList:=P;
  415. ExitProc:=@DoExitProc;
  416. End;
  417. {*****************************************************************************
  418. Abstract/Assert support.
  419. *****************************************************************************}
  420. procedure AbstractError;[public,alias : 'FPC_ABSTRACTERROR'];
  421. Type
  422. TAbstractErrorProc=Procedure;
  423. begin
  424. If AbstractErrorProc<>nil then
  425. TAbstractErrorProc(AbstractErrorProc);
  426. HandleError(211);
  427. end;
  428. Procedure int_assert(Const Msg,FName:string;LineNo,ErrorAddr:Longint); [Public,Alias : 'FPC_ASSERT'];
  429. type
  430. TAssertErrorProc=procedure(const msg,fname:string;lineno,erroraddr:longint);
  431. begin
  432. if AssertErrorProc<>nil then
  433. TAssertErrorProc(AssertErrorProc)(Msg,FName,LineNo,ErrorAddr)
  434. else
  435. HandleError(227);
  436. end;
  437. Procedure SysAssert(Const Msg,FName:string;LineNo,ErrorAddr:Longint);
  438. begin
  439. If msg='' then
  440. write(stderr,'Assertion failed')
  441. else
  442. write(stderr,msg);
  443. writeln(stderr,' (',FName,', line ',LineNo,').');
  444. end;
  445. {*****************************************************************************
  446. SetJmp/LongJmp support.
  447. *****************************************************************************}
  448. {$i setjump.inc}
  449. {*****************************************************************************
  450. Object Pascal support
  451. *****************************************************************************}
  452. {$i objpas.inc}
  453. {
  454. $Log$
  455. Revision 1.62 1999-07-02 18:06:42 florian
  456. + qword/int64: lo/hi/swap
  457. Revision 1.61 1999/07/01 15:39:51 florian
  458. + qword/int64 type released
  459. Revision 1.60 1999/06/11 11:47:00 peter
  460. * random doesn't rte 200 with random(0)
  461. Revision 1.59 1999/06/05 20:45:12 michael
  462. + AbstractErro should call HandleError, not runerror.
  463. Revision 1.58 1999/05/17 21:52:39 florian
  464. * most of the Object Pascal stuff moved to the system unit
  465. Revision 1.57 1999/04/17 13:10:25 peter
  466. * addr() internal
  467. Revision 1.56 1999/04/15 12:20:01 peter
  468. + finalization support
  469. Revision 1.55 1999/03/01 15:41:03 peter
  470. * use external names
  471. * removed all direct assembler modes
  472. Revision 1.54 1999/02/01 00:05:14 florian
  473. + functions lo/hi for DWord type implemented
  474. Revision 1.53 1999/01/29 09:23:09 pierre
  475. * Fillchar(..,..,boolean) added
  476. Revision 1.52 1999/01/22 12:39:23 pierre
  477. + added text arg for dump_stack
  478. Revision 1.51 1999/01/18 10:05:52 pierre
  479. + system_exit procedure added
  480. Revision 1.50 1998/12/28 15:50:46 peter
  481. + stdout, which is needed when you write something in the system unit
  482. to the screen. Like the runtime error
  483. Revision 1.49 1998/12/21 14:28:21 pierre
  484. * HandleError -> HandleErrorFrame to avoid problem in
  485. assembler code in i386.inc
  486. (call to overloaded function in assembler block !)
  487. Revision 1.48 1998/12/18 17:21:33 peter
  488. * fixed io-error handling
  489. Revision 1.47 1998/12/15 22:43:03 peter
  490. * removed temp symbols
  491. Revision 1.46 1998/12/10 23:59:56 peter
  492. * removed warnign
  493. Revision 1.45 1998/12/01 14:00:10 pierre
  494. + added conversion from exceptions into run time error
  495. (only if syswin32 compiled with -ddebug for now !)
  496. * added HandleError(errno,frame)
  497. where you specify the frame
  498. needed for win32 exception handling
  499. Revision 1.44 1998/11/26 23:16:15 jonas
  500. * changed RandSeed and OldRandSeed to Cardinal to avoid negative random numbers
  501. Revision 1.43 1998/11/17 10:36:07 michael
  502. + renamed astrings.pp to astrings.inc
  503. Revision 1.42 1998/11/16 10:21:25 peter
  504. * fixes for H+
  505. Revision 1.41 1998/11/05 10:29:36 pierre
  506. * fix for length(char) in const expressions
  507. Revision 1.40 1998/11/04 20:34:02 michael
  508. + Removed ifdef useansistrings
  509. Revision 1.39 1998/10/12 22:11:28 jonas
  510. * fixed RandSeed bug
  511. Revision 1.38 1998/10/12 12:43:37 florian
  512. * made FPC_HANDLEERROR public
  513. Revision 1.37 1998/10/07 11:40:08 jonas
  514. * changed seed2 and seed3 to cardinal to prevent overflow
  515. Revision 1.36 1998/10/05 12:32:51 peter
  516. + assert() support
  517. Revision 1.35 1998/10/02 09:25:11 peter
  518. * more constant expression evals
  519. Revision 1.34 1998/09/22 15:30:54 peter
  520. * shortstring=string type added
  521. Revision 1.33 1998/09/16 13:08:03 michael
  522. Added AbstractErrorHandler
  523. Revision 1.32 1998/09/16 12:37:07 michael
  524. Added FPC_ prefix to abstracterror
  525. Revision 1.31 1998/09/15 17:12:32 michael
  526. + Merged changes from fixes branch
  527. Revision 1.30 1998/09/14 10:48:20 peter
  528. * FPC_ names
  529. * Heap manager is now system independent
  530. Revision 1.29.2.1 1998/09/15 17:08:43 michael
  531. + Added abstracterror call
  532. Revision 1.29 1998/09/01 17:36:21 peter
  533. + internconst
  534. Revision 1.28 1998/08/17 12:24:16 carl
  535. + important comment added
  536. Revision 1.27 1998/08/13 16:22:11 jonas
  537. * random now returns a value between 0 and max-1 instead of between 0 and max
  538. Revision 1.26 1998/08/11 00:05:26 peter
  539. * $ifdef ver0_99_5 updates
  540. Revision 1.25 1998/07/30 13:26:18 michael
  541. + Added support for ErrorProc variable. All internal functions are required
  542. to call HandleError instead of runerror from now on.
  543. This is necessary for exception support.
  544. Revision 1.24 1998/07/28 20:37:45 michael
  545. + added setjmp/longjmp and exception support
  546. Revision 1.23 1998/07/23 19:53:20 michael
  547. + Adapted assert to Delphi format
  548. Revision 1.22 1998/07/23 13:08:41 michael
  549. + Implemented DO_ASSERT function.
  550. Revision 1.21 1998/07/15 12:09:35 carl
  551. * would not compile under FPC v0.99.5
  552. Revision 1.20 1998/07/13 21:19:12 florian
  553. * some problems with ansi string support fixed
  554. Revision 1.19 1998/07/08 11:56:55 carl
  555. * randon and Random(l) now work correctly - don't touch it works!
  556. Revision 1.18 1998/07/02 13:01:55 carl
  557. * hmmm... it is luck (BSS zeroed with GAS) that DoError and ErrorBase work.
  558. Now they are initilized instead.
  559. Revision 1.17 1998/07/02 12:53:09 carl
  560. * DOERROR RESOTRED! DON'T TOUCH :)
  561. Revision 1.16 1998/07/02 12:11:50 carl
  562. * no SINGLE in m68k and other processors!
  563. Revision 1.15 1998/07/02 09:25:05 peter
  564. * fixed do_error in runtimeerror
  565. Revision 1.14 1998/07/01 15:29:59 peter
  566. * better readln/writeln
  567. Revision 1.13 1998/06/26 08:21:09 daniel
  568. - Doerror removed.
  569. Revision 1.12 1998/06/25 14:04:25 peter
  570. + internal inc/dec
  571. Revision 1.11 1998/06/25 09:44:20 daniel
  572. + RTLLITE directive to compile minimal RTL.
  573. Revision 1.10 1998/06/15 15:16:26 daniel
  574. * RTLLITE conditional added to produce smaller RTL
  575. Revision 1.9 1998/06/10 07:46:45 michael
  576. + Forgot to commit some changes
  577. Revision 1.8 1998/06/08 12:38:24 michael
  578. Implemented rtti, inserted ansistrings again
  579. Revision 1.7 1998/06/04 23:46:01 peter
  580. * comp,extended are only i386 added support_comp,support_extended
  581. Revision 1.6 1998/05/20 11:23:09 cvs
  582. * test commit. Shouldn't be allowed.
  583. Revision 1.5 1998/05/12 10:42:45 peter
  584. * moved getopts to inc/, all supported OS's need argc,argv exported
  585. + strpas, strlen are now exported in the systemunit
  586. * removed logs
  587. * removed $ifdef ver_above
  588. Revision 1.4 1998/04/16 12:30:47 peter
  589. + inc(pchar), dec(pchar), incc(pchar,a),dec(pchar,a)
  590. Revision 1.3 1998/04/08 07:53:32 michael
  591. + Changed Random() function. Moved from system to processor dependent files (from Pedro Gimeno)
  592. }