pdecl.pas 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 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 defines.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 resourcestring_dec;
  35. implementation
  36. uses
  37. { common }
  38. cutils,cclasses,
  39. { global }
  40. globtype,tokens,verbose,
  41. systems,
  42. { aasm }
  43. aasm,fmodule,
  44. { symtable }
  45. symconst,symbase,symtype,symdef,symtable,
  46. { pass 1 }
  47. nmat,nadd,ncal,nset,ncnv,ninl,ncon,nld,nflw,nobj,
  48. { parser }
  49. scanner,
  50. pbase,pexpr,ptype,ptconst,pdecsub,pdecvar,pdecobj;
  51. function readconstant(const orgname:string;const filepos:tfileposinfo):tconstsym;
  52. var
  53. hp : tconstsym;
  54. p : tnode;
  55. ps : pconstset;
  56. pd : pbestreal;
  57. pg : pguid;
  58. sp : pchar;
  59. storetokenpos : tfileposinfo;
  60. begin
  61. readconstant:=nil;
  62. if orgname='' then
  63. internalerror(9584582);
  64. hp:=nil;
  65. p:=comp_expr(true);
  66. storetokenpos:=akttokenpos;
  67. akttokenpos:=filepos;
  68. case p.nodetype of
  69. ordconstn:
  70. begin
  71. if is_constintnode(p) then
  72. hp:=tconstsym.create_ord_typed(orgname,constint,tordconstnode(p).value,tordconstnode(p).resulttype)
  73. else if is_constcharnode(p) then
  74. hp:=tconstsym.create_ord(orgname,constchar,tordconstnode(p).value)
  75. else if is_constboolnode(p) then
  76. hp:=tconstsym.create_ord(orgname,constbool,tordconstnode(p).value)
  77. else if is_constwidecharnode(p) then
  78. hp:=tconstsym.create_ord(orgname,constwchar,tordconstnode(p).value)
  79. else if p.resulttype.def.deftype=enumdef then
  80. hp:=tconstsym.create_ord_typed(orgname,constord,tordconstnode(p).value,p.resulttype)
  81. else if p.resulttype.def.deftype=pointerdef then
  82. hp:=tconstsym.create_ordptr_typed(orgname,constpointer,tordconstnode(p).value,p.resulttype)
  83. else internalerror(111);
  84. end;
  85. stringconstn:
  86. begin
  87. getmem(sp,tstringconstnode(p).len+1);
  88. move(tstringconstnode(p).value_str^,sp^,tstringconstnode(p).len+1);
  89. hp:=tconstsym.create_string(orgname,conststring,sp,tstringconstnode(p).len);
  90. end;
  91. realconstn :
  92. begin
  93. new(pd);
  94. pd^:=trealconstnode(p).value_real;
  95. hp:=tconstsym.create_ptr(orgname,constreal,pd);
  96. end;
  97. setconstn :
  98. begin
  99. new(ps);
  100. ps^:=tsetconstnode(p).value_set^;
  101. hp:=tconstsym.create_ptr_typed(orgname,constset,ps,p.resulttype);
  102. end;
  103. pointerconstn :
  104. begin
  105. hp:=tconstsym.create_ordptr_typed(orgname,constpointer,tpointerconstnode(p).value,p.resulttype);
  106. end;
  107. niln :
  108. begin
  109. hp:=tconstsym.create_ord_typed(orgname,constnil,0,p.resulttype);
  110. end;
  111. typen :
  112. begin
  113. if is_interface(p.resulttype.def) then
  114. begin
  115. if tobjectdef(p.resulttype.def).isiidguidvalid then
  116. begin
  117. new(pg);
  118. pg^:=tobjectdef(p.resulttype.def).iidguid;
  119. hp:=tconstsym.create_ptr(orgname,constguid,pg);
  120. end
  121. else
  122. Message1(parser_e_interface_has_no_guid,tobjectdef(p.resulttype.def).objname^);
  123. end
  124. else
  125. Message(cg_e_illegal_expression);
  126. end;
  127. else
  128. Message(cg_e_illegal_expression);
  129. end;
  130. akttokenpos:=storetokenpos;
  131. p.free;
  132. readconstant:=hp;
  133. end;
  134. procedure const_dec;
  135. var
  136. orgname : stringid;
  137. tt : ttype;
  138. sym : tsym;
  139. storetokenpos,filepos : tfileposinfo;
  140. old_block_type : tblock_type;
  141. skipequal : boolean;
  142. begin
  143. consume(_CONST);
  144. old_block_type:=block_type;
  145. block_type:=bt_const;
  146. repeat
  147. orgname:=orgpattern;
  148. filepos:=akttokenpos;
  149. consume(_ID);
  150. case token of
  151. _EQUAL:
  152. begin
  153. consume(_EQUAL);
  154. sym:=readconstant(orgname,filepos);
  155. if assigned(sym) then
  156. symtablestack.insert(sym);
  157. try_consume_hintdirective(sym.symoptions);
  158. consume(_SEMICOLON);
  159. end;
  160. _COLON:
  161. begin
  162. { set the blocktype first so a consume also supports a
  163. caret, to support const s : ^string = nil }
  164. block_type:=bt_type;
  165. consume(_COLON);
  166. ignore_equal:=true;
  167. read_type(tt,'');
  168. ignore_equal:=false;
  169. block_type:=bt_const;
  170. skipequal:=false;
  171. { create symbol }
  172. storetokenpos:=akttokenpos;
  173. akttokenpos:=filepos;
  174. {$ifdef DELPHI_CONST_IN_RODATA}
  175. if m_delphi in aktmodeswitches then
  176. begin
  177. if assigned(readtypesym) then
  178. sym:=ttypedconstsym.createsym(orgname,readtypesym,true)
  179. else
  180. sym:=ttypedconstsym.create(orgname,def,true)
  181. end
  182. else
  183. {$endif DELPHI_CONST_IN_RODATA}
  184. begin
  185. sym:=ttypedconstsym.createtype(orgname,tt,false)
  186. end;
  187. akttokenpos:=storetokenpos;
  188. symtablestack.insert(sym);
  189. { procvar can have proc directives }
  190. if (tt.def.deftype=procvardef) then
  191. begin
  192. { support p : procedure;stdcall=nil; }
  193. if (token=_SEMICOLON) then
  194. begin
  195. consume(_SEMICOLON);
  196. if is_proc_directive(token) then
  197. parse_var_proc_directives(sym)
  198. else
  199. begin
  200. Message(parser_e_proc_directive_expected);
  201. skipequal:=true;
  202. end;
  203. end
  204. else
  205. { support p : procedure stdcall=nil; }
  206. begin
  207. if is_proc_directive(token) then
  208. parse_var_proc_directives(sym);
  209. end;
  210. end;
  211. if not skipequal then
  212. begin
  213. { get init value }
  214. consume(_EQUAL);
  215. {$ifdef DELPHI_CONST_IN_RODATA}
  216. if m_delphi in aktmodeswitches then
  217. readtypedconst(tt,ttypedconstsym(sym),true)
  218. else
  219. {$endif DELPHI_CONST_IN_RODATA}
  220. readtypedconst(tt,ttypedconstsym(sym),false);
  221. try_consume_hintdirective(sym.symoptions);
  222. consume(_SEMICOLON);
  223. end;
  224. end;
  225. else
  226. { generate an error }
  227. consume(_EQUAL);
  228. end;
  229. until token<>_ID;
  230. block_type:=old_block_type;
  231. end;
  232. procedure label_dec;
  233. var
  234. hl : tasmlabel;
  235. begin
  236. consume(_LABEL);
  237. if not(cs_support_goto in aktmoduleswitches) then
  238. Message(sym_e_goto_and_label_not_supported);
  239. repeat
  240. if not(token in [_ID,_INTCONST]) then
  241. consume(_ID)
  242. else
  243. begin
  244. if (cs_create_smart in aktmoduleswitches) then
  245. begin
  246. getdatalabel(hl);
  247. { we still want a warning if unused }
  248. hl.refs:=0;
  249. end
  250. else
  251. getlabel(hl);
  252. symtablestack.insert(tlabelsym.create(orgpattern,hl));
  253. consume(token);
  254. end;
  255. if token<>_SEMICOLON then consume(_COMMA);
  256. until not(token in [_ID,_INTCONST]);
  257. consume(_SEMICOLON);
  258. end;
  259. { search in symtablestack used, but not defined type }
  260. procedure resolve_type_forward(p : tnamedindexitem);
  261. var
  262. hpd,pd : tdef;
  263. stpos : tfileposinfo;
  264. again : boolean;
  265. srsym : tsym;
  266. srsymtable : tsymtable;
  267. begin
  268. { Check only typesyms or record/object fields }
  269. case tsym(p).typ of
  270. typesym :
  271. pd:=ttypesym(p).restype.def;
  272. varsym :
  273. if (tsym(p).owner.symtabletype in [objectsymtable,recordsymtable]) then
  274. pd:=tvarsym(p).vartype.def
  275. else
  276. exit;
  277. else
  278. exit;
  279. end;
  280. repeat
  281. again:=false;
  282. case pd.deftype of
  283. arraydef :
  284. begin
  285. { elementtype could also be defined using a forwarddef }
  286. pd:=tarraydef(pd).elementtype.def;
  287. again:=true;
  288. end;
  289. pointerdef,
  290. classrefdef :
  291. begin
  292. { classrefdef inherits from pointerdef }
  293. hpd:=tpointerdef(pd).pointertype.def;
  294. { still a forward def ? }
  295. if hpd.deftype=forwarddef then
  296. begin
  297. { try to resolve the forward }
  298. { get the correct position for it }
  299. stpos:=akttokenpos;
  300. akttokenpos:=tforwarddef(hpd).forwardpos;
  301. resolving_forward:=true;
  302. make_ref:=false;
  303. searchsym(tforwarddef(hpd).tosymname,srsym,srsymtable);
  304. make_ref:=true;
  305. resolving_forward:=false;
  306. akttokenpos:=stpos;
  307. { we don't need the forwarddef anymore, dispose it }
  308. hpd.free;
  309. tpointerdef(pd).pointertype.def:=nil; { if error occurs }
  310. { was a type sym found ? }
  311. if assigned(srsym) and
  312. (srsym.typ=typesym) then
  313. begin
  314. tpointerdef(pd).pointertype.setsym(srsym);
  315. { avoid wrong unused warnings web bug 801 PM }
  316. inc(tstoredsym(srsym).refs);
  317. {$ifdef GDB}
  318. if (cs_debuginfo in aktmoduleswitches) and assigned(debuglist) and
  319. (tsym(p).owner.symtabletype in [globalsymtable,staticsymtable]) then
  320. begin
  321. ttypesym(p).isusedinstab := true;
  322. ttypesym(p).concatstabto(debuglist);
  323. end;
  324. {$endif GDB}
  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({$ifdef FPCPROCVAR}@{$endif}resolve_type_forward);
  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({$ifdef FPCPROCVAR}@{$endif}resolve_type_forward);
  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. begin
  374. old_block_type:=block_type;
  375. block_type:=bt_type;
  376. consume(_TYPE);
  377. typecanbeforward:=true;
  378. repeat
  379. typename:=pattern;
  380. orgtypename:=orgpattern;
  381. defpos:=akttokenpos;
  382. consume(_ID);
  383. consume(_EQUAL);
  384. { support 'ttype=type word' syntax }
  385. if token=_TYPE then
  386. Consume(_TYPE);
  387. { is the type already defined? }
  388. searchsym(typename,sym,srsymtable);
  389. newtype:=nil;
  390. { found a symbol with this name? }
  391. if assigned(sym) then
  392. begin
  393. if (sym.typ=typesym) then
  394. begin
  395. if ((token=_CLASS) or
  396. (token=_INTERFACE)) and
  397. (assigned(ttypesym(sym).restype.def)) and
  398. is_class_or_interface(ttypesym(sym).restype.def) and
  399. (oo_is_forward in tobjectdef(ttypesym(sym).restype.def).objectoptions) then
  400. begin
  401. { we can ignore the result }
  402. { the definition is modified }
  403. object_dec(orgtypename,tobjectdef(ttypesym(sym).restype.def));
  404. newtype:=ttypesym(sym);
  405. tt:=newtype.restype;
  406. end;
  407. end;
  408. end;
  409. { no old type reused ? Then insert this new type }
  410. if not assigned(newtype) then
  411. begin
  412. { insert the new type first with an errordef, so that
  413. referencing the type before it's really set it
  414. will give an error (PFV) }
  415. tt:=generrortype;
  416. storetokenpos:=akttokenpos;
  417. newtype:=ttypesym.create(orgtypename,tt);
  418. symtablestack.insert(newtype);
  419. akttokenpos:=defpos;
  420. akttokenpos:=storetokenpos;
  421. { read the type definition }
  422. read_type(tt,orgtypename);
  423. { update the definition of the type }
  424. newtype.restype:=tt;
  425. if not assigned(tt.sym) then
  426. tt.sym:=newtype;
  427. if assigned(tt.def) and not assigned(tt.def.typesym) then
  428. tt.def.typesym:=newtype;
  429. { KAZ: handle TGUID declaration in system unit }
  430. if (cs_compilesystem in aktmoduleswitches) and not assigned(rec_tguid) and
  431. (typename='TGUID') and { name: TGUID and size=16 bytes that is 128 bits }
  432. assigned(tt.def) and (tt.def.deftype=recorddef) and (tt.def.size=16) then
  433. rec_tguid:=trecorddef(tt.def);
  434. end;
  435. if assigned(tt.def) then
  436. begin
  437. case tt.def.deftype of
  438. pointerdef :
  439. begin
  440. consume(_SEMICOLON);
  441. if try_to_consume(_FAR) then
  442. begin
  443. tpointerdef(tt.def).is_far:=true;
  444. consume(_SEMICOLON);
  445. end;
  446. end;
  447. procvardef :
  448. begin
  449. if not is_proc_directive(token) then
  450. consume(_SEMICOLON);
  451. parse_var_proc_directives(tsym(newtype));
  452. end;
  453. objectdef,
  454. recorddef :
  455. begin
  456. try_consume_hintdirective(newtype.symoptions);
  457. consume(_SEMICOLON);
  458. end;
  459. else
  460. consume(_SEMICOLON);
  461. end;
  462. end;
  463. { Write tables if we are the typesym that defines
  464. this type. This will not be done for simple type renamings }
  465. if (tt.def.typesym=newtype) then
  466. begin
  467. { file position }
  468. oldfilepos:=aktfilepos;
  469. aktfilepos:=newtype.fileinfo;
  470. { generate persistent init/final tables when it's declared in the interface so it can
  471. be reused in other used }
  472. if (not current_module.in_implementation) and
  473. (tt.def.needs_inittable or
  474. is_class(tt.def)) then
  475. generate_inittable(newtype);
  476. { for objects we should write the vmt and interfaces.
  477. This need to be done after the rtti has been written, because
  478. it can contain a reference to that data (PFV)
  479. This is not for forward classes }
  480. if (tt.def.deftype=objectdef) and
  481. not(oo_is_forward in tobjectdef(tt.def).objectoptions) then
  482. begin
  483. ch:=cclassheader.create(tobjectdef(tt.def));
  484. { generate and check virtual methods, must be done
  485. before RTTI is written }
  486. ch.genvmt;
  487. { generate rtti info if published items are available }
  488. if (oo_can_have_published in tobjectdef(tt.def).objectoptions) then
  489. generate_rtti(newtype);
  490. if is_interface(tobjectdef(tt.def)) then
  491. ch.writeinterfaceids;
  492. if (oo_has_vmt in tobjectdef(tt.def).objectoptions) then
  493. ch.writevmt;
  494. ch.free;
  495. end;
  496. aktfilepos:=oldfilepos;
  497. end;
  498. until token<>_ID;
  499. typecanbeforward:=false;
  500. symtablestack.foreach_static({$ifdef FPCPROCVAR}@{$endif}resolve_type_forward);
  501. block_type:=old_block_type;
  502. end;
  503. procedure var_dec;
  504. { parses variable declarations and inserts them in }
  505. { the top symbol table of symtablestack }
  506. begin
  507. consume(_VAR);
  508. read_var_decs(false,false,false);
  509. end;
  510. procedure threadvar_dec;
  511. { parses thread variable declarations and inserts them in }
  512. { the top symbol table of symtablestack }
  513. begin
  514. consume(_THREADVAR);
  515. if not(symtablestack.symtabletype in [staticsymtable,globalsymtable]) then
  516. message(parser_e_threadvars_only_sg);
  517. read_var_decs(false,false,true);
  518. end;
  519. procedure resourcestring_dec;
  520. var
  521. orgname : stringid;
  522. p : tnode;
  523. storetokenpos,filepos : tfileposinfo;
  524. old_block_type : tblock_type;
  525. sp : pchar;
  526. begin
  527. consume(_RESOURCESTRING);
  528. if not(symtablestack.symtabletype in [staticsymtable,globalsymtable]) then
  529. message(parser_e_resourcestring_only_sg);
  530. old_block_type:=block_type;
  531. block_type:=bt_const;
  532. repeat
  533. orgname:=orgpattern;
  534. filepos:=akttokenpos;
  535. consume(_ID);
  536. case token of
  537. _EQUAL:
  538. begin
  539. consume(_EQUAL);
  540. p:=comp_expr(true);
  541. storetokenpos:=akttokenpos;
  542. akttokenpos:=filepos;
  543. case p.nodetype of
  544. ordconstn:
  545. begin
  546. if is_constcharnode(p) then
  547. begin
  548. getmem(sp,2);
  549. sp[0]:=chr(tordconstnode(p).value);
  550. sp[1]:=#0;
  551. symtablestack.insert(tconstsym.create_string(orgname,constresourcestring,sp,1));
  552. end
  553. else
  554. Message(cg_e_illegal_expression);
  555. end;
  556. stringconstn:
  557. begin
  558. getmem(sp,tstringconstnode(p).len+1);
  559. move(tstringconstnode(p).value_str^,sp^,tstringconstnode(p).len+1);
  560. symtablestack.insert(tconstsym.create_string(orgname,constresourcestring,sp,tstringconstnode(p).len));
  561. end;
  562. else
  563. Message(cg_e_illegal_expression);
  564. end;
  565. akttokenpos:=storetokenpos;
  566. consume(_SEMICOLON);
  567. p.free;
  568. end;
  569. else consume(_EQUAL);
  570. end;
  571. until token<>_ID;
  572. block_type:=old_block_type;
  573. end;
  574. end.
  575. {
  576. $Log$
  577. Revision 1.36 2001-10-20 19:28:39 peter
  578. * interface 2 guid support
  579. * guid constants support
  580. Revision 1.35 2001/10/20 17:20:13 peter
  581. * fixed generation of rtti for virtualmethods
  582. Revision 1.34 2001/09/19 11:06:03 michael
  583. * realname updated for some hints
  584. * realname used for consts,labels
  585. Revision 1.33 2001/09/02 21:18:28 peter
  586. * split constsym.value in valueord,valueordptr,valueptr. The valueordptr
  587. is used for holding target platform pointer values. As those can be
  588. bigger than the source platform.
  589. Revision 1.32 2001/08/30 20:13:53 peter
  590. * rtti/init table updates
  591. * rttisym for reusable global rtti/init info
  592. * support published for interfaces
  593. Revision 1.31 2001/06/03 21:57:35 peter
  594. + hint directive parsing support
  595. Revision 1.30 2001/05/08 21:06:31 florian
  596. * some more support for widechars commited especially
  597. regarding type casting and constants
  598. Revision 1.29 2001/04/13 01:22:11 peter
  599. * symtable change to classes
  600. * range check generation and errors fixed, make cycle DEBUG=1 works
  601. * memory leaks fixed
  602. Revision 1.28 2001/04/04 22:43:50 peter
  603. * remove unnecessary calls to firstpass
  604. Revision 1.27 2001/04/04 21:30:43 florian
  605. * applied several fixes to get the DD8 Delphi Unit compiled
  606. e.g. "forward"-interfaces are working now
  607. Revision 1.26 2001/04/02 21:20:31 peter
  608. * resulttype rewrite
  609. Revision 1.25 2001/03/11 22:58:49 peter
  610. * getsym redesign, removed the globals srsym,srsymtable
  611. Revision 1.24 2000/12/25 00:07:27 peter
  612. + new tlinkedlist class (merge of old tstringqueue,tcontainer and
  613. tlinkedlist objects)
  614. Revision 1.23 2000/12/07 17:19:42 jonas
  615. * new constant handling: from now on, hex constants >$7fffffff are
  616. parsed as unsigned constants (otherwise, $80000000 got sign extended
  617. and became $ffffffff80000000), all constants in the longint range
  618. become longints, all constants >$7fffffff and <=cardinal($ffffffff)
  619. are cardinals and the rest are int64's.
  620. * added lots of longint typecast to prevent range check errors in the
  621. compiler and rtl
  622. * type casts of symbolic ordinal constants are now preserved
  623. * fixed bug where the original resulttype.def wasn't restored correctly
  624. after doing a 64bit rangecheck
  625. Revision 1.22 2000/11/29 00:30:35 florian
  626. * unused units removed from uses clause
  627. * some changes for widestrings
  628. Revision 1.21 2000/11/12 22:17:46 peter
  629. * some realname updates for messages
  630. Revision 1.20 2000/11/11 16:19:11 peter
  631. * allow far directive for pointer type declarations
  632. Revision 1.19 2000/11/04 14:25:20 florian
  633. + merged Attila's changes for interfaces, not tested yet
  634. Revision 1.18 2000/10/31 22:02:49 peter
  635. * symtable splitted, no real code changes
  636. Revision 1.17 2000/10/14 10:14:51 peter
  637. * moehrendorf oct 2000 rewrite
  638. Revision 1.16 2000/09/24 21:19:50 peter
  639. * delphi compile fixes
  640. Revision 1.15 2000/09/24 15:06:21 peter
  641. * use defines.inc
  642. Revision 1.14 2000/09/11 17:00:23 florian
  643. + first implementation of Netware Module support, thanks to
  644. Armin Diehl ([email protected]) for providing the patches
  645. Revision 1.13 2000/08/27 20:19:39 peter
  646. * store strings with case in ppu, when an internal symbol is created
  647. a '$' is prefixed so it's not automatic uppercased
  648. Revision 1.12 2000/08/27 16:11:51 peter
  649. * moved some util functions from globals,cobjects to cutils
  650. * splitted files into finput,fmodule
  651. Revision 1.11 2000/08/20 15:01:17 peter
  652. * don't allow forward class in separate type blocks for delphi (merged)
  653. Revision 1.10 2000/08/17 09:17:19 pierre
  654. * fix go32v2 cycle problem
  655. Revision 1.9 2000/08/16 18:33:53 peter
  656. * splitted namedobjectitem.next into indexnext and listnext so it
  657. can be used in both lists
  658. * don't allow "word = word" type definitions (merged)
  659. Revision 1.8 2000/08/13 13:11:28 peter
  660. * put defaultpara values in parast and changed the name to
  661. 'def<Parameter name>'
  662. Revision 1.7 2000/08/13 08:42:59 peter
  663. * support absolute refering to funcret (merged)
  664. Revision 1.6 2000/08/02 19:49:59 peter
  665. * first things for default parameters
  666. Revision 1.5 2000/07/30 17:04:43 peter
  667. * merged fixes
  668. Revision 1.4 2000/07/14 05:11:49 michael
  669. + Patch to 1.1
  670. Revision 1.3 2000/07/13 12:08:26 michael
  671. + patched to 1.1.0 with former 1.09patch from peter
  672. Revision 1.2 2000/07/13 11:32:44 michael
  673. + removed logs
  674. }