parser.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. This unit does the parsing process
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit parser;
  19. {$i fpcdefs.inc}
  20. interface
  21. {$ifdef PREPROCWRITE}
  22. procedure preprocess(const filename:string);
  23. {$endif PREPROCWRITE}
  24. procedure compile(const filename:string);
  25. procedure initparser;
  26. procedure doneparser;
  27. implementation
  28. uses
  29. cutils,cclasses,
  30. globtype,version,tokens,systems,globals,verbose,
  31. symbase,symtable,symsym,
  32. finput,fmodule,fppu,
  33. aasmbase,aasmtai,
  34. cgbase,
  35. script,gendef,
  36. {$ifdef BrowserLog}
  37. browlog,
  38. {$endif BrowserLog}
  39. {$ifdef UseExcept}
  40. tpexcept,
  41. {$endif UseExcept}
  42. {$ifdef GDB}
  43. gdb,
  44. {$endif GDB}
  45. comphook,
  46. scanner,scandir,
  47. pbase,ptype,psystem,pmodules,psub,
  48. cresstr,cpuinfo,procinfo;
  49. procedure initparser;
  50. begin
  51. { ^M means a string or a char, because we don't parse a }
  52. { type declaration }
  53. ignore_equal:=false;
  54. { we didn't parse a object or class declaration }
  55. { and no function header }
  56. testcurobject:=0;
  57. { Current compiled module/proc }
  58. objectlibrary:=nil;
  59. current_module:=nil;
  60. compiled_module:=nil;
  61. current_procinfo:=nil;
  62. loaded_units:=TLinkedList.Create;
  63. usedunits:=TLinkedList.Create;
  64. { global switches }
  65. aktglobalswitches:=initglobalswitches;
  66. aktsourcecodepage:=initsourcecodepage;
  67. { initialize scanner }
  68. InitScanner;
  69. InitScannerDirectives;
  70. { scanner }
  71. c:=#0;
  72. pattern:='';
  73. orgpattern:='';
  74. current_scanner:=nil;
  75. { register all nodes and tais }
  76. registernodes;
  77. registertais;
  78. { memory sizes }
  79. if stacksize=0 then
  80. stacksize:=target_info.stacksize;
  81. { open assembler response }
  82. if cs_link_on_target in aktglobalswitches then
  83. GenerateAsmRes(outputexedir+inputfile+'_ppas')
  84. else
  85. GenerateAsmRes(outputexedir+'ppas');
  86. { open deffile }
  87. DefFile:=TDefFile.Create(outputexedir+inputfile+target_info.defext);
  88. { list of generated .o files, so the linker can remove them }
  89. SmartLinkOFiles:=TStringList.Create;
  90. { codegen }
  91. if paraprintnodetree<>0 then
  92. printnode_reset;
  93. { target specific stuff }
  94. case target_info.system of
  95. system_powerpc_morphos:
  96. include(supported_calling_conventions,pocall_syscall);
  97. system_m68k_amiga:
  98. include(supported_calling_conventions,pocall_syscall);
  99. end;
  100. end;
  101. procedure doneparser;
  102. begin
  103. { Reset current compiling info, so destroy routines can't
  104. reference the data that might already be destroyed }
  105. objectlibrary:=nil;
  106. current_module:=nil;
  107. compiled_module:=nil;
  108. current_procinfo:=nil;
  109. { unload units }
  110. loaded_units.free;
  111. usedunits.free;
  112. { if there was an error in the scanner, the scanner is
  113. still assinged }
  114. if assigned(current_scanner) then
  115. begin
  116. current_scanner.free;
  117. current_scanner:=nil;
  118. end;
  119. { close scanner }
  120. DoneScanner;
  121. { close ppas,deffile }
  122. asmres.free;
  123. deffile.free;
  124. { free list of .o files }
  125. SmartLinkOFiles.Free;
  126. end;
  127. procedure default_macros;
  128. var
  129. hp : tstringlistitem;
  130. begin
  131. { commandline }
  132. hp:=tstringlistitem(initdefines.first);
  133. while assigned(hp) do
  134. begin
  135. current_scanner.def_macro(hp.str);
  136. hp:=tstringlistitem(hp.next);
  137. end;
  138. { set macros for version checking }
  139. current_scanner.set_macro('FPC_VERSION',version_nr);
  140. current_scanner.set_macro('FPC_RELEASE',release_nr);
  141. current_scanner.set_macro('FPC_PATCH',patch_nr);
  142. end;
  143. {$ifdef PREPROCWRITE}
  144. procedure preprocess(const filename:string);
  145. var
  146. i : longint;
  147. begin
  148. new(preprocfile,init('pre'));
  149. { default macros }
  150. current_scanner^.macros:=new(pdictionary,init);
  151. default_macros;
  152. { initialize a module }
  153. current_module:=new(pmodule,init(filename,false));
  154. main_module:=current_module;
  155. { startup scanner, and save in current_module }
  156. current_scanner:=new(pscannerfile,Init(filename));
  157. current_module.scanner:=current_scanner;
  158. { loop until EOF is found }
  159. repeat
  160. current_scanner^.readtoken;
  161. preprocfile^.AddSpace;
  162. case token of
  163. _ID :
  164. begin
  165. preprocfile^.Add(orgpattern);
  166. end;
  167. _REALNUMBER,
  168. _INTCONST :
  169. preprocfile^.Add(pattern);
  170. _CSTRING :
  171. begin
  172. i:=0;
  173. while (i<length(pattern)) do
  174. begin
  175. inc(i);
  176. if pattern[i]='''' then
  177. begin
  178. insert('''',pattern,i);
  179. inc(i);
  180. end;
  181. end;
  182. preprocfile^.Add(''''+pattern+'''');
  183. end;
  184. _CCHAR :
  185. begin
  186. case pattern[1] of
  187. #39 :
  188. pattern:='''''''';
  189. #0..#31,
  190. #128..#255 :
  191. begin
  192. str(ord(pattern[1]),pattern);
  193. pattern:='#'+pattern;
  194. end;
  195. else
  196. pattern:=''''+pattern[1]+'''';
  197. end;
  198. preprocfile^.Add(pattern);
  199. end;
  200. _EOF :
  201. break;
  202. else
  203. preprocfile^.Add(tokeninfo^[token].str)
  204. end;
  205. until false;
  206. { free scanner }
  207. dispose(current_scanner,done);
  208. current_scanner:=nil;
  209. { close }
  210. dispose(preprocfile,done);
  211. end;
  212. {$endif PREPROCWRITE}
  213. {*****************************************************************************
  214. Create information for a new module
  215. *****************************************************************************}
  216. procedure init_module;
  217. begin
  218. { Create assembler output lists for CG }
  219. exprasmlist:=taasmoutput.create;
  220. datasegment:=taasmoutput.create;
  221. codesegment:=taasmoutput.create;
  222. bsssegment:=taasmoutput.create;
  223. debuglist:=taasmoutput.create;
  224. withdebuglist:=taasmoutput.create;
  225. consts:=taasmoutput.create;
  226. rttilist:=taasmoutput.create;
  227. picdata:=taasmoutput.create;
  228. if target_info.system=system_powerpc_darwin then
  229. picdata.concat(tai_simple.create(ait_non_lazy_symbol_pointer));
  230. ResourceStringList:=Nil;
  231. importssection:=nil;
  232. exportssection:=nil;
  233. resourcesection:=nil;
  234. { Resource strings }
  235. ResourceStrings:=TResourceStrings.Create;
  236. { use the librarydata from current_module }
  237. objectlibrary:=current_module.librarydata;
  238. end;
  239. procedure done_module;
  240. {$ifdef MEMDEBUG}
  241. var
  242. d : tmemdebug;
  243. {$endif}
  244. begin
  245. {$ifdef MEMDEBUG}
  246. d:=tmemdebug.create(current_module.modulename^+' - asmlists');
  247. {$endif}
  248. exprasmlist.free;
  249. codesegment.free;
  250. bsssegment.free;
  251. datasegment.free;
  252. debuglist.free;
  253. withdebuglist.free;
  254. consts.free;
  255. rttilist.free;
  256. picdata.free;
  257. if assigned(ResourceStringList) then
  258. ResourceStringList.free;
  259. if assigned(importssection) then
  260. importssection.free;
  261. if assigned(exportssection) then
  262. exportssection.free;
  263. if assigned(resourcesection) then
  264. resourcesection.free;
  265. {$ifdef MEMDEBUG}
  266. d.free;
  267. {$endif}
  268. { resource strings }
  269. ResourceStrings.free;
  270. objectlibrary:=nil;
  271. end;
  272. {*****************************************************************************
  273. Compile a source file
  274. *****************************************************************************}
  275. procedure compile(const filename:string);
  276. type
  277. polddata=^tolddata;
  278. tolddata=record
  279. { scanner }
  280. oldidtoken,
  281. oldtoken : ttoken;
  282. oldtokenpos : tfileposinfo;
  283. oldc : char;
  284. oldpattern,
  285. oldorgpattern : string;
  286. old_block_type : tblock_type;
  287. { symtable }
  288. oldrefsymtable,
  289. olddefaultsymtablestack,
  290. oldsymtablestack : tsymtable;
  291. oldaktprocsym : tprocsym;
  292. { cg }
  293. oldparse_only : boolean;
  294. { asmlists }
  295. oldimports,
  296. oldexports,
  297. oldresource,
  298. oldrttilist,
  299. oldpicdata,
  300. oldresourcestringlist,
  301. oldbsssegment,
  302. olddatasegment,
  303. oldcodesegment,
  304. oldexprasmlist,
  305. olddebuglist,
  306. oldwithdebuglist,
  307. oldconsts : taasmoutput;
  308. oldobjectlibrary : tasmlibrarydata;
  309. { resourcestrings }
  310. OldResourceStrings : tResourceStrings;
  311. { akt.. things }
  312. oldaktlocalswitches : tlocalswitches;
  313. oldaktmoduleswitches : tmoduleswitches;
  314. oldaktfilepos : tfileposinfo;
  315. oldaktpackrecords,
  316. oldaktpackenum,oldaktmaxfpuregisters : longint;
  317. oldaktalignment : talignmentinfo;
  318. oldaktoutputformat : tasm;
  319. oldaktspecificoptprocessor,
  320. oldaktoptprocessor : tprocessors;
  321. oldaktfputype : tfputype;
  322. oldaktasmmode : tasmmode;
  323. oldaktinterfacetype: tinterfacetypes;
  324. oldaktmodeswitches : tmodeswitches;
  325. old_compiled_module : tmodule;
  326. oldcurrent_procinfo : tprocinfo;
  327. oldaktdefproccall : tproccalloption;
  328. oldsourcecodepage : tcodepagestring;
  329. {$ifdef GDB}
  330. store_dbx : plongint;
  331. {$endif GDB}
  332. end;
  333. var
  334. olddata : polddata;
  335. {$ifdef USEEXCEPT}
  336. recoverpos : jmp_buf;
  337. oldrecoverpos : pjmp_buf;
  338. {$endif useexcept}
  339. begin
  340. inc(compile_level);
  341. parser_current_file:=filename;
  342. { Uses heap memory instead of placing everything on the
  343. stack. This is needed because compile() can be called
  344. recursively }
  345. new(olddata);
  346. with olddata^ do
  347. begin
  348. old_compiled_module:=compiled_module;
  349. { save symtable state }
  350. oldsymtablestack:=symtablestack;
  351. olddefaultsymtablestack:=defaultsymtablestack;
  352. oldrefsymtable:=refsymtable;
  353. oldcurrent_procinfo:=current_procinfo;
  354. oldaktdefproccall:=aktdefproccall;
  355. { save scanner state }
  356. oldc:=c;
  357. oldpattern:=pattern;
  358. oldorgpattern:=orgpattern;
  359. oldtoken:=token;
  360. oldidtoken:=idtoken;
  361. old_block_type:=block_type;
  362. oldtokenpos:=akttokenpos;
  363. oldsourcecodepage:=aktsourcecodepage;
  364. { save cg }
  365. oldparse_only:=parse_only;
  366. { save assembler lists }
  367. olddatasegment:=datasegment;
  368. oldbsssegment:=bsssegment;
  369. oldcodesegment:=codesegment;
  370. olddebuglist:=debuglist;
  371. oldwithdebuglist:=withdebuglist;
  372. oldconsts:=consts;
  373. oldrttilist:=rttilist;
  374. oldpicdata:=picdata;
  375. oldexprasmlist:=exprasmlist;
  376. oldimports:=importssection;
  377. oldexports:=exportssection;
  378. oldresource:=resourcesection;
  379. oldresourcestringlist:=resourcestringlist;
  380. oldobjectlibrary:=objectlibrary;
  381. OldResourceStrings:=ResourceStrings;
  382. { save akt... state }
  383. { handle the postponed case first }
  384. if localswitcheschanged then
  385. begin
  386. aktlocalswitches:=nextaktlocalswitches;
  387. localswitcheschanged:=false;
  388. end;
  389. oldaktlocalswitches:=aktlocalswitches;
  390. oldaktmoduleswitches:=aktmoduleswitches;
  391. oldaktalignment:=aktalignment;
  392. oldaktpackenum:=aktpackenum;
  393. oldaktpackrecords:=aktpackrecords;
  394. oldaktfputype:=aktfputype;
  395. oldaktmaxfpuregisters:=aktmaxfpuregisters;
  396. oldaktoutputformat:=aktoutputformat;
  397. oldaktoptprocessor:=aktoptprocessor;
  398. oldaktspecificoptprocessor:=aktspecificoptprocessor;
  399. oldaktasmmode:=aktasmmode;
  400. oldaktinterfacetype:=aktinterfacetype;
  401. oldaktfilepos:=aktfilepos;
  402. oldaktmodeswitches:=aktmodeswitches;
  403. {$ifdef GDB}
  404. store_dbx:=dbx_counter;
  405. dbx_counter:=nil;
  406. {$endif GDB}
  407. end;
  408. { show info }
  409. Message1(parser_i_compiling,filename);
  410. { reset symtable }
  411. symtablestack:=nil;
  412. defaultsymtablestack:=nil;
  413. systemunit:=nil;
  414. refsymtable:=nil;
  415. aktdefproccall:=initdefproccall;
  416. registerdef:=true;
  417. aktexceptblock:=0;
  418. exceptblockcounter:=0;
  419. aktmaxfpuregisters:=-1;
  420. { reset the unit or create a new program }
  421. if not assigned(current_module) then
  422. begin
  423. current_module:=tppumodule.create(nil,filename,'',false);
  424. main_module:=current_module;
  425. current_module.state:=ms_compile;
  426. end;
  427. if not(current_module.state in [ms_compile,ms_second_compile]) then
  428. internalerror(200212281);
  429. { a unit compiled at command line must be inside the loaded_unit list }
  430. if (compile_level=1) then
  431. loaded_units.insert(current_module);
  432. { Set the module to use for verbose }
  433. compiled_module:=current_module;
  434. SetCompileModule(current_module);
  435. Fillchar(aktfilepos,0,sizeof(aktfilepos));
  436. { Load current state from the init values }
  437. aktlocalswitches:=initlocalswitches;
  438. aktmoduleswitches:=initmoduleswitches;
  439. aktmodeswitches:=initmodeswitches;
  440. {$IFDEF Testvarsets}
  441. aktsetalloc:=initsetalloc;
  442. {$ENDIF}
  443. aktalignment:=initalignment;
  444. aktfputype:=initfputype;
  445. aktpackenum:=initpackenum;
  446. aktpackrecords:=0;
  447. aktoutputformat:=initoutputformat;
  448. set_target_asm(aktoutputformat);
  449. aktoptprocessor:=initoptprocessor;
  450. aktspecificoptprocessor:=initspecificoptprocessor;
  451. aktasmmode:=initasmmode;
  452. aktinterfacetype:=initinterfacetype;
  453. { startup scanner and load the first file }
  454. current_scanner:=tscannerfile.Create(filename);
  455. current_scanner.firstfile;
  456. current_module.scanner:=current_scanner;
  457. { macros }
  458. default_macros;
  459. { read the first token }
  460. current_scanner.readtoken;
  461. { init code generator for a new module }
  462. init_module;
  463. { If the compile level > 1 we get a nice "unit expected" error
  464. message if we are trying to use a program as unit.}
  465. {$ifdef USEEXCEPT}
  466. if setjmp(recoverpos)=0 then
  467. begin
  468. oldrecoverpos:=recoverpospointer;
  469. recoverpospointer:=@recoverpos;
  470. {$endif USEEXCEPT}
  471. if (token=_UNIT) or (compile_level>1) then
  472. begin
  473. current_module.is_unit:=true;
  474. proc_unit;
  475. end
  476. else
  477. proc_program(token=_LIBRARY);
  478. {$ifdef USEEXCEPT}
  479. recoverpospointer:=oldrecoverpos;
  480. end
  481. else
  482. begin
  483. recoverpospointer:=oldrecoverpos;
  484. longjump_used:=true;
  485. end;
  486. {$endif USEEXCEPT}
  487. { restore old state }
  488. done_module;
  489. if assigned(current_module) then
  490. begin
  491. { module is now compiled }
  492. tppumodule(current_module).state:=ms_compiled;
  493. { free ppu }
  494. if assigned(tppumodule(current_module).ppufile) then
  495. begin
  496. tppumodule(current_module).ppufile.free;
  497. tppumodule(current_module).ppufile:=nil;
  498. end;
  499. { free scanner }
  500. if assigned(current_module.scanner) then
  501. begin
  502. if current_scanner=tscannerfile(current_module.scanner) then
  503. current_scanner:=nil;
  504. tscannerfile(current_module.scanner).free;
  505. current_module.scanner:=nil;
  506. end;
  507. end;
  508. if (compile_level>1) then
  509. begin
  510. with olddata^ do
  511. begin
  512. { restore scanner }
  513. c:=oldc;
  514. pattern:=oldpattern;
  515. orgpattern:=oldorgpattern;
  516. token:=oldtoken;
  517. idtoken:=oldidtoken;
  518. akttokenpos:=oldtokenpos;
  519. block_type:=old_block_type;
  520. { restore cg }
  521. parse_only:=oldparse_only;
  522. { restore asmlists }
  523. exprasmlist:=oldexprasmlist;
  524. datasegment:=olddatasegment;
  525. bsssegment:=oldbsssegment;
  526. codesegment:=oldcodesegment;
  527. consts:=oldconsts;
  528. debuglist:=olddebuglist;
  529. withdebuglist:=oldwithdebuglist;
  530. importssection:=oldimports;
  531. exportssection:=oldexports;
  532. resourcesection:=oldresource;
  533. rttilist:=oldrttilist;
  534. picdata:=oldpicdata;
  535. resourcestringlist:=oldresourcestringlist;
  536. { object data }
  537. ResourceStrings:=OldResourceStrings;
  538. objectlibrary:=oldobjectlibrary;
  539. { restore previous scanner }
  540. if assigned(old_compiled_module) then
  541. current_scanner:=tscannerfile(old_compiled_module.scanner)
  542. else
  543. current_scanner:=nil;
  544. if assigned(current_scanner) then
  545. parser_current_file:=current_scanner.inputfile.name^;
  546. { restore symtable state }
  547. refsymtable:=oldrefsymtable;
  548. symtablestack:=oldsymtablestack;
  549. defaultsymtablestack:=olddefaultsymtablestack;
  550. aktdefproccall:=oldaktdefproccall;
  551. current_procinfo:=oldcurrent_procinfo;
  552. aktsourcecodepage:=oldsourcecodepage;
  553. aktlocalswitches:=oldaktlocalswitches;
  554. aktmoduleswitches:=oldaktmoduleswitches;
  555. aktalignment:=oldaktalignment;
  556. aktpackenum:=oldaktpackenum;
  557. aktpackrecords:=oldaktpackrecords;
  558. aktmaxfpuregisters:=oldaktmaxfpuregisters;
  559. aktoutputformat:=oldaktoutputformat;
  560. set_target_asm(aktoutputformat);
  561. aktoptprocessor:=oldaktoptprocessor;
  562. aktspecificoptprocessor:=oldaktspecificoptprocessor;
  563. aktfputype:=oldaktfputype;
  564. aktasmmode:=oldaktasmmode;
  565. aktinterfacetype:=oldaktinterfacetype;
  566. aktfilepos:=oldaktfilepos;
  567. aktmodeswitches:=oldaktmodeswitches;
  568. aktexceptblock:=0;
  569. exceptblockcounter:=0;
  570. {$ifdef GDB}
  571. dbx_counter:=store_dbx;
  572. {$endif GDB}
  573. end;
  574. end
  575. else
  576. begin
  577. parser_current_file:='';
  578. { Shut down things when the last file is compiled }
  579. if (compile_level=1) then
  580. begin
  581. { Close script }
  582. if (not AsmRes.Empty) then
  583. begin
  584. Message1(exec_i_closing_script,AsmRes.Fn);
  585. AsmRes.WriteToDisk;
  586. end;
  587. {$ifdef USEEXCEPT}
  588. if not longjump_used then
  589. {$endif USEEXCEPT}
  590. begin
  591. { do not create browsers on errors !! }
  592. if status.errorcount=0 then
  593. begin
  594. {$ifdef BrowserLog}
  595. { Write Browser Log }
  596. if (cs_browser_log in aktglobalswitches) and
  597. (cs_browser in aktmoduleswitches) then
  598. begin
  599. if browserlog.elements_to_list.empty then
  600. begin
  601. Message1(parser_i_writing_browser_log,browserlog.Fname);
  602. WriteBrowserLog;
  603. end
  604. else
  605. browserlog.list_elements;
  606. end;
  607. {$endif BrowserLog}
  608. { Write Browser Collections }
  609. do_extractsymbolinfo{$ifdef FPC}(){$endif};
  610. end;
  611. end;
  612. {$ifdef dummy}
  613. if current_module.in_second_compile then
  614. begin
  615. current_module.in_second_compile:=false;
  616. current_module.in_compile:=true;
  617. end
  618. else
  619. current_module.in_compile:=false;
  620. {$endif dummy}
  621. end;
  622. end;
  623. dec(compile_level);
  624. compiled_module:=olddata^.old_compiled_module;
  625. dispose(olddata);
  626. {$ifdef USEEXCEPT}
  627. if longjump_used then
  628. longjmp(recoverpospointer^,1);
  629. {$endif USEEXCEPT}
  630. end;
  631. end.
  632. {
  633. $Log$
  634. Revision 1.68 2004-10-25 15:38:41 peter
  635. * heap and heapsize removed
  636. * checkpointer fixes
  637. Revision 1.67 2004/10/15 09:14:17 mazen
  638. - remove $IFDEF DELPHI and related code
  639. - remove $IFDEF FPCPROCVAR and related code
  640. Revision 1.66 2004/06/20 08:55:30 florian
  641. * logs truncated
  642. Revision 1.65 2004/05/12 13:21:09 karoly
  643. * few small changes to add syscall support to M68k/Amiga target
  644. Revision 1.64 2004/04/28 15:19:03 florian
  645. + syscall directive support for MorphOS added
  646. Revision 1.63 2004/03/16 16:20:49 peter
  647. * reset current_module,current_procinfo so the destroy routines
  648. can't access their info anymore, because that can be already
  649. destroyed
  650. Revision 1.62 2004/03/14 20:08:37 peter
  651. * packrecords fixed for settings from $PACKRECORDS
  652. * default packrecords now uses value 0 and uses info from aligment
  653. structure only, initpackrecords removed
  654. Revision 1.61 2004/03/02 17:32:12 florian
  655. * make cycle fixed
  656. + pic support for darwin
  657. + support of importing vars from shared libs on darwin implemented
  658. }