parser.pas 24 KB

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