parser.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  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,oldaktmaxfpuregisters : longint;
  302. oldaktalignment : talignmentinfo;
  303. oldaktoutputformat : tasm;
  304. oldaktspecificoptprocessor,
  305. oldaktoptprocessor : tprocessors;
  306. oldaktfputype : tfputype;
  307. oldaktasmmode : tasmmode;
  308. oldaktinterfacetype: tinterfacetypes;
  309. oldaktmodeswitches : tmodeswitches;
  310. old_compiled_module : tmodule;
  311. oldcurrent_procinfo : tprocinfo;
  312. oldaktdefproccall : tproccalloption;
  313. oldsourcecodepage : tcodepagestring;
  314. {$ifdef GDB}
  315. store_dbx : plongint;
  316. {$endif GDB}
  317. end;
  318. var
  319. olddata : polddata;
  320. begin
  321. inc(compile_level);
  322. parser_current_file:=filename;
  323. { Uses heap memory instead of placing everything on the
  324. stack. This is needed because compile() can be called
  325. recursively }
  326. new(olddata);
  327. with olddata^ do
  328. begin
  329. old_compiled_module:=compiled_module;
  330. { save symtable state }
  331. oldsymtablestack:=symtablestack;
  332. oldmacrosymtablestack:=macrosymtablestack;
  333. olddefaultsymtablestack:=defaultsymtablestack;
  334. olddefaultmacrosymtablestack:=defaultmacrosymtablestack;
  335. oldrefsymtable:=refsymtable;
  336. oldcurrent_procinfo:=current_procinfo;
  337. oldaktdefproccall:=aktdefproccall;
  338. { save scanner state }
  339. oldc:=c;
  340. oldpattern:=pattern;
  341. oldorgpattern:=orgpattern;
  342. oldtoken:=token;
  343. oldidtoken:=idtoken;
  344. old_block_type:=block_type;
  345. oldtokenpos:=akttokenpos;
  346. oldsourcecodepage:=aktsourcecodepage;
  347. { save cg }
  348. oldparse_only:=parse_only;
  349. { save assembler lists }
  350. olddatasegment:=datasegment;
  351. oldbsssegment:=bsssegment;
  352. oldcodesegment:=codesegment;
  353. olddebuglist:=debuglist;
  354. oldwithdebuglist:=withdebuglist;
  355. oldconsts:=consts;
  356. oldrttilist:=rttilist;
  357. oldpicdata:=picdata;
  358. oldexprasmlist:=exprasmlist;
  359. oldimports:=importssection;
  360. oldexports:=exportssection;
  361. oldresource:=resourcesection;
  362. oldresourcestringlist:=resourcestringlist;
  363. oldobjectlibrary:=objectlibrary;
  364. OldResourceStrings:=ResourceStrings;
  365. { save akt... state }
  366. { handle the postponed case first }
  367. if localswitcheschanged then
  368. begin
  369. aktlocalswitches:=nextaktlocalswitches;
  370. localswitcheschanged:=false;
  371. end;
  372. oldaktlocalswitches:=aktlocalswitches;
  373. oldaktmoduleswitches:=aktmoduleswitches;
  374. oldaktalignment:=aktalignment;
  375. oldaktpackenum:=aktpackenum;
  376. oldaktpackrecords:=aktpackrecords;
  377. oldaktfputype:=aktfputype;
  378. oldaktmaxfpuregisters:=aktmaxfpuregisters;
  379. oldaktoutputformat:=aktoutputformat;
  380. oldaktoptprocessor:=aktoptprocessor;
  381. oldaktspecificoptprocessor:=aktspecificoptprocessor;
  382. oldaktasmmode:=aktasmmode;
  383. oldaktinterfacetype:=aktinterfacetype;
  384. oldaktfilepos:=aktfilepos;
  385. oldaktmodeswitches:=aktmodeswitches;
  386. {$ifdef GDB}
  387. store_dbx:=dbx_counter;
  388. dbx_counter:=nil;
  389. {$endif GDB}
  390. end;
  391. { show info }
  392. Message1(parser_i_compiling,filename);
  393. { reset symtable }
  394. symtablestack:=nil;
  395. macrosymtablestack:=nil;
  396. defaultsymtablestack:=nil;
  397. defaultmacrosymtablestack:=nil;
  398. systemunit:=nil;
  399. refsymtable:=nil;
  400. aktdefproccall:=initdefproccall;
  401. registerdef:=true;
  402. aktexceptblock:=0;
  403. exceptblockcounter:=0;
  404. aktmaxfpuregisters:=-1;
  405. { reset the unit or create a new program }
  406. { a unit compiled at command line must be inside the loaded_unit list }
  407. if (compile_level=1) then
  408. begin
  409. if assigned(current_module) then
  410. internalerror(200501158);
  411. current_module:=tppumodule.create(nil,filename,'',false);
  412. addloadedunit(current_module);
  413. main_module:=current_module;
  414. current_module.state:=ms_compile;
  415. end;
  416. if not(assigned(current_module) and
  417. (current_module.state in [ms_compile,ms_second_compile])) then
  418. internalerror(200212281);
  419. { Set the module to use for verbose }
  420. compiled_module:=current_module;
  421. SetCompileModule(current_module);
  422. Fillchar(aktfilepos,0,sizeof(aktfilepos));
  423. { Load current state from the init values }
  424. aktlocalswitches:=initlocalswitches;
  425. aktmoduleswitches:=initmoduleswitches;
  426. aktmodeswitches:=initmodeswitches;
  427. {$IFDEF Testvarsets}
  428. aktsetalloc:=initsetalloc;
  429. {$ENDIF}
  430. aktalignment:=initalignment;
  431. aktfputype:=initfputype;
  432. aktpackenum:=initpackenum;
  433. aktpackrecords:=0;
  434. aktoutputformat:=initoutputformat;
  435. set_target_asm(aktoutputformat);
  436. aktoptprocessor:=initoptprocessor;
  437. aktspecificoptprocessor:=initspecificoptprocessor;
  438. aktasmmode:=initasmmode;
  439. aktinterfacetype:=initinterfacetype;
  440. { startup scanner and load the first file }
  441. current_scanner:=tscannerfile.Create(filename);
  442. current_scanner.firstfile;
  443. current_module.scanner:=current_scanner;
  444. { init macros before anything in the file is parsed.}
  445. macrosymtablestack:= initialmacrosymtable;
  446. current_module.localmacrosymtable:= tmacrosymtable.create(false);
  447. current_module.localmacrosymtable.next:= initialmacrosymtable;
  448. macrosymtablestack:= current_module.localmacrosymtable;
  449. { read the first token }
  450. current_scanner.readtoken;
  451. { init code generator for a new module }
  452. init_module;
  453. { If the compile level > 1 we get a nice "unit expected" error
  454. message if we are trying to use a program as unit.}
  455. try
  456. if (token=_UNIT) or (compile_level>1) then
  457. begin
  458. current_module.is_unit:=true;
  459. proc_unit;
  460. end
  461. else
  462. proc_program(token=_LIBRARY);
  463. finally
  464. { restore old state }
  465. done_module;
  466. if assigned(current_module) then
  467. begin
  468. { module is now compiled }
  469. tppumodule(current_module).state:=ms_compiled;
  470. { free ppu }
  471. if assigned(tppumodule(current_module).ppufile) then
  472. begin
  473. tppumodule(current_module).ppufile.free;
  474. tppumodule(current_module).ppufile:=nil;
  475. end;
  476. { free scanner }
  477. if assigned(current_module.scanner) then
  478. begin
  479. if current_scanner=tscannerfile(current_module.scanner) then
  480. current_scanner:=nil;
  481. tscannerfile(current_module.scanner).free;
  482. current_module.scanner:=nil;
  483. end;
  484. end;
  485. if (compile_level>1) then
  486. begin
  487. with olddata^ do
  488. begin
  489. { restore scanner }
  490. c:=oldc;
  491. pattern:=oldpattern;
  492. orgpattern:=oldorgpattern;
  493. token:=oldtoken;
  494. idtoken:=oldidtoken;
  495. akttokenpos:=oldtokenpos;
  496. block_type:=old_block_type;
  497. { restore cg }
  498. parse_only:=oldparse_only;
  499. { restore asmlists }
  500. exprasmlist:=oldexprasmlist;
  501. datasegment:=olddatasegment;
  502. bsssegment:=oldbsssegment;
  503. codesegment:=oldcodesegment;
  504. consts:=oldconsts;
  505. debuglist:=olddebuglist;
  506. withdebuglist:=oldwithdebuglist;
  507. importssection:=oldimports;
  508. exportssection:=oldexports;
  509. resourcesection:=oldresource;
  510. rttilist:=oldrttilist;
  511. picdata:=oldpicdata;
  512. resourcestringlist:=oldresourcestringlist;
  513. { object data }
  514. ResourceStrings:=OldResourceStrings;
  515. objectlibrary:=oldobjectlibrary;
  516. { restore previous scanner }
  517. if assigned(old_compiled_module) then
  518. current_scanner:=tscannerfile(old_compiled_module.scanner)
  519. else
  520. current_scanner:=nil;
  521. if assigned(current_scanner) then
  522. parser_current_file:=current_scanner.inputfile.name^;
  523. { restore symtable state }
  524. refsymtable:=oldrefsymtable;
  525. symtablestack:=oldsymtablestack;
  526. macrosymtablestack:=oldmacrosymtablestack;
  527. defaultsymtablestack:=olddefaultsymtablestack;
  528. defaultmacrosymtablestack:=olddefaultmacrosymtablestack;
  529. aktdefproccall:=oldaktdefproccall;
  530. current_procinfo:=oldcurrent_procinfo;
  531. aktsourcecodepage:=oldsourcecodepage;
  532. aktlocalswitches:=oldaktlocalswitches;
  533. aktmoduleswitches:=oldaktmoduleswitches;
  534. aktalignment:=oldaktalignment;
  535. aktpackenum:=oldaktpackenum;
  536. aktpackrecords:=oldaktpackrecords;
  537. aktmaxfpuregisters:=oldaktmaxfpuregisters;
  538. aktoutputformat:=oldaktoutputformat;
  539. set_target_asm(aktoutputformat);
  540. aktoptprocessor:=oldaktoptprocessor;
  541. aktspecificoptprocessor:=oldaktspecificoptprocessor;
  542. aktfputype:=oldaktfputype;
  543. aktasmmode:=oldaktasmmode;
  544. aktinterfacetype:=oldaktinterfacetype;
  545. aktfilepos:=oldaktfilepos;
  546. aktmodeswitches:=oldaktmodeswitches;
  547. aktexceptblock:=0;
  548. exceptblockcounter:=0;
  549. {$ifdef GDB}
  550. dbx_counter:=store_dbx;
  551. {$endif GDB}
  552. end;
  553. end
  554. else
  555. begin
  556. { Shut down things when the last file is compiled succesfull }
  557. if (compile_level=1) and
  558. (status.errorcount=0) then
  559. begin
  560. parser_current_file:='';
  561. { Close script }
  562. if (not AsmRes.Empty) then
  563. begin
  564. Message1(exec_i_closing_script,AsmRes.Fn);
  565. AsmRes.WriteToDisk;
  566. end;
  567. { do not create browsers on errors !! }
  568. if status.errorcount=0 then
  569. begin
  570. {$ifdef BrowserLog}
  571. { Write Browser Log }
  572. if (cs_browser_log in aktglobalswitches) and
  573. (cs_browser in aktmoduleswitches) then
  574. begin
  575. if browserlog.elements_to_list.empty then
  576. begin
  577. Message1(parser_i_writing_browser_log,browserlog.Fname);
  578. WriteBrowserLog;
  579. end
  580. else
  581. browserlog.list_elements;
  582. end;
  583. { Write Browser Collections }
  584. do_extractsymbolinfo{$ifdef FPC}(){$endif};
  585. {$endif BrowserLog}
  586. end;
  587. end;
  588. end;
  589. dec(compile_level);
  590. compiled_module:=olddata^.old_compiled_module;
  591. dispose(olddata);
  592. end;
  593. end;
  594. end.
  595. {
  596. $Log$
  597. Revision 1.71 2005-01-26 16:23:28 peter
  598. * detect arithmetic overflows for constants at compile time
  599. * use try..except instead of setjmp
  600. Revision 1.70 2005/01/19 22:19:41 peter
  601. * unit mapping rewrite
  602. * new derefmap added
  603. Revision 1.69 2005/01/09 20:24:43 olle
  604. * rework of macro subsystem
  605. + exportable macros for mode macpas
  606. Revision 1.68 2004/10/25 15:38:41 peter
  607. * heap and heapsize removed
  608. * checkpointer fixes
  609. Revision 1.67 2004/10/15 09:14:17 mazen
  610. - remove $IFDEF DELPHI and related code
  611. - remove $IFDEF FPCPROCVAR and related code
  612. Revision 1.66 2004/06/20 08:55:30 florian
  613. * logs truncated
  614. Revision 1.65 2004/05/12 13:21:09 karoly
  615. * few small changes to add syscall support to M68k/Amiga target
  616. Revision 1.64 2004/04/28 15:19:03 florian
  617. + syscall directive support for MorphOS added
  618. Revision 1.63 2004/03/16 16:20:49 peter
  619. * reset current_module,current_procinfo so the destroy routines
  620. can't access their info anymore, because that can be already
  621. destroyed
  622. Revision 1.62 2004/03/14 20:08:37 peter
  623. * packrecords fixed for settings from $PACKRECORDS
  624. * default packrecords now uses value 0 and uses info from aligment
  625. structure only, initpackrecords removed
  626. Revision 1.61 2004/03/02 17:32:12 florian
  627. * make cycle fixed
  628. + pic support for darwin
  629. + support of importing vars from shared libs on darwin implemented
  630. }