pdecvar.pas 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Parses variable declarations. Used for var statement and record
  5. definitions
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit pdecvar;
  20. {$i fpcdefs.inc}
  21. interface
  22. procedure read_var_decs(is_record,is_object,is_threadvar:boolean);
  23. implementation
  24. uses
  25. { common }
  26. cutils,cclasses,
  27. { global }
  28. globtype,globals,tokens,verbose,
  29. systems,
  30. { symtable }
  31. symconst,symbase,symtype,symdef,symsym,symtable,defbase,fmodule,paramgr,
  32. { pass 1 }
  33. node,
  34. nmat,nadd,ncal,nset,ncnv,ninl,ncon,nld,nflw,
  35. { parser }
  36. scanner,
  37. pbase,pexpr,ptype,ptconst,pdecsub,
  38. { link }
  39. import
  40. {$ifdef Delphi}
  41. ,dmisc
  42. ,sysutils
  43. {$endif}
  44. ;
  45. const
  46. variantrecordlevel : longint = 0;
  47. procedure read_var_decs(is_record,is_object,is_threadvar:boolean);
  48. { reads the filed of a record into a }
  49. { symtablestack, if record=false }
  50. { variants are forbidden, so this procedure }
  51. { can be used to read object fields }
  52. { if absolute is true, ABSOLUTE and file }
  53. { types are allowed }
  54. { => the procedure is also used to read }
  55. { a sequence of variable declaration }
  56. procedure insert_syms(sc : tsinglelist;tt : ttype;is_threadvar : boolean);
  57. { inserts the symbols of sc in st with def as definition or sym as ttypesym, sc is disposed }
  58. var
  59. vs,vs2 : tvarsym;
  60. begin
  61. vs:=tvarsym(sc.first);
  62. while assigned(vs) do
  63. begin
  64. vs.vartype:=tt;
  65. if (sp_static in current_object_option) then
  66. include(vs.symoptions,sp_static);
  67. if is_threadvar then
  68. include(vs.varoptions,vo_is_thread_var);
  69. { static data fields are inserted in the globalsymtable }
  70. if (symtablestack.symtabletype=objectsymtable) and
  71. (sp_static in current_object_option) then
  72. begin
  73. vs2:=tvarsym.create('$'+lower(symtablestack.name^)+'_'+vs.name,tt);
  74. symtablestack.defowner.owner.insert(vs2);
  75. symtablestack.defowner.owner.insertvardata(vs2);
  76. end
  77. else
  78. begin
  79. { external data is not possible here }
  80. symtablestack.insertvardata(vs);
  81. end;
  82. vs:=tvarsym(vs.listnext);
  83. end;
  84. end;
  85. var
  86. sc : tsinglelist;
  87. old_block_type : tblock_type;
  88. declarepos,storetokenpos : tfileposinfo;
  89. oldsymtablestack : tsymtable;
  90. symdone : boolean;
  91. { to handle absolute }
  92. abssym : tabsolutesym;
  93. { c var }
  94. newtype : ttypesym;
  95. is_dll,
  96. is_gpc_name,is_cdecl,
  97. extern_var,export_var : boolean;
  98. old_current_object_option : tsymoptions;
  99. hs,sorg,C_name,dll_name : string;
  100. tt,casetype : ttype;
  101. { Delphi initialized vars }
  102. tconstsym : ttypedconstsym;
  103. { maxsize contains the max. size of a variant }
  104. { startvarrec contains the start of the variant part of a record }
  105. usedalign,
  106. maxsize,minalignment,maxalignment,startvarrecalign,startvarrecsize : longint;
  107. pt : tnode;
  108. vs : tvarsym;
  109. srsym : tsym;
  110. srsymtable : tsymtable;
  111. unionsymtable : tsymtable;
  112. offset : longint;
  113. uniondef : trecorddef;
  114. unionsym : tvarsym;
  115. uniontype : ttype;
  116. dummysymoptions : tsymoptions;
  117. begin
  118. old_current_object_option:=current_object_option;
  119. { all variables are public if not in a object declaration }
  120. if not is_object then
  121. current_object_option:=[sp_public];
  122. old_block_type:=block_type;
  123. block_type:=bt_type;
  124. is_gpc_name:=false;
  125. { Force an expected ID error message }
  126. if not (token in [_ID,_CASE,_END]) then
  127. consume(_ID);
  128. { read vars }
  129. sc:=tsinglelist.create;
  130. while (token=_ID) and
  131. not(is_object and (idtoken in [_PUBLIC,_PRIVATE,_PUBLISHED,_PROTECTED])) do
  132. begin
  133. sorg:=orgpattern;
  134. sc.reset;
  135. repeat
  136. vs:=tvarsym.create(orgpattern,generrortype);
  137. symtablestack.insert(vs);
  138. sc.insert(vs);
  139. consume(_ID);
  140. until not try_to_consume(_COMMA);
  141. consume(_COLON);
  142. if (m_gpc in aktmodeswitches) and
  143. not(is_record or is_object or is_threadvar) and
  144. (token=_ID) and (orgpattern='__asmname__') then
  145. begin
  146. consume(_ID);
  147. C_name:=get_stringconst;
  148. Is_gpc_name:=true;
  149. end;
  150. { this is needed for Delphi mode at least
  151. but should be OK for all modes !! (PM) }
  152. ignore_equal:=true;
  153. if is_record then
  154. begin
  155. { for records, don't search the recordsymtable for
  156. the symbols of the types }
  157. oldsymtablestack:=symtablestack;
  158. symtablestack:=symtablestack.next;
  159. read_type(tt,'');
  160. symtablestack:=oldsymtablestack;
  161. end
  162. else
  163. read_type(tt,'');
  164. { types that use init/final are not allowed in variant parts, but
  165. classes are allowed }
  166. if (variantrecordlevel>0) and
  167. (tt.def.needs_inittable and not is_class(tt.def)) then
  168. Message(parser_e_cant_use_inittable_here);
  169. ignore_equal:=false;
  170. symdone:=false;
  171. if is_gpc_name then
  172. begin
  173. vs:=tvarsym(sc.first);
  174. if assigned(vs.listnext) then
  175. Message(parser_e_absolute_only_one_var);
  176. vs.vartype:=tt;
  177. include(vs.varoptions,vo_is_C_var);
  178. vs.set_mangledname(target_info.Cprefix+sorg);
  179. include(vs.varoptions,vo_is_external);
  180. symdone:=true;
  181. end;
  182. { check for absolute }
  183. if not symdone and
  184. (idtoken=_ABSOLUTE) and not(is_record or is_object or is_threadvar) then
  185. begin
  186. consume(_ABSOLUTE);
  187. { only allowed for one var }
  188. vs:=tvarsym(sc.first);
  189. if assigned(vs.listnext) then
  190. Message(parser_e_absolute_only_one_var);
  191. { parse the rest }
  192. pt:=expr;
  193. if (pt.nodetype=stringconstn) or
  194. (is_constcharnode(pt)) then
  195. begin
  196. abssym:=tabsolutesym.create(vs.realname,tt);
  197. abssym.fileinfo:=vs.fileinfo;
  198. if pt.nodetype=stringconstn then
  199. hs:=strpas(tstringconstnode(pt).value_str)
  200. else
  201. hs:=chr(tordconstnode(pt).value);
  202. consume(token);
  203. abssym.abstyp:=toasm;
  204. abssym.asmname:=stringdup(hs);
  205. { replace the varsym }
  206. symtablestack.replace(vs,abssym);
  207. vs.free;
  208. end
  209. { variable }
  210. else if (pt.nodetype=loadn) then
  211. begin
  212. { we should check the result type of srsym }
  213. if not (tloadnode(pt).symtableentry.typ in [varsym,typedconstsym,funcretsym]) then
  214. Message(parser_e_absolute_only_to_var_or_const);
  215. abssym:=tabsolutesym.create(vs.realname,tt);
  216. abssym.fileinfo:=vs.fileinfo;
  217. abssym.abstyp:=tovar;
  218. abssym.ref:=tstoredsym(tloadnode(pt).symtableentry);
  219. symtablestack.replace(vs,abssym);
  220. vs.free;
  221. { the variable cannot be put into a register
  222. if the size definition is not the same.
  223. }
  224. if tloadnode(pt).symtableentry.typ = varsym then
  225. begin
  226. if abssym.vartype.def <>
  227. tvarsym(tloadnode(pt).symtableentry).vartype.def then
  228. tvarsym(tloadnode(pt).symtableentry).varoptions:=
  229. tvarsym(tloadnode(pt).symtableentry).varoptions-[vo_regable,vo_fpuregable]
  230. end;
  231. end
  232. { funcret }
  233. else if (pt.nodetype=funcretn) then
  234. begin
  235. abssym:=tabsolutesym.create(vs.realname,tt);
  236. abssym.fileinfo:=vs.fileinfo;
  237. abssym.abstyp:=tovar;
  238. abssym.ref:=tstoredsym(tfuncretnode(pt).funcretsym);
  239. symtablestack.replace(vs,abssym);
  240. vs.free;
  241. end
  242. { address }
  243. else if is_constintnode(pt) and
  244. ((target_info.system=system_i386_go32v2) or
  245. (m_objfpc in aktmodeswitches) or
  246. (m_delphi in aktmodeswitches)) then
  247. begin
  248. abssym:=tabsolutesym.create(vs.realname,tt);
  249. abssym.fileinfo:=vs.fileinfo;
  250. abssym.abstyp:=toaddr;
  251. abssym.absseg:=false;
  252. abssym.address:=tordconstnode(pt).value;
  253. if (token=_COLON) and
  254. (target_info.system=system_i386_go32v2) then
  255. begin
  256. consume(token);
  257. pt.free;
  258. pt:=expr;
  259. if is_constintnode(pt) then
  260. begin
  261. abssym.address:=abssym.address shl 4+tordconstnode(pt).value;
  262. abssym.absseg:=true;
  263. end
  264. else
  265. Message(parser_e_absolute_only_to_var_or_const);
  266. end;
  267. symtablestack.replace(vs,abssym);
  268. vs.free;
  269. end
  270. else
  271. Message(parser_e_absolute_only_to_var_or_const);
  272. pt.free;
  273. symdone:=true;
  274. end;
  275. { Handling of Delphi typed const = initialized vars ! }
  276. { When should this be rejected ?
  277. - in parasymtable
  278. - in record or object
  279. - ... (PM) }
  280. if (token=_EQUAL) and
  281. not(m_tp7 in aktmodeswitches) and
  282. not(symtablestack.symtabletype in [parasymtable]) and
  283. not is_record and
  284. not is_object then
  285. begin
  286. vs:=tvarsym(sc.first);
  287. if assigned(vs.listnext) then
  288. Message(parser_e_initialized_only_one_var);
  289. tconstsym:=ttypedconstsym.createtype(vs.realname,tt,true);
  290. tconstsym.fileinfo:=vs.fileinfo;
  291. symtablestack.replace(vs,tconstsym);
  292. vs.free;
  293. symtablestack.insertconstdata(tconstsym);
  294. consume(_EQUAL);
  295. readtypedconst(tt,tconstsym,true);
  296. symdone:=true;
  297. end;
  298. { hint directive }
  299. {$ifdef fpc}
  300. {$warning hintdirective not stored in syms}
  301. {$endif}
  302. dummysymoptions:=[];
  303. try_consume_hintdirective(dummysymoptions);
  304. { for a record there doesn't need to be a ; before the END or ) }
  305. if not((is_record or is_object) and (token in [_END,_RKLAMMER])) then
  306. consume(_SEMICOLON);
  307. { procvar handling }
  308. if (tt.def.deftype=procvardef) and (tt.def.typesym=nil) then
  309. begin
  310. newtype:=ttypesym.create('unnamed',tt);
  311. parse_var_proc_directives(tsym(newtype));
  312. paramanager.create_param_loc_info(tabstractprocdef(tt.def));
  313. newtype.restype.def:=nil;
  314. tt.def.typesym:=nil;
  315. newtype.free;
  316. end;
  317. { Check for variable directives }
  318. if not symdone and (token=_ID) then
  319. begin
  320. { Check for C Variable declarations }
  321. if (m_cvar_support in aktmodeswitches) and
  322. not(is_record or is_object or is_threadvar) and
  323. (idtoken in [_EXPORT,_EXTERNAL,_PUBLIC,_CVAR]) then
  324. begin
  325. { only allowed for one var }
  326. vs:=tvarsym(sc.first);
  327. if assigned(vs.listnext) then
  328. Message(parser_e_absolute_only_one_var);
  329. { set type of the var }
  330. vs.vartype:=tt;
  331. { defaults }
  332. is_dll:=false;
  333. is_cdecl:=false;
  334. extern_var:=false;
  335. export_var:=false;
  336. C_name:=sorg;
  337. { cdecl }
  338. if idtoken=_CVAR then
  339. begin
  340. consume(_CVAR);
  341. consume(_SEMICOLON);
  342. is_cdecl:=true;
  343. C_name:=target_info.Cprefix+sorg;
  344. end;
  345. { external }
  346. if idtoken=_EXTERNAL then
  347. begin
  348. consume(_EXTERNAL);
  349. extern_var:=true;
  350. end;
  351. { export }
  352. if idtoken in [_EXPORT,_PUBLIC] then
  353. begin
  354. consume(_ID);
  355. if extern_var or
  356. (symtablestack.symtabletype in [parasymtable,localsymtable]) then
  357. Message(parser_e_not_external_and_export)
  358. else
  359. export_var:=true;
  360. end;
  361. { external and export need a name after when no cdecl is used }
  362. if not is_cdecl then
  363. begin
  364. { dll name ? }
  365. if (extern_var) and (idtoken<>_NAME) then
  366. begin
  367. is_dll:=true;
  368. dll_name:=get_stringconst;
  369. end;
  370. consume(_NAME);
  371. C_name:=get_stringconst;
  372. end;
  373. { consume the ; when export or external is used }
  374. if extern_var or export_var then
  375. consume(_SEMICOLON);
  376. { set some vars options }
  377. if is_dll then
  378. include(vs.varoptions,vo_is_dll_var)
  379. else
  380. include(vs.varoptions,vo_is_C_var);
  381. vs.set_mangledname(C_Name);
  382. if export_var then
  383. begin
  384. inc(vs.refs);
  385. include(vs.varoptions,vo_is_exported);
  386. end;
  387. if extern_var then
  388. include(vs.varoptions,vo_is_external);
  389. { insert in the datasegment when it is not external }
  390. if not extern_var then
  391. symtablestack.insertvardata(vs);
  392. { now we can insert it in the import lib if its a dll, or
  393. add it to the externals }
  394. if extern_var then
  395. begin
  396. if is_dll then
  397. begin
  398. if not(current_module.uses_imports) then
  399. begin
  400. current_module.uses_imports:=true;
  401. importlib.preparelib(current_module.modulename^);
  402. end;
  403. importlib.importvariable(vs,C_name,dll_name);
  404. end
  405. else
  406. if target_info.DllScanSupported then
  407. current_module.Externals.insert(tExternalsItem.create(vs.mangledname));
  408. end;
  409. symdone:=true;
  410. end
  411. else
  412. if (is_object) and (cs_static_keyword in aktmoduleswitches) and (idtoken=_STATIC) then
  413. begin
  414. include(current_object_option,sp_static);
  415. insert_syms(sc,tt,false);
  416. exclude(current_object_option,sp_static);
  417. consume(_STATIC);
  418. consume(_SEMICOLON);
  419. symdone:=true;
  420. end;
  421. end;
  422. { insert it in the symtable, if not done yet }
  423. if not symdone then
  424. begin
  425. { save object option, because we can turn of the sp_published }
  426. if (sp_published in current_object_option) and
  427. not(is_class(tt.def)) then
  428. begin
  429. Message(parser_e_cant_publish_that);
  430. exclude(current_object_option,sp_published);
  431. end
  432. else
  433. if (sp_published in current_object_option) and
  434. not(oo_can_have_published in tobjectdef(tt.def).objectoptions) then
  435. begin
  436. Message(parser_e_only_publishable_classes_can__be_published);
  437. exclude(current_object_option,sp_published);
  438. end;
  439. insert_syms(sc,tt,is_threadvar);
  440. current_object_option:=old_current_object_option;
  441. end;
  442. end;
  443. { Check for Case }
  444. if is_record and (token=_CASE) then
  445. begin
  446. maxsize:=0;
  447. maxalignment:=0;
  448. consume(_CASE);
  449. sorg:=orgpattern;
  450. hs:=pattern;
  451. searchsym(hs,srsym,srsymtable);
  452. { may be only a type: }
  453. if assigned(srsym) and (srsym.typ in [typesym,unitsym]) then
  454. begin
  455. { for records, don't search the recordsymtable for
  456. the symbols of the types }
  457. oldsymtablestack:=symtablestack;
  458. symtablestack:=symtablestack.next;
  459. read_type(casetype,'');
  460. symtablestack:=oldsymtablestack;
  461. end
  462. else
  463. begin
  464. consume(_ID);
  465. consume(_COLON);
  466. { for records, don't search the recordsymtable for
  467. the symbols of the types }
  468. oldsymtablestack:=symtablestack;
  469. symtablestack:=symtablestack.next;
  470. read_type(casetype,'');
  471. symtablestack:=oldsymtablestack;
  472. vs:=tvarsym.create(sorg,casetype);
  473. symtablestack.insert(vs);
  474. symtablestack.insertvardata(vs);
  475. end;
  476. if not(is_ordinal(casetype.def)) or is_64bitint(casetype.def) then
  477. Message(type_e_ordinal_expr_expected);
  478. consume(_OF);
  479. UnionSymtable:=trecordsymtable.create;
  480. Unionsymtable.next:=symtablestack;
  481. registerdef:=false;
  482. UnionDef:=trecorddef.create(unionsymtable);
  483. uniondef.isunion:=true;
  484. registerdef:=true;
  485. symtablestack:=UnionSymtable;
  486. startvarrecsize:=symtablestack.datasize;
  487. startvarrecalign:=symtablestack.dataalignment;
  488. repeat
  489. repeat
  490. pt:=comp_expr(true);
  491. if not(pt.nodetype=ordconstn) then
  492. Message(cg_e_illegal_expression);
  493. pt.free;
  494. if token=_COMMA then
  495. consume(_COMMA)
  496. else
  497. break;
  498. until false;
  499. consume(_COLON);
  500. { read the vars }
  501. consume(_LKLAMMER);
  502. inc(variantrecordlevel);
  503. if token<>_RKLAMMER then
  504. read_var_decs(true,false,false);
  505. dec(variantrecordlevel);
  506. consume(_RKLAMMER);
  507. { calculates maximal variant size }
  508. maxsize:=max(maxsize,symtablestack.datasize);
  509. maxalignment:=max(maxalignment,symtablestack.dataalignment);
  510. { the items of the next variant are overlayed }
  511. symtablestack.datasize:=startvarrecsize;
  512. symtablestack.dataalignment:=startvarrecalign;
  513. if (token<>_END) and (token<>_RKLAMMER) then
  514. consume(_SEMICOLON)
  515. else
  516. break;
  517. until (token=_END) or (token=_RKLAMMER);
  518. { at last set the record size to that of the biggest variant }
  519. symtablestack.datasize:=maxsize;
  520. symtablestack.dataalignment:=maxalignment;
  521. uniontype.def:=uniondef;
  522. uniontype.sym:=nil;
  523. UnionSym:=tvarsym.create('case',uniontype);
  524. symtablestack:=symtablestack.next;
  525. { we do NOT call symtablestack.insert
  526. on purpose PM }
  527. if aktalignment.recordalignmax=-1 then
  528. begin
  529. {$ifdef i386}
  530. if maxalignment>2 then
  531. minalignment:=4
  532. else if maxalignment>1 then
  533. minalignment:=2
  534. else
  535. minalignment:=1;
  536. {$else}
  537. {$ifdef m68k}
  538. minalignment:=2;
  539. {$endif}
  540. minalignment:=1;
  541. {$endif}
  542. end
  543. else
  544. minalignment:=maxalignment;
  545. usedalign:=used_align(maxalignment,minalignment,maxalignment);
  546. offset:=align(symtablestack.datasize,usedalign);
  547. symtablestack.datasize:=offset+unionsymtable.datasize;
  548. if maxalignment>symtablestack.dataalignment then
  549. symtablestack.dataalignment:=maxalignment;
  550. trecordsymtable(Unionsymtable).Insert_in(symtablestack,offset);
  551. Unionsym.owner:=nil;
  552. unionsym.free;
  553. uniondef.free;
  554. end;
  555. block_type:=old_block_type;
  556. current_object_option:=old_current_object_option;
  557. { free the list }
  558. sc.free;
  559. end;
  560. end.
  561. {
  562. $Log$
  563. Revision 1.37 2002-10-05 15:18:43 carl
  564. * fix heap leaks
  565. Revision 1.36 2002/10/05 12:43:26 carl
  566. * fixes for Delphi 6 compilation
  567. (warning : Some features do not work under Delphi)
  568. Revision 1.35 2002/10/04 20:53:05 carl
  569. * bugfix of crash
  570. Revision 1.34 2002/10/03 21:22:01 carl
  571. * don't make the vars regable if they are absolute and their definitions
  572. are not the same.
  573. Revision 1.33 2002/09/16 18:08:45 peter
  574. * fix setting of sp_static
  575. Revision 1.32 2002/09/09 17:34:15 peter
  576. * tdicationary.replace added to replace and item in a dictionary. This
  577. is only allowed for the same name
  578. * varsyms are inserted in symtable before the types are parsed. This
  579. fixes the long standing "var longint : longint" bug
  580. - consume_idlist and idstringlist removed. The loops are inserted
  581. at the callers place and uses the symtable for duplicate id checking
  582. Revision 1.31 2002/08/25 19:25:20 peter
  583. * sym.insert_in_data removed
  584. * symtable.insertvardata/insertconstdata added
  585. * removed insert_in_data call from symtable.insert, it needs to be
  586. called separatly. This allows to deref the address calculation
  587. * procedures now calculate the parast addresses after the procedure
  588. directives are parsed. This fixes the cdecl parast problem
  589. * push_addr_param has an extra argument that specifies if cdecl is used
  590. or not
  591. Revision 1.30 2002/07/29 21:23:44 florian
  592. * more fixes for the ppc
  593. + wrappers for the tcnvnode.first_* stuff introduced
  594. Revision 1.29 2002/07/26 21:15:40 florian
  595. * rewrote the system handling
  596. Revision 1.28 2002/07/20 11:57:55 florian
  597. * types.pas renamed to defbase.pas because D6 contains a types
  598. unit so this would conflicts if D6 programms are compiled
  599. + Willamette/SSE2 instructions to assembler added
  600. Revision 1.27 2002/06/10 13:41:26 jonas
  601. * fixed bug 1985
  602. Revision 1.26 2002/05/18 13:34:12 peter
  603. * readded missing revisions
  604. Revision 1.25 2002/05/16 19:46:43 carl
  605. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  606. + try to fix temp allocation (still in ifdef)
  607. + generic constructor calls
  608. + start of tassembler / tmodulebase class cleanup
  609. Revision 1.23 2002/04/21 18:57:24 peter
  610. * fixed memleaks when file can't be opened
  611. }