pdecl.pas 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. {
  2. $Id$
  3. Copyright (c) 1998-2002 by Florian Klaempfl
  4. Does declaration (but not type) parsing 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 pdecl;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. { global }
  23. globals,
  24. { symtable }
  25. symsym,
  26. { pass_1 }
  27. node;
  28. function readconstant(const orgname:string;const filepos:tfileposinfo):tconstsym;
  29. procedure const_dec;
  30. procedure label_dec;
  31. procedure type_dec;
  32. procedure var_dec;
  33. procedure threadvar_dec;
  34. procedure property_dec;
  35. procedure resourcestring_dec;
  36. implementation
  37. uses
  38. { common }
  39. cutils,cclasses,
  40. { global }
  41. globtype,tokens,verbose,
  42. systems,
  43. { aasm }
  44. aasmbase,aasmtai,fmodule,
  45. { symtable }
  46. symconst,symbase,symtype,symdef,symtable,paramgr,
  47. { pass 1 }
  48. nmat,nadd,ncal,nset,ncnv,ninl,ncon,nld,nflw,nobj,
  49. { codegen }
  50. ncgutil,
  51. { parser }
  52. scanner,
  53. pbase,pexpr,ptype,ptconst,pdecsub,pdecvar,pdecobj,
  54. { cpu-information }
  55. cpuinfo
  56. ;
  57. function readconstant(const orgname:string;const filepos:tfileposinfo):tconstsym;
  58. var
  59. hp : tconstsym;
  60. p : tnode;
  61. ps : pconstset;
  62. pd : pbestreal;
  63. pg : pguid;
  64. sp : pchar;
  65. storetokenpos : tfileposinfo;
  66. begin
  67. readconstant:=nil;
  68. if orgname='' then
  69. internalerror(9584582);
  70. hp:=nil;
  71. p:=comp_expr(true);
  72. storetokenpos:=akttokenpos;
  73. akttokenpos:=filepos;
  74. case p.nodetype of
  75. ordconstn:
  76. begin
  77. if p.resulttype.def.deftype=pointerdef then
  78. hp:=tconstsym.create_ordptr(orgname,constpointer,tordconstnode(p).value,p.resulttype)
  79. else
  80. hp:=tconstsym.create_ord(orgname,constord,tordconstnode(p).value,p.resulttype);
  81. end;
  82. stringconstn:
  83. begin
  84. getmem(sp,tstringconstnode(p).len+1);
  85. move(tstringconstnode(p).value_str^,sp^,tstringconstnode(p).len+1);
  86. hp:=tconstsym.create_string(orgname,conststring,sp,tstringconstnode(p).len);
  87. end;
  88. realconstn :
  89. begin
  90. new(pd);
  91. pd^:=trealconstnode(p).value_real;
  92. hp:=tconstsym.create_ptr(orgname,constreal,pd,p.resulttype);
  93. end;
  94. setconstn :
  95. begin
  96. new(ps);
  97. ps^:=tsetconstnode(p).value_set^;
  98. hp:=tconstsym.create_ptr(orgname,constset,ps,p.resulttype);
  99. end;
  100. pointerconstn :
  101. begin
  102. hp:=tconstsym.create_ordptr(orgname,constpointer,tpointerconstnode(p).value,p.resulttype);
  103. end;
  104. niln :
  105. begin
  106. hp:=tconstsym.create_ord(orgname,constnil,0,p.resulttype);
  107. end;
  108. typen :
  109. begin
  110. if is_interface(p.resulttype.def) then
  111. begin
  112. if assigned(tobjectdef(p.resulttype.def).iidguid) then
  113. begin
  114. new(pg);
  115. pg^:=tobjectdef(p.resulttype.def).iidguid^;
  116. hp:=tconstsym.create_ptr(orgname,constguid,pg,p.resulttype);
  117. end
  118. else
  119. Message1(parser_e_interface_has_no_guid,tobjectdef(p.resulttype.def).objrealname^);
  120. end
  121. else
  122. Message(parser_e_illegal_expression);
  123. end;
  124. else
  125. Message(parser_e_illegal_expression);
  126. end;
  127. akttokenpos:=storetokenpos;
  128. p.free;
  129. readconstant:=hp;
  130. end;
  131. procedure const_dec;
  132. var
  133. orgname : stringid;
  134. tt : ttype;
  135. sym : tsym;
  136. dummysymoptions : tsymoptions;
  137. storetokenpos,filepos : tfileposinfo;
  138. old_block_type : tblock_type;
  139. skipequal : boolean;
  140. begin
  141. consume(_CONST);
  142. old_block_type:=block_type;
  143. block_type:=bt_const;
  144. repeat
  145. orgname:=orgpattern;
  146. filepos:=akttokenpos;
  147. consume(_ID);
  148. case token of
  149. _EQUAL:
  150. begin
  151. consume(_EQUAL);
  152. sym:=readconstant(orgname,filepos);
  153. { Support hint directives }
  154. dummysymoptions:=[];
  155. try_consume_hintdirective(dummysymoptions);
  156. if assigned(sym) then
  157. begin
  158. sym.symoptions:=sym.symoptions+dummysymoptions;
  159. symtablestack.insert(sym);
  160. end;
  161. consume(_SEMICOLON);
  162. end;
  163. _COLON:
  164. begin
  165. { set the blocktype first so a consume also supports a
  166. caret, to support const s : ^string = nil }
  167. block_type:=bt_type;
  168. consume(_COLON);
  169. ignore_equal:=true;
  170. read_type(tt,'',false);
  171. ignore_equal:=false;
  172. block_type:=bt_const;
  173. skipequal:=false;
  174. { create symbol }
  175. storetokenpos:=akttokenpos;
  176. akttokenpos:=filepos;
  177. sym:=ttypedconstsym.createtype(orgname,tt,(cs_typed_const_writable in aktlocalswitches));
  178. akttokenpos:=storetokenpos;
  179. symtablestack.insert(sym);
  180. insertconstdata(ttypedconstsym(sym));
  181. { procvar can have proc directives, but not type references }
  182. if (tt.def.deftype=procvardef) and
  183. (tt.sym=nil) then
  184. begin
  185. { support p : procedure;stdcall=nil; }
  186. if try_to_consume(_SEMICOLON) then
  187. begin
  188. if check_proc_directive(true) then
  189. parse_var_proc_directives(sym)
  190. else
  191. begin
  192. Message(parser_e_proc_directive_expected);
  193. skipequal:=true;
  194. end;
  195. end
  196. else
  197. { support p : procedure stdcall=nil; }
  198. begin
  199. if check_proc_directive(true) then
  200. parse_var_proc_directives(sym);
  201. end;
  202. { add default calling convention }
  203. handle_calling_convention(tabstractprocdef(tt.def));
  204. end;
  205. if not skipequal then
  206. begin
  207. { get init value }
  208. consume(_EQUAL);
  209. readtypedconst(tt,ttypedconstsym(sym),(cs_typed_const_writable in aktlocalswitches));
  210. try_consume_hintdirective(sym.symoptions);
  211. consume(_SEMICOLON);
  212. end;
  213. end;
  214. else
  215. { generate an error }
  216. consume(_EQUAL);
  217. end;
  218. until token<>_ID;
  219. block_type:=old_block_type;
  220. end;
  221. procedure label_dec;
  222. var
  223. hl : tasmlabel;
  224. begin
  225. consume(_LABEL);
  226. if not(cs_support_goto in aktmoduleswitches) then
  227. Message(sym_e_goto_and_label_not_supported);
  228. repeat
  229. if not(token in [_ID,_INTCONST]) then
  230. consume(_ID)
  231. else
  232. begin
  233. objectlibrary.getlabel(hl);
  234. if token=_ID then
  235. symtablestack.insert(tlabelsym.create(orgpattern,hl))
  236. else
  237. symtablestack.insert(tlabelsym.create(pattern,hl));
  238. consume(token);
  239. end;
  240. if token<>_SEMICOLON then consume(_COMMA);
  241. until not(token in [_ID,_INTCONST]);
  242. consume(_SEMICOLON);
  243. end;
  244. { search in symtablestack used, but not defined type }
  245. procedure resolve_type_forward(p : tnamedindexitem;arg:pointer);
  246. var
  247. hpd,pd : tdef;
  248. stpos : tfileposinfo;
  249. again : boolean;
  250. srsym : tsym;
  251. srsymtable : tsymtable;
  252. {$ifdef gdb_notused}
  253. stab_str:Pchar;
  254. {$endif gdb_notused}
  255. begin
  256. { Check only typesyms or record/object fields }
  257. case tsym(p).typ of
  258. typesym :
  259. pd:=ttypesym(p).restype.def;
  260. fieldvarsym :
  261. pd:=tfieldvarsym(p).vartype.def
  262. else
  263. exit;
  264. end;
  265. repeat
  266. again:=false;
  267. case pd.deftype of
  268. arraydef :
  269. begin
  270. { elementtype could also be defined using a forwarddef }
  271. pd:=tarraydef(pd).elementtype.def;
  272. again:=true;
  273. end;
  274. pointerdef,
  275. classrefdef :
  276. begin
  277. { classrefdef inherits from pointerdef }
  278. hpd:=tpointerdef(pd).pointertype.def;
  279. { still a forward def ? }
  280. if hpd.deftype=forwarddef then
  281. begin
  282. { try to resolve the forward }
  283. { get the correct position for it }
  284. stpos:=akttokenpos;
  285. akttokenpos:=tforwarddef(hpd).forwardpos;
  286. resolving_forward:=true;
  287. make_ref:=false;
  288. if not assigned(tforwarddef(hpd).tosymname) then
  289. internalerror(20021120);
  290. searchsym(tforwarddef(hpd).tosymname^,srsym,srsymtable);
  291. make_ref:=true;
  292. resolving_forward:=false;
  293. akttokenpos:=stpos;
  294. { we don't need the forwarddef anymore, dispose it }
  295. hpd.free;
  296. tpointerdef(pd).pointertype.def:=nil; { if error occurs }
  297. { was a type sym found ? }
  298. if assigned(srsym) and
  299. (srsym.typ=typesym) then
  300. begin
  301. tpointerdef(pd).pointertype.setsym(srsym);
  302. { avoid wrong unused warnings web bug 801 PM }
  303. inc(ttypesym(srsym).refs);
  304. {$ifdef GDB_UNUSED}
  305. if (cs_debuginfo in aktmoduleswitches) and assigned(debuglist) and
  306. (tsym(p).owner.symtabletype in [globalsymtable,staticsymtable]) then
  307. begin
  308. ttypesym(p).isusedinstab:=true;
  309. { ttypesym(p).concatstabto(debuglist);}
  310. {not stabs for forward defs }
  311. if not Ttypesym(p).isstabwritten then
  312. begin
  313. if Ttypesym(p).restype.def.typesym=p then
  314. Tstoreddef(Ttypesym(p).restype.def).concatstabto(debuglist)
  315. else
  316. begin
  317. stab_str:=Ttypesym(p).stabstring;
  318. if assigned(stab_str) then
  319. debuglist.concat(Tai_stabs.create(stab_str));
  320. Ttypesym(p).isstabwritten:=true;
  321. end;
  322. end;
  323. end;
  324. {$endif GDB_UNUSED}
  325. { we need a class type for classrefdef }
  326. if (pd.deftype=classrefdef) and
  327. not(is_class(ttypesym(srsym).restype.def)) then
  328. Message1(type_e_class_type_expected,ttypesym(srsym).restype.def.typename);
  329. end
  330. else
  331. begin
  332. MessagePos1(tsym(p).fileinfo,sym_e_forward_type_not_resolved,tsym(p).realname);
  333. { try to recover }
  334. tpointerdef(pd).pointertype:=generrortype;
  335. end;
  336. end;
  337. end;
  338. recorddef :
  339. trecorddef(pd).symtable.foreach_static(@resolve_type_forward,nil);
  340. objectdef :
  341. begin
  342. if not(m_fpc in aktmodeswitches) and
  343. (oo_is_forward in tobjectdef(pd).objectoptions) then
  344. begin
  345. { only give an error as the implementation may follow in an
  346. other type block which is allowed by FPC modes }
  347. MessagePos1(tsym(p).fileinfo,sym_e_forward_type_not_resolved,tsym(p).realname);
  348. end
  349. else
  350. begin
  351. { Check all fields of the object declaration, but don't
  352. check objectdefs in objects/records, because these
  353. can't exist (anonymous objects aren't allowed) }
  354. if not(tsym(p).owner.symtabletype in [objectsymtable,recordsymtable]) then
  355. tobjectdef(pd).symtable.foreach_static(@resolve_type_forward,nil);
  356. end;
  357. end;
  358. end;
  359. until not again;
  360. end;
  361. { reads a type declaration to the symbol table }
  362. procedure type_dec;
  363. var
  364. typename,orgtypename : stringid;
  365. newtype : ttypesym;
  366. sym : tsym;
  367. srsymtable : tsymtable;
  368. tt : ttype;
  369. oldfilepos,
  370. defpos,storetokenpos : tfileposinfo;
  371. old_block_type : tblock_type;
  372. ch : tclassheader;
  373. unique,istyperenaming : boolean;
  374. begin
  375. old_block_type:=block_type;
  376. block_type:=bt_type;
  377. consume(_TYPE);
  378. typecanbeforward:=true;
  379. repeat
  380. typename:=pattern;
  381. orgtypename:=orgpattern;
  382. defpos:=akttokenpos;
  383. istyperenaming:=false;
  384. consume(_ID);
  385. consume(_EQUAL);
  386. { support 'ttype=type word' syntax }
  387. unique:=try_to_consume(_TYPE);
  388. { is the type already defined? }
  389. searchsym(typename,sym,srsymtable);
  390. newtype:=nil;
  391. { found a symbol with this name? }
  392. if assigned(sym) then
  393. begin
  394. if (sym.typ=typesym) then
  395. begin
  396. if ((token=_CLASS) or
  397. (token=_INTERFACE)) and
  398. (assigned(ttypesym(sym).restype.def)) and
  399. is_class_or_interface(ttypesym(sym).restype.def) and
  400. (oo_is_forward in tobjectdef(ttypesym(sym).restype.def).objectoptions) then
  401. begin
  402. { we can ignore the result }
  403. { the definition is modified }
  404. object_dec(orgtypename,tobjectdef(ttypesym(sym).restype.def));
  405. newtype:=ttypesym(sym);
  406. tt:=newtype.restype;
  407. end
  408. else
  409. message1(parser_h_type_redef,orgtypename);
  410. end;
  411. end;
  412. { no old type reused ? Then insert this new type }
  413. if not assigned(newtype) then
  414. begin
  415. { insert the new type first with an errordef, so that
  416. referencing the type before it's really set it
  417. will give an error (PFV) }
  418. tt:=generrortype;
  419. storetokenpos:=akttokenpos;
  420. newtype:=ttypesym.create(orgtypename,tt);
  421. symtablestack.insert(newtype);
  422. akttokenpos:=defpos;
  423. akttokenpos:=storetokenpos;
  424. { read the type definition }
  425. read_type(tt,orgtypename,false);
  426. { update the definition of the type }
  427. newtype.restype:=tt;
  428. if assigned(tt.sym) then
  429. istyperenaming:=true
  430. else
  431. tt.sym:=newtype;
  432. if unique and assigned(tt.def) then
  433. begin
  434. tt.setdef(tstoreddef(tt.def).getcopy);
  435. include(tt.def.defoptions,df_unique);
  436. newtype.restype:=tt;
  437. end;
  438. if assigned(tt.def) and not assigned(tt.def.typesym) then
  439. tt.def.typesym:=newtype;
  440. { KAZ: handle TGUID declaration in system unit }
  441. if (cs_compilesystem in aktmoduleswitches) and not assigned(rec_tguid) and
  442. (typename='TGUID') and { name: TGUID and size=16 bytes that is 128 bits }
  443. assigned(tt.def) and (tt.def.deftype=recorddef) and (tt.def.size=16) then
  444. rec_tguid:=trecorddef(tt.def);
  445. end;
  446. if assigned(tt.def) then
  447. begin
  448. case tt.def.deftype of
  449. pointerdef :
  450. begin
  451. consume(_SEMICOLON);
  452. if try_to_consume(_FAR) then
  453. begin
  454. tpointerdef(tt.def).is_far:=true;
  455. consume(_SEMICOLON);
  456. end;
  457. end;
  458. procvardef :
  459. begin
  460. { in case of type renaming, don't parse proc directives }
  461. if istyperenaming then
  462. consume(_SEMICOLON)
  463. else
  464. begin
  465. if not check_proc_directive(true) then
  466. consume(_SEMICOLON);
  467. parse_var_proc_directives(tsym(newtype));
  468. handle_calling_convention(tprocvardef(tt.def));
  469. end;
  470. end;
  471. objectdef,
  472. recorddef :
  473. begin
  474. try_consume_hintdirective(newtype.symoptions);
  475. consume(_SEMICOLON);
  476. end;
  477. else
  478. consume(_SEMICOLON);
  479. end;
  480. end;
  481. { Write tables if we are the typesym that defines
  482. this type. This will not be done for simple type renamings }
  483. if (tt.def.typesym=newtype) then
  484. begin
  485. { file position }
  486. oldfilepos:=aktfilepos;
  487. aktfilepos:=newtype.fileinfo;
  488. { generate persistent init/final tables when it's declared in the interface so it can
  489. be reused in other used }
  490. if current_module.in_interface and
  491. ((is_class(tt.def) and
  492. tobjectdef(tt.def).members_need_inittable) or
  493. tt.def.needs_inittable) then
  494. generate_inittable(newtype);
  495. { for objects we should write the vmt and interfaces.
  496. This need to be done after the rtti has been written, because
  497. it can contain a reference to that data (PFV)
  498. This is not for forward classes }
  499. if (tt.def.deftype=objectdef) then
  500. with Tobjectdef(tt.def) do
  501. begin
  502. if not(oo_is_forward in objectoptions) then
  503. begin
  504. ch:=tclassheader.create(tobjectdef(tt.def));
  505. { generate and check virtual methods, must be done
  506. before RTTI is written }
  507. ch.genvmt;
  508. { Generate RTTI for class }
  509. generate_rtti(newtype);
  510. if is_interface(tobjectdef(tt.def)) then
  511. ch.writeinterfaceids;
  512. if (oo_has_vmt in objectoptions) then
  513. ch.writevmt;
  514. ch.free;
  515. end;
  516. end
  517. else
  518. begin
  519. { Always generate RTTI info for all types. This is to have typeinfo() return
  520. the same pointer }
  521. generate_rtti(newtype);
  522. end;
  523. aktfilepos:=oldfilepos;
  524. end;
  525. until token<>_ID;
  526. typecanbeforward:=false;
  527. symtablestack.foreach_static(@resolve_type_forward,nil);
  528. block_type:=old_block_type;
  529. end;
  530. procedure var_dec;
  531. { parses variable declarations and inserts them in }
  532. { the top symbol table of symtablestack }
  533. begin
  534. consume(_VAR);
  535. read_var_decs(false,false,false);
  536. end;
  537. procedure property_dec;
  538. var
  539. old_block_type : tblock_type;
  540. begin
  541. consume(_PROPERTY);
  542. if not(symtablestack.symtabletype in [staticsymtable,globalsymtable]) then
  543. message(parser_e_resourcestring_only_sg);
  544. old_block_type:=block_type;
  545. block_type:=bt_const;
  546. repeat
  547. read_property_dec(nil);
  548. consume(_SEMICOLON);
  549. until token<>_ID;
  550. block_type:=old_block_type;
  551. end;
  552. procedure threadvar_dec;
  553. { parses thread variable declarations and inserts them in }
  554. { the top symbol table of symtablestack }
  555. begin
  556. consume(_THREADVAR);
  557. if not(symtablestack.symtabletype in [staticsymtable,globalsymtable]) then
  558. message(parser_e_threadvars_only_sg);
  559. read_var_decs(false,false,true);
  560. end;
  561. procedure resourcestring_dec;
  562. var
  563. orgname : stringid;
  564. p : tnode;
  565. dummysymoptions : tsymoptions;
  566. storetokenpos,filepos : tfileposinfo;
  567. old_block_type : tblock_type;
  568. sp : pchar;
  569. sym : tsym;
  570. begin
  571. consume(_RESOURCESTRING);
  572. if not(symtablestack.symtabletype in [staticsymtable,globalsymtable]) then
  573. message(parser_e_resourcestring_only_sg);
  574. old_block_type:=block_type;
  575. block_type:=bt_const;
  576. repeat
  577. orgname:=orgpattern;
  578. filepos:=akttokenpos;
  579. consume(_ID);
  580. case token of
  581. _EQUAL:
  582. begin
  583. consume(_EQUAL);
  584. p:=comp_expr(true);
  585. storetokenpos:=akttokenpos;
  586. akttokenpos:=filepos;
  587. sym:=nil;
  588. case p.nodetype of
  589. ordconstn:
  590. begin
  591. if is_constcharnode(p) then
  592. begin
  593. getmem(sp,2);
  594. sp[0]:=chr(tordconstnode(p).value);
  595. sp[1]:=#0;
  596. sym:=tconstsym.create_string(orgname,constresourcestring,sp,1);
  597. end
  598. else
  599. Message(parser_e_illegal_expression);
  600. end;
  601. stringconstn:
  602. with Tstringconstnode(p) do
  603. begin
  604. getmem(sp,len+1);
  605. move(value_str^,sp^,len+1);
  606. sym:=tconstsym.create_string(orgname,constresourcestring,sp,len);
  607. end;
  608. else
  609. Message(parser_e_illegal_expression);
  610. end;
  611. akttokenpos:=storetokenpos;
  612. { Support hint directives }
  613. dummysymoptions:=[];
  614. try_consume_hintdirective(dummysymoptions);
  615. if assigned(sym) then
  616. begin
  617. sym.symoptions:=sym.symoptions+dummysymoptions;
  618. symtablestack.insert(sym);
  619. end;
  620. consume(_SEMICOLON);
  621. p.free;
  622. end;
  623. else consume(_EQUAL);
  624. end;
  625. until token<>_ID;
  626. block_type:=old_block_type;
  627. end;
  628. end.
  629. {
  630. $Log$
  631. Revision 1.94 2005-01-24 22:08:32 peter
  632. * interface wrapper generation moved to cgobj
  633. * generate interface wrappers after the module is parsed
  634. Revision 1.93 2005/01/20 16:38:45 peter
  635. * load jmp_buf_size from system unit
  636. Revision 1.92 2004/11/16 20:32:40 peter
  637. * fixes for win32 mangledname
  638. Revision 1.91 2004/11/15 23:35:31 peter
  639. * tparaitem removed, use tparavarsym instead
  640. * parameter order is now calculated from paranr value in tparavarsym
  641. Revision 1.90 2004/11/08 22:09:59 peter
  642. * tvarsym splitted
  643. Revision 1.89 2004/10/15 09:14:17 mazen
  644. - remove $IFDEF DELPHI and related code
  645. - remove $IFDEF FPCPROCVAR and related code
  646. Revision 1.88 2004/09/13 20:33:17 peter
  647. * use realname in error msg
  648. Revision 1.87 2004/06/20 08:55:30 florian
  649. * logs truncated
  650. Revision 1.86 2004/06/16 20:07:09 florian
  651. * dwarf branch merged
  652. Revision 1.85.2.1 2004/04/28 19:55:52 peter
  653. * new warning for ordinal-pointer when size is different
  654. * fixed some cg_e_ messages to the correct section type_e_ or parser_e_
  655. Revision 1.85 2004/03/23 22:34:49 peter
  656. * constants ordinals now always have a type assigned
  657. * integer constants have the smallest type, unsigned prefered over
  658. signed
  659. Revision 1.84 2004/03/20 20:55:36 florian
  660. + implemented cdecl'd varargs on arm
  661. + -dCMEM supported by the compiler
  662. * label/goto asmsymbol type with -dextdebug fixed
  663. Revision 1.83 2004/03/08 22:07:47 peter
  664. * stabs updates to write stabs for def for all implictly used
  665. units
  666. }