pdecobj.pas 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Does object types for Free Pascal
  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 pdecobj;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. globtype,symtype,symdef;
  23. { parses a object declaration }
  24. function object_dec(const n : stringid;fd : tobjectdef) : tdef;
  25. implementation
  26. uses
  27. cutils,cclasses,
  28. globals,verbose,systems,tokens,
  29. symconst,symbase,symsym,symtable,defutil,defcmp,
  30. node,nld,nmem,ncon,ncnv,ncal,pass_1,
  31. scanner,
  32. pbase,pexpr,pdecsub,pdecvar,ptype
  33. {$ifdef delphi}
  34. ,dmisc
  35. ,sysutils
  36. {$endif}
  37. ;
  38. const
  39. { Please leave this here, this module should NOT use
  40. these variables.
  41. Declaring it as string here results in an error when compiling (PFV) }
  42. current_procinfo = 'error';
  43. function object_dec(const n : stringid;fd : tobjectdef) : tdef;
  44. { this function parses an object or class declaration }
  45. var
  46. there_is_a_destructor : boolean;
  47. classtype : tobjectdeftype;
  48. childof : tobjectdef;
  49. aktclass : tobjectdef;
  50. function constructor_head:tprocdef;
  51. var
  52. pd : tprocdef;
  53. begin
  54. consume(_CONSTRUCTOR);
  55. { must be at same level as in implementation }
  56. parse_proc_head(aktclass,potype_constructor,pd);
  57. if not assigned(pd) then
  58. begin
  59. consume(_SEMICOLON);
  60. exit;
  61. end;
  62. if (cs_constructor_name in aktglobalswitches) and
  63. (pd.procsym.name<>'INIT') then
  64. Message(parser_e_constructorname_must_be_init);
  65. consume(_SEMICOLON);
  66. include(aktclass.objectoptions,oo_has_constructor);
  67. { Set return type, class constructors return the
  68. created instance, object constructors return boolean }
  69. if is_class(pd._class) then
  70. pd.rettype.setdef(pd._class)
  71. else
  72. pd.rettype:=booltype;
  73. constructor_head:=pd;
  74. end;
  75. procedure property_dec;
  76. var
  77. p : tpropertysym;
  78. begin
  79. { check for a class }
  80. if not((is_class_or_interface(aktclass)) or
  81. ((m_delphi in aktmodeswitches) and (is_object(aktclass)))) then
  82. Message(parser_e_syntax_error);
  83. consume(_PROPERTY);
  84. p:=read_property_dec(aktclass);
  85. consume(_SEMICOLON);
  86. if try_to_consume(_DEFAULT) then
  87. begin
  88. include(p.propoptions,ppo_defaultproperty);
  89. if not(ppo_hasparameters in p.propoptions) then
  90. message(parser_e_property_need_paras);
  91. consume(_SEMICOLON);
  92. end;
  93. end;
  94. function destructor_head:tprocdef;
  95. var
  96. pd : tprocdef;
  97. begin
  98. consume(_DESTRUCTOR);
  99. parse_proc_head(aktclass,potype_destructor,pd);
  100. if not assigned(pd) then
  101. begin
  102. consume(_SEMICOLON);
  103. exit;
  104. end;
  105. if (cs_constructor_name in aktglobalswitches) and
  106. (pd.procsym.name<>'DONE') then
  107. Message(parser_e_destructorname_must_be_done);
  108. if not(pd.maxparacount=0) and
  109. (m_fpc in aktmodeswitches) then
  110. Message(parser_e_no_paras_for_destructor);
  111. consume(_SEMICOLON);
  112. include(aktclass.objectoptions,oo_has_destructor);
  113. { no return value }
  114. pd.rettype:=voidtype;
  115. destructor_head:=pd;
  116. end;
  117. var
  118. hs : string;
  119. pcrd : tclassrefdef;
  120. tt : ttype;
  121. old_object_option : tsymoptions;
  122. oldparse_only : boolean;
  123. storetypecanbeforward : boolean;
  124. procedure setclassattributes;
  125. begin
  126. { publishable }
  127. if classtype in [odt_interfacecom,odt_class] then
  128. begin
  129. aktclass.objecttype:=classtype;
  130. if (cs_generate_rtti in aktlocalswitches) or
  131. (assigned(aktclass.childof) and
  132. (oo_can_have_published in aktclass.childof.objectoptions)) then
  133. begin
  134. include(aktclass.objectoptions,oo_can_have_published);
  135. { in "publishable" classes the default access type is published }
  136. current_object_option:=[sp_published];
  137. end;
  138. end;
  139. end;
  140. procedure setclassparent;
  141. begin
  142. if assigned(fd) then
  143. aktclass:=fd
  144. else
  145. aktclass:=tobjectdef.create(classtype,n,nil);
  146. { is the current class tobject? }
  147. { so you could define your own tobject }
  148. if (cs_compilesystem in aktmoduleswitches) and (classtype=odt_class) and (upper(n)='TOBJECT') then
  149. class_tobject:=aktclass
  150. else if (cs_compilesystem in aktmoduleswitches) and (classtype=odt_interfacecom) and (upper(n)='IUNKNOWN') then
  151. interface_iunknown:=aktclass
  152. else
  153. begin
  154. case classtype of
  155. odt_class:
  156. childof:=class_tobject;
  157. odt_interfacecom:
  158. childof:=interface_iunknown;
  159. end;
  160. if (oo_is_forward in childof.objectoptions) then
  161. Message1(parser_e_forward_declaration_must_be_resolved,childof.objrealname^);
  162. aktclass.set_parent(childof);
  163. end;
  164. end;
  165. procedure setinterfacemethodoptions;
  166. var
  167. i: longint;
  168. defs: TIndexArray;
  169. pd: tprocdef;
  170. begin
  171. include(aktclass.objectoptions,oo_has_virtual);
  172. defs:=aktclass.symtable.defindex;
  173. for i:=1 to defs.count do
  174. begin
  175. pd:=tprocdef(defs.search(i));
  176. if pd.deftype=procdef then
  177. begin
  178. pd.extnumber:=aktclass.lastvtableindex;
  179. inc(aktclass.lastvtableindex);
  180. include(pd.procoptions,po_virtualmethod);
  181. pd.forwarddef:=false;
  182. end;
  183. end;
  184. end;
  185. function readobjecttype : boolean;
  186. begin
  187. readobjecttype:=true;
  188. { distinguish classes and objects }
  189. case token of
  190. _OBJECT:
  191. begin
  192. classtype:=odt_object;
  193. consume(_OBJECT)
  194. end;
  195. _CPPCLASS:
  196. begin
  197. classtype:=odt_cppclass;
  198. consume(_CPPCLASS);
  199. end;
  200. _INTERFACE:
  201. begin
  202. { need extra check here since interface is a keyword
  203. in all pascal modes }
  204. if not(m_class in aktmodeswitches) then
  205. Message(parser_f_need_objfpc_or_delphi_mode);
  206. if aktinterfacetype=it_interfacecom then
  207. classtype:=odt_interfacecom
  208. else {it_interfacecorba}
  209. classtype:=odt_interfacecorba;
  210. consume(_INTERFACE);
  211. { forward declaration }
  212. if not(assigned(fd)) and (token=_SEMICOLON) then
  213. begin
  214. { also anonym objects aren't allow (o : object a : longint; end;) }
  215. if n='' then
  216. Message(parser_f_no_anonym_objects);
  217. aktclass:=tobjectdef.create(classtype,n,nil);
  218. if (cs_compilesystem in aktmoduleswitches) and
  219. (classtype=odt_interfacecom) and (upper(n)='IUNKNOWN') then
  220. interface_iunknown:=aktclass;
  221. include(aktclass.objectoptions,oo_is_forward);
  222. object_dec:=aktclass;
  223. typecanbeforward:=storetypecanbeforward;
  224. readobjecttype:=false;
  225. exit;
  226. end;
  227. end;
  228. _CLASS:
  229. begin
  230. classtype:=odt_class;
  231. consume(_CLASS);
  232. if not(assigned(fd)) and
  233. (token=_OF) and
  234. { Delphi only allows class of in type blocks.
  235. Note that when parsing the type of a variable declaration
  236. the blocktype is bt_type so the check for typecanbeforward
  237. is also necessary (PFV) }
  238. (((block_type=bt_type) and typecanbeforward) or
  239. not(m_delphi in aktmodeswitches)) then
  240. begin
  241. { a hack, but it's easy to handle }
  242. { class reference type }
  243. consume(_OF);
  244. single_type(tt,hs,typecanbeforward);
  245. { accept hp1, if is a forward def or a class }
  246. if (tt.def.deftype=forwarddef) or
  247. is_class(tt.def) then
  248. begin
  249. pcrd:=tclassrefdef.create(tt);
  250. object_dec:=pcrd;
  251. end
  252. else
  253. begin
  254. object_dec:=generrortype.def;
  255. Message1(type_e_class_type_expected,generrortype.def.typename);
  256. end;
  257. typecanbeforward:=storetypecanbeforward;
  258. readobjecttype:=false;
  259. exit;
  260. end
  261. { forward class }
  262. else if not(assigned(fd)) and (token=_SEMICOLON) then
  263. begin
  264. { also anonym objects aren't allow (o : object a : longint; end;) }
  265. if n='' then
  266. Message(parser_f_no_anonym_objects);
  267. aktclass:=tobjectdef.create(odt_class,n,nil);
  268. if (cs_compilesystem in aktmoduleswitches) and (upper(n)='TOBJECT') then
  269. class_tobject:=aktclass;
  270. aktclass.objecttype:=odt_class;
  271. include(aktclass.objectoptions,oo_is_forward);
  272. { all classes must have a vmt !! at offset zero }
  273. if not(oo_has_vmt in aktclass.objectoptions) then
  274. aktclass.insertvmt;
  275. object_dec:=aktclass;
  276. typecanbeforward:=storetypecanbeforward;
  277. readobjecttype:=false;
  278. exit;
  279. end;
  280. end;
  281. else
  282. begin
  283. classtype:=odt_class; { this is error but try to recover }
  284. consume(_OBJECT);
  285. end;
  286. end;
  287. end;
  288. procedure handleimplementedinterface(implintf : tobjectdef);
  289. begin
  290. if not is_interface(implintf) then
  291. begin
  292. Message1(type_e_interface_type_expected,implintf.typename);
  293. exit;
  294. end;
  295. if aktclass.implementedinterfaces.searchintf(implintf)<>-1 then
  296. Message1(sym_e_duplicate_id,implintf.name)
  297. else
  298. begin
  299. { allocate and prepare the GUID only if the class
  300. implements some interfaces.
  301. }
  302. if aktclass.implementedinterfaces.count = 0 then
  303. aktclass.prepareguid;
  304. aktclass.implementedinterfaces.addintf(implintf);
  305. end;
  306. end;
  307. procedure readimplementedinterfaces;
  308. var
  309. tt : ttype;
  310. begin
  311. while try_to_consume(_COMMA) do
  312. begin
  313. id_type(tt,pattern,false);
  314. if (tt.def.deftype<>objectdef) then
  315. begin
  316. Message1(type_e_interface_type_expected,tt.def.typename);
  317. continue;
  318. end;
  319. handleimplementedinterface(tobjectdef(tt.def));
  320. end;
  321. end;
  322. procedure readinterfaceiid;
  323. var
  324. p : tnode;
  325. valid : boolean;
  326. begin
  327. p:=comp_expr(true);
  328. if p.nodetype=stringconstn then
  329. begin
  330. stringdispose(aktclass.iidstr);
  331. aktclass.iidstr:=stringdup(strpas(tstringconstnode(p).value_str)); { or upper? }
  332. p.free;
  333. valid:=string2guid(aktclass.iidstr^,aktclass.iidguid^);
  334. if (classtype=odt_interfacecom) and not assigned(aktclass.iidguid) and not valid then
  335. Message(parser_e_improper_guid_syntax);
  336. end
  337. else
  338. begin
  339. p.free;
  340. Message(parser_e_illegal_expression);
  341. end;
  342. end;
  343. procedure readparentclasses;
  344. var
  345. hp : tobjectdef;
  346. begin
  347. hp:=nil;
  348. { reads the parent class }
  349. if try_to_consume(_LKLAMMER) then
  350. begin
  351. id_type(tt,pattern,false);
  352. childof:=tobjectdef(tt.def);
  353. if (not assigned(childof)) or
  354. (childof.deftype<>objectdef) then
  355. begin
  356. if assigned(childof) then
  357. Message1(type_e_class_type_expected,childof.typename);
  358. childof:=nil;
  359. aktclass:=tobjectdef.create(classtype,n,nil);
  360. end
  361. else
  362. begin
  363. { a mix of class, interfaces, objects and cppclasses
  364. isn't allowed }
  365. case classtype of
  366. odt_class:
  367. if not(is_class(childof)) then
  368. begin
  369. if is_interface(childof) then
  370. begin
  371. { we insert the interface after the child
  372. is set, see below
  373. }
  374. hp:=childof;
  375. childof:=class_tobject;
  376. end
  377. else
  378. Message(parser_e_mix_of_classes_and_objects);
  379. end;
  380. odt_interfacecorba,
  381. odt_interfacecom:
  382. if not(is_interface(childof)) then
  383. Message(parser_e_mix_of_classes_and_objects);
  384. odt_cppclass:
  385. if not(is_cppclass(childof)) then
  386. Message(parser_e_mix_of_classes_and_objects);
  387. odt_object:
  388. if not(is_object(childof)) then
  389. Message(parser_e_mix_of_classes_and_objects);
  390. end;
  391. { the forward of the child must be resolved to get
  392. correct field addresses }
  393. if assigned(fd) then
  394. begin
  395. if (oo_is_forward in childof.objectoptions) then
  396. Message1(parser_e_forward_declaration_must_be_resolved,childof.objrealname^);
  397. aktclass:=fd;
  398. { we must inherit several options !!
  399. this was missing !!
  400. all is now done in set_parent
  401. including symtable datasize setting PM }
  402. fd.set_parent(childof);
  403. end
  404. else
  405. aktclass:=tobjectdef.create(classtype,n,childof);
  406. if aktclass.objecttype=odt_class then
  407. begin
  408. if assigned(hp) then
  409. handleimplementedinterface(hp);
  410. readimplementedinterfaces;
  411. end;
  412. end;
  413. consume(_RKLAMMER);
  414. end
  415. { if no parent class, then a class get tobject as parent }
  416. else if classtype in [odt_class,odt_interfacecom] then
  417. setclassparent
  418. else
  419. aktclass:=tobjectdef.create(classtype,n,nil);
  420. { read GUID }
  421. if (classtype in [odt_interfacecom,odt_interfacecorba]) and
  422. try_to_consume(_LECKKLAMMER) then
  423. begin
  424. readinterfaceiid;
  425. consume(_RECKKLAMMER);
  426. end;
  427. end;
  428. procedure chkcpp(pd:tprocdef);
  429. begin
  430. if is_cppclass(pd._class) then
  431. begin
  432. pd.proccalloption:=pocall_cppdecl;
  433. pd.setmangledname(target_info.Cprefix+pd.cplusplusmangledname);
  434. end;
  435. end;
  436. var
  437. pd : tprocdef;
  438. begin
  439. old_object_option:=current_object_option;
  440. { forward is resolved }
  441. if assigned(fd) then
  442. exclude(fd.objectoptions,oo_is_forward);
  443. { objects and class types can't be declared local }
  444. if not(symtablestack.symtabletype in [globalsymtable,staticsymtable]) then
  445. Message(parser_e_no_local_objects);
  446. storetypecanbeforward:=typecanbeforward;
  447. { for tp7 don't allow forward types }
  448. if (m_tp7 in aktmodeswitches) then
  449. typecanbeforward:=false;
  450. if not(readobjecttype) then
  451. exit;
  452. { also anonym objects aren't allow (o : object a : longint; end;) }
  453. if n='' then
  454. Message(parser_f_no_anonym_objects);
  455. { read list of parent classes }
  456. readparentclasses;
  457. { default access is public }
  458. there_is_a_destructor:=false;
  459. current_object_option:=[sp_public];
  460. { set class flags and inherits published }
  461. setclassattributes;
  462. aktobjectdef:=aktclass;
  463. aktclass.symtable.next:=symtablestack;
  464. symtablestack:=aktclass.symtable;
  465. testcurobject:=1;
  466. curobjectname:=Upper(n);
  467. { short class declaration ? }
  468. if (classtype<>odt_class) or (token<>_SEMICOLON) then
  469. begin
  470. { Parse componenten }
  471. repeat
  472. case token of
  473. _ID :
  474. begin
  475. case idtoken of
  476. _PRIVATE :
  477. begin
  478. if is_interface(aktclass) then
  479. Message(parser_e_no_access_specifier_in_interfaces);
  480. consume(_PRIVATE);
  481. current_object_option:=[sp_private];
  482. include(aktclass.objectoptions,oo_has_private);
  483. end;
  484. _PROTECTED :
  485. begin
  486. if is_interface(aktclass) then
  487. Message(parser_e_no_access_specifier_in_interfaces);
  488. consume(_PROTECTED);
  489. current_object_option:=[sp_protected];
  490. include(aktclass.objectoptions,oo_has_protected);
  491. end;
  492. _PUBLIC :
  493. begin
  494. if is_interface(aktclass) then
  495. Message(parser_e_no_access_specifier_in_interfaces);
  496. consume(_PUBLIC);
  497. current_object_option:=[sp_public];
  498. end;
  499. _PUBLISHED :
  500. begin
  501. { we've to check for a pushlished section in non- }
  502. { publishable classes later, if a real declaration }
  503. { this is the way, delphi does it }
  504. if is_interface(aktclass) then
  505. Message(parser_e_no_access_specifier_in_interfaces);
  506. consume(_PUBLISHED);
  507. current_object_option:=[sp_published];
  508. end;
  509. else
  510. begin
  511. if is_interface(aktclass) then
  512. Message(parser_e_no_vars_in_interfaces);
  513. if (sp_published in current_object_option) and
  514. not(oo_can_have_published in aktclass.objectoptions) then
  515. Message(parser_e_cant_have_published);
  516. read_var_decs(false,true,false);
  517. end;
  518. end;
  519. end;
  520. _PROPERTY :
  521. begin
  522. property_dec;
  523. end;
  524. _PROCEDURE,
  525. _FUNCTION,
  526. _CLASS :
  527. begin
  528. if (sp_published in current_object_option) and
  529. not(oo_can_have_published in aktclass.objectoptions) then
  530. Message(parser_e_cant_have_published);
  531. oldparse_only:=parse_only;
  532. parse_only:=true;
  533. pd:=parse_proc_dec(aktclass);
  534. { this is for error recovery as well as forward }
  535. { interface mappings, i.e. mapping to a method }
  536. { which isn't declared yet }
  537. if assigned(pd) then
  538. begin
  539. parse_object_proc_directives(pd);
  540. handle_calling_convention(pd);
  541. calc_parast(pd);
  542. { add definition to procsym }
  543. proc_add_definition(pd);
  544. { add procdef options to objectdef options }
  545. if (po_msgint in pd.procoptions) then
  546. include(aktclass.objectoptions,oo_has_msgint);
  547. if (po_msgstr in pd.procoptions) then
  548. include(aktclass.objectoptions,oo_has_msgstr);
  549. if (po_virtualmethod in pd.procoptions) then
  550. include(aktclass.objectoptions,oo_has_virtual);
  551. chkcpp(pd);
  552. end;
  553. parse_only:=oldparse_only;
  554. end;
  555. _CONSTRUCTOR :
  556. begin
  557. if (sp_published in current_object_option) and
  558. not(oo_can_have_published in aktclass.objectoptions) then
  559. Message(parser_e_cant_have_published);
  560. if not(sp_public in current_object_option) then
  561. Message(parser_w_constructor_should_be_public);
  562. if is_interface(aktclass) then
  563. Message(parser_e_no_con_des_in_interfaces);
  564. oldparse_only:=parse_only;
  565. parse_only:=true;
  566. pd:=constructor_head;
  567. parse_object_proc_directives(pd);
  568. handle_calling_convention(pd);
  569. calc_parast(pd);
  570. { add definition to procsym }
  571. proc_add_definition(pd);
  572. { add procdef options to objectdef options }
  573. if (po_virtualmethod in pd.procoptions) then
  574. include(aktclass.objectoptions,oo_has_virtual);
  575. chkcpp(pd);
  576. parse_only:=oldparse_only;
  577. end;
  578. _DESTRUCTOR :
  579. begin
  580. if (sp_published in current_object_option) and
  581. not(oo_can_have_published in aktclass.objectoptions) then
  582. Message(parser_e_cant_have_published);
  583. if there_is_a_destructor then
  584. Message(parser_n_only_one_destructor);
  585. if is_interface(aktclass) then
  586. Message(parser_e_no_con_des_in_interfaces);
  587. if not(sp_public in current_object_option) then
  588. Message(parser_w_destructor_should_be_public);
  589. there_is_a_destructor:=true;
  590. oldparse_only:=parse_only;
  591. parse_only:=true;
  592. pd:=destructor_head;
  593. parse_object_proc_directives(pd);
  594. handle_calling_convention(pd);
  595. calc_parast(pd);
  596. { add definition to procsym }
  597. proc_add_definition(pd);
  598. { add procdef options to objectdef options }
  599. if (po_virtualmethod in pd.procoptions) then
  600. include(aktclass.objectoptions,oo_has_virtual);
  601. chkcpp(pd);
  602. parse_only:=oldparse_only;
  603. end;
  604. _END :
  605. begin
  606. consume(_END);
  607. break;
  608. end;
  609. else
  610. consume(_ID); { Give a ident expected message, like tp7 }
  611. end;
  612. until false;
  613. end;
  614. { generate vmt space if needed }
  615. if not(oo_has_vmt in aktclass.objectoptions) and
  616. (([oo_has_virtual,oo_has_constructor,oo_has_destructor]*aktclass.objectoptions<>[]) or
  617. (classtype in [odt_class])
  618. ) then
  619. aktclass.insertvmt;
  620. if is_interface(aktclass) then
  621. setinterfacemethodoptions;
  622. { reset }
  623. testcurobject:=0;
  624. curobjectname:='';
  625. typecanbeforward:=storetypecanbeforward;
  626. { restore old state }
  627. symtablestack:=symtablestack.next;
  628. aktobjectdef:=nil;
  629. current_object_option:=old_object_option;
  630. object_dec:=aktclass;
  631. end;
  632. end.
  633. {
  634. $Log$
  635. Revision 1.78 2004-06-20 08:55:30 florian
  636. * logs truncated
  637. Revision 1.77 2004/06/16 20:07:09 florian
  638. * dwarf branch merged
  639. Revision 1.76.2.1 2004/04/28 19:55:52 peter
  640. * new warning for ordinal-pointer when size is different
  641. * fixed some cg_e_ messages to the correct section type_e_ or parser_e_
  642. Revision 1.76 2004/02/26 16:13:25 peter
  643. * fix crash when method is not declared in object declaration
  644. * fix parsing of mapped interface functions
  645. }