parser.pas 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  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 BrowserCol}
  37. browcol,
  38. {$endif BrowserCol}
  39. {$ifdef BrowserLog}
  40. browlog,
  41. {$endif BrowserLog}
  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. {$ifdef PREPROCWRITE}
  128. procedure preprocess(const filename:string);
  129. var
  130. i : longint;
  131. begin
  132. new(preprocfile,init('pre'));
  133. { initialize a module }
  134. current_module:=new(pmodule,init(filename,false));
  135. macrosymtablestack:= initialmacrosymtable;
  136. current_module.localmacrosymtable:= tmacrosymtable.create(false);
  137. current_module.localmacrosymtable.next:= initialmacrosymtable;
  138. macrosymtablestack:= current_module.localmacrosymtable;
  139. ConsolidateMode;
  140. main_module:=current_module;
  141. { startup scanner, and save in current_module }
  142. current_scanner:=new(pscannerfile,Init(filename));
  143. current_module.scanner:=current_scanner;
  144. { loop until EOF is found }
  145. repeat
  146. current_scanner^.readtoken;
  147. preprocfile^.AddSpace;
  148. case token of
  149. _ID :
  150. begin
  151. preprocfile^.Add(orgpattern);
  152. end;
  153. _REALNUMBER,
  154. _INTCONST :
  155. preprocfile^.Add(pattern);
  156. _CSTRING :
  157. begin
  158. i:=0;
  159. while (i<length(pattern)) do
  160. begin
  161. inc(i);
  162. if pattern[i]='''' then
  163. begin
  164. insert('''',pattern,i);
  165. inc(i);
  166. end;
  167. end;
  168. preprocfile^.Add(''''+pattern+'''');
  169. end;
  170. _CCHAR :
  171. begin
  172. case pattern[1] of
  173. #39 :
  174. pattern:='''''''';
  175. #0..#31,
  176. #128..#255 :
  177. begin
  178. str(ord(pattern[1]),pattern);
  179. pattern:='#'+pattern;
  180. end;
  181. else
  182. pattern:=''''+pattern[1]+'''';
  183. end;
  184. preprocfile^.Add(pattern);
  185. end;
  186. _EOF :
  187. break;
  188. else
  189. preprocfile^.Add(tokeninfo^[token].str)
  190. end;
  191. until false;
  192. { free scanner }
  193. dispose(current_scanner,done);
  194. current_scanner:=nil;
  195. { close }
  196. dispose(preprocfile,done);
  197. end;
  198. {$endif PREPROCWRITE}
  199. {*****************************************************************************
  200. Create information for a new module
  201. *****************************************************************************}
  202. procedure init_module;
  203. begin
  204. { Create assembler output lists for CG }
  205. exprasmlist:=taasmoutput.create;
  206. datasegment:=taasmoutput.create;
  207. codesegment:=taasmoutput.create;
  208. bsssegment:=taasmoutput.create;
  209. debuglist:=taasmoutput.create;
  210. withdebuglist:=taasmoutput.create;
  211. consts:=taasmoutput.create;
  212. rttilist:=taasmoutput.create;
  213. picdata:=taasmoutput.create;
  214. if target_info.system=system_powerpc_darwin then
  215. picdata.concat(tai_simple.create(ait_non_lazy_symbol_pointer));
  216. ResourceStringList:=Nil;
  217. importssection:=nil;
  218. exportssection:=nil;
  219. resourcesection:=nil;
  220. { Resource strings }
  221. ResourceStrings:=TResourceStrings.Create;
  222. { use the librarydata from current_module }
  223. objectlibrary:=current_module.librarydata;
  224. end;
  225. procedure done_module;
  226. {$ifdef MEMDEBUG}
  227. var
  228. d : tmemdebug;
  229. {$endif}
  230. begin
  231. {$ifdef MEMDEBUG}
  232. d:=tmemdebug.create(current_module.modulename^+' - asmlists');
  233. {$endif}
  234. exprasmlist.free;
  235. codesegment.free;
  236. bsssegment.free;
  237. datasegment.free;
  238. debuglist.free;
  239. withdebuglist.free;
  240. consts.free;
  241. rttilist.free;
  242. picdata.free;
  243. if assigned(ResourceStringList) then
  244. ResourceStringList.free;
  245. if assigned(importssection) then
  246. importssection.free;
  247. if assigned(exportssection) then
  248. exportssection.free;
  249. if assigned(resourcesection) then
  250. resourcesection.free;
  251. {$ifdef MEMDEBUG}
  252. d.free;
  253. {$endif}
  254. { resource strings }
  255. ResourceStrings.free;
  256. objectlibrary:=nil;
  257. end;
  258. {*****************************************************************************
  259. Compile a source file
  260. *****************************************************************************}
  261. procedure compile(const filename:string);
  262. type
  263. polddata=^tolddata;
  264. tolddata=record
  265. { scanner }
  266. oldidtoken,
  267. oldtoken : ttoken;
  268. oldtokenpos : tfileposinfo;
  269. oldc : char;
  270. oldpattern,
  271. oldorgpattern : string;
  272. old_block_type : tblock_type;
  273. { symtable }
  274. oldrefsymtable,
  275. olddefaultsymtablestack,
  276. oldsymtablestack : tsymtable;
  277. olddefaultmacrosymtablestack,
  278. oldmacrosymtablestack : tsymtable;
  279. oldaktprocsym : tprocsym;
  280. { cg }
  281. oldparse_only : boolean;
  282. { asmlists }
  283. oldimports,
  284. oldexports,
  285. oldresource,
  286. oldrttilist,
  287. oldpicdata,
  288. oldresourcestringlist,
  289. oldbsssegment,
  290. olddatasegment,
  291. oldcodesegment,
  292. oldexprasmlist,
  293. olddebuglist,
  294. oldwithdebuglist,
  295. oldconsts : taasmoutput;
  296. oldobjectlibrary : tasmlibrarydata;
  297. { resourcestrings }
  298. OldResourceStrings : tResourceStrings;
  299. { akt.. things }
  300. oldaktlocalswitches : tlocalswitches;
  301. oldaktmoduleswitches : tmoduleswitches;
  302. oldaktfilepos : tfileposinfo;
  303. oldaktpackrecords,
  304. oldaktpackenum : shortint;
  305. oldaktmaxfpuregisters : longint;
  306. oldaktalignment : talignmentinfo;
  307. oldaktoutputformat : tasm;
  308. oldaktspecificoptprocessor,
  309. oldaktoptprocessor : tprocessors;
  310. oldaktfputype : tfputype;
  311. oldaktasmmode : tasmmode;
  312. oldaktinterfacetype: tinterfacetypes;
  313. oldaktmodeswitches : tmodeswitches;
  314. old_compiled_module : tmodule;
  315. oldcurrent_procinfo : tprocinfo;
  316. oldaktdefproccall : tproccalloption;
  317. oldsourcecodepage : tcodepagestring;
  318. {$ifdef GDB}
  319. store_dbx : plongint;
  320. {$endif GDB}
  321. end;
  322. var
  323. olddata : polddata;
  324. begin
  325. inc(compile_level);
  326. parser_current_file:=filename;
  327. { Uses heap memory instead of placing everything on the
  328. stack. This is needed because compile() can be called
  329. recursively }
  330. new(olddata);
  331. with olddata^ do
  332. begin
  333. old_compiled_module:=compiled_module;
  334. { save symtable state }
  335. oldsymtablestack:=symtablestack;
  336. oldmacrosymtablestack:=macrosymtablestack;
  337. olddefaultsymtablestack:=defaultsymtablestack;
  338. olddefaultmacrosymtablestack:=defaultmacrosymtablestack;
  339. oldrefsymtable:=refsymtable;
  340. oldcurrent_procinfo:=current_procinfo;
  341. oldaktdefproccall:=aktdefproccall;
  342. { save scanner state }
  343. oldc:=c;
  344. oldpattern:=pattern;
  345. oldorgpattern:=orgpattern;
  346. oldtoken:=token;
  347. oldidtoken:=idtoken;
  348. old_block_type:=block_type;
  349. oldtokenpos:=akttokenpos;
  350. oldsourcecodepage:=aktsourcecodepage;
  351. { save cg }
  352. oldparse_only:=parse_only;
  353. { save assembler lists }
  354. olddatasegment:=datasegment;
  355. oldbsssegment:=bsssegment;
  356. oldcodesegment:=codesegment;
  357. olddebuglist:=debuglist;
  358. oldwithdebuglist:=withdebuglist;
  359. oldconsts:=consts;
  360. oldrttilist:=rttilist;
  361. oldpicdata:=picdata;
  362. oldexprasmlist:=exprasmlist;
  363. oldimports:=importssection;
  364. oldexports:=exportssection;
  365. oldresource:=resourcesection;
  366. oldresourcestringlist:=resourcestringlist;
  367. oldobjectlibrary:=objectlibrary;
  368. OldResourceStrings:=ResourceStrings;
  369. { save akt... state }
  370. { handle the postponed case first }
  371. if localswitcheschanged then
  372. begin
  373. aktlocalswitches:=nextaktlocalswitches;
  374. localswitcheschanged:=false;
  375. end;
  376. oldaktlocalswitches:=aktlocalswitches;
  377. oldaktmoduleswitches:=aktmoduleswitches;
  378. oldaktalignment:=aktalignment;
  379. oldaktpackenum:=aktpackenum;
  380. oldaktpackrecords:=aktpackrecords;
  381. oldaktfputype:=aktfputype;
  382. oldaktmaxfpuregisters:=aktmaxfpuregisters;
  383. oldaktoutputformat:=aktoutputformat;
  384. oldaktoptprocessor:=aktoptprocessor;
  385. oldaktspecificoptprocessor:=aktspecificoptprocessor;
  386. oldaktasmmode:=aktasmmode;
  387. oldaktinterfacetype:=aktinterfacetype;
  388. oldaktfilepos:=aktfilepos;
  389. oldaktmodeswitches:=aktmodeswitches;
  390. {$ifdef GDB}
  391. store_dbx:=dbx_counter;
  392. dbx_counter:=nil;
  393. {$endif GDB}
  394. end;
  395. { show info }
  396. Message1(parser_i_compiling,filename);
  397. { reset symtable }
  398. symtablestack:=nil;
  399. macrosymtablestack:=nil;
  400. defaultsymtablestack:=nil;
  401. defaultmacrosymtablestack:=nil;
  402. systemunit:=nil;
  403. refsymtable:=nil;
  404. aktdefproccall:=initdefproccall;
  405. registerdef:=true;
  406. aktexceptblock:=0;
  407. exceptblockcounter:=0;
  408. aktmaxfpuregisters:=-1;
  409. { reset the unit or create a new program }
  410. { a unit compiled at command line must be inside the loaded_unit list }
  411. if (compile_level=1) then
  412. begin
  413. if assigned(current_module) then
  414. internalerror(200501158);
  415. current_module:=tppumodule.create(nil,filename,'',false);
  416. addloadedunit(current_module);
  417. main_module:=current_module;
  418. current_module.state:=ms_compile;
  419. end;
  420. if not(assigned(current_module) and
  421. (current_module.state in [ms_compile,ms_second_compile])) then
  422. internalerror(200212281);
  423. { Set the module to use for verbose }
  424. compiled_module:=current_module;
  425. SetCompileModule(current_module);
  426. Fillchar(aktfilepos,0,sizeof(aktfilepos));
  427. { Load current state from the init values }
  428. aktlocalswitches:=initlocalswitches;
  429. aktmoduleswitches:=initmoduleswitches;
  430. aktmodeswitches:=initmodeswitches;
  431. {$IFDEF Testvarsets}
  432. aktsetalloc:=initsetalloc;
  433. {$ENDIF}
  434. aktalignment:=initalignment;
  435. aktfputype:=initfputype;
  436. aktpackenum:=initpackenum;
  437. aktpackrecords:=0;
  438. aktoutputformat:=initoutputformat;
  439. set_target_asm(aktoutputformat);
  440. aktoptprocessor:=initoptprocessor;
  441. aktspecificoptprocessor:=initspecificoptprocessor;
  442. aktasmmode:=initasmmode;
  443. aktinterfacetype:=initinterfacetype;
  444. { startup scanner and load the first file }
  445. current_scanner:=tscannerfile.Create(filename);
  446. current_scanner.firstfile;
  447. current_module.scanner:=current_scanner;
  448. { init macros before anything in the file is parsed.}
  449. macrosymtablestack:= initialmacrosymtable;
  450. current_module.localmacrosymtable:= tmacrosymtable.create(false);
  451. current_module.localmacrosymtable.next:= initialmacrosymtable;
  452. macrosymtablestack:= current_module.localmacrosymtable;
  453. { read the first token }
  454. current_scanner.readtoken;
  455. { init code generator for a new module }
  456. init_module;
  457. { If the compile level > 1 we get a nice "unit expected" error
  458. message if we are trying to use a program as unit.}
  459. try
  460. if (token=_UNIT) or (compile_level>1) then
  461. begin
  462. current_module.is_unit:=true;
  463. proc_unit;
  464. end
  465. else
  466. proc_program(token=_LIBRARY);
  467. finally
  468. { restore old state }
  469. done_module;
  470. if assigned(current_module) then
  471. begin
  472. { module is now compiled }
  473. tppumodule(current_module).state:=ms_compiled;
  474. { free ppu }
  475. if assigned(tppumodule(current_module).ppufile) then
  476. begin
  477. tppumodule(current_module).ppufile.free;
  478. tppumodule(current_module).ppufile:=nil;
  479. end;
  480. { free scanner }
  481. if assigned(current_module.scanner) then
  482. begin
  483. if current_scanner=tscannerfile(current_module.scanner) then
  484. current_scanner:=nil;
  485. tscannerfile(current_module.scanner).free;
  486. current_module.scanner:=nil;
  487. end;
  488. end;
  489. if (compile_level>1) then
  490. begin
  491. with olddata^ do
  492. begin
  493. { restore scanner }
  494. c:=oldc;
  495. pattern:=oldpattern;
  496. orgpattern:=oldorgpattern;
  497. token:=oldtoken;
  498. idtoken:=oldidtoken;
  499. akttokenpos:=oldtokenpos;
  500. block_type:=old_block_type;
  501. { restore cg }
  502. parse_only:=oldparse_only;
  503. { restore asmlists }
  504. exprasmlist:=oldexprasmlist;
  505. datasegment:=olddatasegment;
  506. bsssegment:=oldbsssegment;
  507. codesegment:=oldcodesegment;
  508. consts:=oldconsts;
  509. debuglist:=olddebuglist;
  510. withdebuglist:=oldwithdebuglist;
  511. importssection:=oldimports;
  512. exportssection:=oldexports;
  513. resourcesection:=oldresource;
  514. rttilist:=oldrttilist;
  515. picdata:=oldpicdata;
  516. resourcestringlist:=oldresourcestringlist;
  517. { object data }
  518. ResourceStrings:=OldResourceStrings;
  519. objectlibrary:=oldobjectlibrary;
  520. { restore previous scanner }
  521. if assigned(old_compiled_module) then
  522. current_scanner:=tscannerfile(old_compiled_module.scanner)
  523. else
  524. current_scanner:=nil;
  525. if assigned(current_scanner) then
  526. parser_current_file:=current_scanner.inputfile.name^;
  527. { restore symtable state }
  528. refsymtable:=oldrefsymtable;
  529. symtablestack:=oldsymtablestack;
  530. macrosymtablestack:=oldmacrosymtablestack;
  531. defaultsymtablestack:=olddefaultsymtablestack;
  532. defaultmacrosymtablestack:=olddefaultmacrosymtablestack;
  533. aktdefproccall:=oldaktdefproccall;
  534. current_procinfo:=oldcurrent_procinfo;
  535. aktsourcecodepage:=oldsourcecodepage;
  536. aktlocalswitches:=oldaktlocalswitches;
  537. aktmoduleswitches:=oldaktmoduleswitches;
  538. aktalignment:=oldaktalignment;
  539. aktpackenum:=oldaktpackenum;
  540. aktpackrecords:=oldaktpackrecords;
  541. aktmaxfpuregisters:=oldaktmaxfpuregisters;
  542. aktoutputformat:=oldaktoutputformat;
  543. set_target_asm(aktoutputformat);
  544. aktoptprocessor:=oldaktoptprocessor;
  545. aktspecificoptprocessor:=oldaktspecificoptprocessor;
  546. aktfputype:=oldaktfputype;
  547. aktasmmode:=oldaktasmmode;
  548. aktinterfacetype:=oldaktinterfacetype;
  549. aktfilepos:=oldaktfilepos;
  550. aktmodeswitches:=oldaktmodeswitches;
  551. aktexceptblock:=0;
  552. exceptblockcounter:=0;
  553. {$ifdef GDB}
  554. dbx_counter:=store_dbx;
  555. {$endif GDB}
  556. end;
  557. end
  558. else
  559. begin
  560. { Shut down things when the last file is compiled succesfull }
  561. if (compile_level=1) and
  562. (status.errorcount=0) then
  563. begin
  564. parser_current_file:='';
  565. { Close script }
  566. if (not AsmRes.Empty) then
  567. begin
  568. Message1(exec_i_closing_script,AsmRes.Fn);
  569. AsmRes.WriteToDisk;
  570. end;
  571. { do not create browsers on errors !! }
  572. if status.errorcount=0 then
  573. begin
  574. {$ifdef BrowserLog}
  575. { Write Browser Log }
  576. if (cs_browser_log in aktglobalswitches) and
  577. (cs_browser in aktmoduleswitches) then
  578. begin
  579. if browserlog.elements_to_list.empty then
  580. begin
  581. Message1(parser_i_writing_browser_log,browserlog.Fname);
  582. WriteBrowserLog;
  583. end
  584. else
  585. browserlog.list_elements;
  586. end;
  587. {$endif BrowserLog}
  588. { Write Browser Collections, also used by the TextMode IDE to
  589. retrieve a list of sourcefiles }
  590. do_extractsymbolinfo{$ifdef FPC}(){$endif};
  591. end;
  592. end;
  593. end;
  594. dec(compile_level);
  595. compiled_module:=olddata^.old_compiled_module;
  596. SetCompileModule(compiled_module);
  597. dispose(olddata);
  598. end;
  599. end;
  600. end.
  601. {
  602. $Log$
  603. Revision 1.74 2005-02-10 20:06:34 peter
  604. * fixed call to build sourcefiles needed for ide
  605. Revision 1.73 2005/02/01 08:46:13 michael
  606. * Patch from peter: fix macpas anonymous function procvar
  607. Revision 1.72 2005/01/29 11:36:52 peter
  608. * update x86_64 with new cpupara
  609. Revision 1.71 2005/01/26 16:23:28 peter
  610. * detect arithmetic overflows for constants at compile time
  611. * use try..except instead of setjmp
  612. Revision 1.70 2005/01/19 22:19:41 peter
  613. * unit mapping rewrite
  614. * new derefmap added
  615. Revision 1.69 2005/01/09 20:24:43 olle
  616. * rework of macro subsystem
  617. + exportable macros for mode macpas
  618. Revision 1.68 2004/10/25 15:38:41 peter
  619. * heap and heapsize removed
  620. * checkpointer fixes
  621. Revision 1.67 2004/10/15 09:14:17 mazen
  622. - remove $IFDEF DELPHI and related code
  623. - remove $IFDEF FPCPROCVAR and related code
  624. Revision 1.66 2004/06/20 08:55:30 florian
  625. * logs truncated
  626. Revision 1.65 2004/05/12 13:21:09 karoly
  627. * few small changes to add syscall support to M68k/Amiga target
  628. Revision 1.64 2004/04/28 15:19:03 florian
  629. + syscall directive support for MorphOS added
  630. Revision 1.63 2004/03/16 16:20:49 peter
  631. * reset current_module,current_procinfo so the destroy routines
  632. can't access their info anymore, because that can be already
  633. destroyed
  634. Revision 1.62 2004/03/14 20:08:37 peter
  635. * packrecords fixed for settings from $PACKRECORDS
  636. * default packrecords now uses value 0 and uses info from aligment
  637. structure only, initpackrecords removed
  638. Revision 1.61 2004/03/02 17:32:12 florian
  639. * make cycle fixed
  640. + pic support for darwin
  641. + support of importing vars from shared libs on darwin implemented
  642. }