system.inc 20 KB

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