ncon.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  1. {
  2. $Id$
  3. Copyright (c) 2000 by Florian Klaempfl
  4. Type checking and register allocation for constants
  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 ncon;
  19. {$i defines.inc}
  20. interface
  21. uses
  22. globtype,widestr,
  23. node,
  24. aasm,cpuinfo,
  25. symconst,symtype,symdef,symsym;
  26. type
  27. trealconstnode = class(tnode)
  28. restype : ttype;
  29. value_real : bestreal;
  30. lab_real : tasmlabel;
  31. constructor create(v : bestreal;const t:ttype);virtual;
  32. function getcopy : tnode;override;
  33. function pass_1 : tnode;override;
  34. function det_resulttype:tnode;override;
  35. function docompare(p: tnode) : boolean; override;
  36. end;
  37. trealconstnodeclass = class of trealconstnode;
  38. tordconstnode = class(tnode)
  39. restype : ttype;
  40. value : TConstExprInt;
  41. constructor create(v : tconstexprint;const t:ttype);virtual;
  42. function getcopy : tnode;override;
  43. function pass_1 : tnode;override;
  44. function det_resulttype:tnode;override;
  45. function docompare(p: tnode) : boolean; override;
  46. end;
  47. tordconstnodeclass = class of tordconstnode;
  48. tpointerconstnode = class(tnode)
  49. restype : ttype;
  50. value : TConstPtrUInt;
  51. constructor create(v : TConstPtrUInt;const t:ttype);virtual;
  52. function getcopy : tnode;override;
  53. function pass_1 : tnode;override;
  54. function det_resulttype:tnode;override;
  55. function docompare(p: tnode) : boolean; override;
  56. end;
  57. tpointerconstnodeclass = class of tpointerconstnode;
  58. tstringconstnode = class(tnode)
  59. value_str : pchar;
  60. len : longint;
  61. lab_str : tasmlabel;
  62. st_type : tstringtype;
  63. constructor createstr(const s : string;st:tstringtype);virtual;
  64. constructor createpchar(s : pchar;l : longint);virtual;
  65. constructor createwstr(w : pcompilerwidestring);virtual;
  66. destructor destroy;override;
  67. function getcopy : tnode;override;
  68. function pass_1 : tnode;override;
  69. function det_resulttype:tnode;override;
  70. function getpcharcopy : pchar;
  71. function docompare(p: tnode) : boolean; override;
  72. end;
  73. tstringconstnodeclass = class of tstringconstnode;
  74. tsetconstnode = class(tunarynode)
  75. restype : ttype;
  76. value_set : pconstset;
  77. lab_set : tasmlabel;
  78. constructor create(s : pconstset;const t:ttype);virtual;
  79. destructor destroy;override;
  80. function getcopy : tnode;override;
  81. function pass_1 : tnode;override;
  82. function det_resulttype:tnode;override;
  83. function docompare(p: tnode) : boolean; override;
  84. end;
  85. tsetconstnodeclass = class of tsetconstnode;
  86. tnilnode = class(tnode)
  87. constructor create;virtual;
  88. function pass_1 : tnode;override;
  89. function det_resulttype:tnode;override;
  90. end;
  91. tnilnodeclass = class of tnilnode;
  92. var
  93. crealconstnode : trealconstnodeclass;
  94. cordconstnode : tordconstnodeclass;
  95. cpointerconstnode : tpointerconstnodeclass;
  96. cstringconstnode : tstringconstnodeclass;
  97. csetconstnode : tsetconstnodeclass;
  98. cnilnode : tnilnodeclass;
  99. function genintconstnode(v : TConstExprInt) : tordconstnode;
  100. function genenumnode(v : tenumsym) : tordconstnode;
  101. { some helper routines }
  102. {$ifdef INT64FUNCRESOK}
  103. function get_ordinal_value(p : tnode) : TConstExprInt;
  104. {$else INT64FUNCRESOK}
  105. function get_ordinal_value(p : tnode) : longint;
  106. {$endif INT64FUNCRESOK}
  107. function is_constnode(p : tnode) : boolean;
  108. function is_constintnode(p : tnode) : boolean;
  109. function is_constcharnode(p : tnode) : boolean;
  110. function is_constrealnode(p : tnode) : boolean;
  111. function is_constboolnode(p : tnode) : boolean;
  112. function is_constresourcestringnode(p : tnode) : boolean;
  113. function is_constwidecharnode(p : tnode) : boolean;
  114. function str_length(p : tnode) : longint;
  115. function is_emptyset(p : tnode):boolean;
  116. function genconstsymtree(p : tconstsym) : tnode;
  117. implementation
  118. uses
  119. cutils,verbose,globals,systems,
  120. types,cpubase,nld;
  121. function genintconstnode(v : TConstExprInt) : tordconstnode;
  122. var
  123. i,i2 : TConstExprInt;
  124. begin
  125. { we need to bootstrap this code, so it's a little bit messy }
  126. i:=2147483647;
  127. { maxcardinal }
  128. i2 := i+i+1;
  129. if (v<=i) and (v>=-i-1) then
  130. genintconstnode:=cordconstnode.create(v,s32bittype)
  131. else if (v > i) and (v <= i2) then
  132. genintconstnode:=cordconstnode.create(v,u32bittype)
  133. else
  134. genintconstnode:=cordconstnode.create(v,cs64bittype);
  135. end;
  136. function genenumnode(v : tenumsym) : tordconstnode;
  137. var
  138. htype : ttype;
  139. begin
  140. htype.setdef(v.definition);
  141. genenumnode:=cordconstnode.create(v.value,htype);
  142. end;
  143. {$ifdef INT64FUNCRESOK}
  144. function get_ordinal_value(p : tnode) : TConstExprInt;
  145. {$else INT64FUNCRESOK}
  146. function get_ordinal_value(p : tnode) : longint;
  147. {$endif INT64FUNCRESOK}
  148. begin
  149. if p.nodetype=ordconstn then
  150. get_ordinal_value:=tordconstnode(p).value
  151. else
  152. begin
  153. Message(type_e_ordinal_expr_expected);
  154. get_ordinal_value:=0;
  155. end;
  156. end;
  157. function is_constnode(p : tnode) : boolean;
  158. begin
  159. is_constnode:=(p.nodetype in [ordconstn,realconstn,stringconstn,setconstn]);
  160. end;
  161. function is_constintnode(p : tnode) : boolean;
  162. begin
  163. is_constintnode:=(p.nodetype=ordconstn) and is_integer(p.resulttype.def);
  164. end;
  165. function is_constcharnode(p : tnode) : boolean;
  166. begin
  167. is_constcharnode:=(p.nodetype=ordconstn) and is_char(p.resulttype.def);
  168. end;
  169. function is_constwidecharnode(p : tnode) : boolean;
  170. begin
  171. is_constwidecharnode:=(p.nodetype=ordconstn) and is_widechar(p.resulttype.def);
  172. end;
  173. function is_constrealnode(p : tnode) : boolean;
  174. begin
  175. is_constrealnode:=(p.nodetype=realconstn);
  176. end;
  177. function is_constboolnode(p : tnode) : boolean;
  178. begin
  179. is_constboolnode:=(p.nodetype=ordconstn) and is_boolean(p.resulttype.def);
  180. end;
  181. function is_constresourcestringnode(p : tnode) : boolean;
  182. begin
  183. is_constresourcestringnode:=(p.nodetype=loadn) and
  184. (tloadnode(p).symtableentry.typ=constsym) and
  185. (tconstsym(tloadnode(p).symtableentry).consttyp=constresourcestring);
  186. end;
  187. function str_length(p : tnode) : longint;
  188. begin
  189. str_length:=tstringconstnode(p).len;
  190. end;
  191. function is_emptyset(p : tnode):boolean;
  192. var
  193. i : longint;
  194. begin
  195. i:=0;
  196. if p.nodetype=setconstn then
  197. begin
  198. while (i<32) and (tsetconstnode(p).value_set^[i]=0) do
  199. inc(i);
  200. end;
  201. is_emptyset:=(i=32);
  202. end;
  203. function genconstsymtree(p : tconstsym) : tnode;
  204. var
  205. p1 : tnode;
  206. len : longint;
  207. pc : pchar;
  208. begin
  209. p1:=nil;
  210. case p.consttyp of
  211. constint :
  212. p1:=genintconstnode(p.valueord);
  213. conststring :
  214. begin
  215. len:=p.len;
  216. if not(cs_ansistrings in aktlocalswitches) and (len>255) then
  217. len:=255;
  218. getmem(pc,len+1);
  219. move(pchar(p.valueptr)^,pc^,len);
  220. pc[len]:=#0;
  221. p1:=cstringconstnode.createpchar(pc,len);
  222. end;
  223. constchar :
  224. p1:=cordconstnode.create(p.valueord,cchartype);
  225. constreal :
  226. p1:=crealconstnode.create(pbestreal(p.valueptr)^,pbestrealtype^);
  227. constbool :
  228. p1:=cordconstnode.create(p.valueord,booltype);
  229. constset :
  230. p1:=csetconstnode.create(pconstset(p.valueptr),p.consttype);
  231. constord :
  232. p1:=cordconstnode.create(p.valueord,p.consttype);
  233. constpointer :
  234. p1:=cpointerconstnode.create(p.valueordptr,p.consttype);
  235. constnil :
  236. p1:=cnilnode.create;
  237. constresourcestring:
  238. begin
  239. p1:=cloadnode.create(tvarsym(p),tvarsym(p).owner);
  240. p1.resulttype:=cansistringtype;
  241. end;
  242. end;
  243. genconstsymtree:=p1;
  244. end;
  245. {*****************************************************************************
  246. TREALCONSTNODE
  247. *****************************************************************************}
  248. { generic code }
  249. { overridden by: }
  250. { i386 }
  251. constructor trealconstnode.create(v : bestreal;const t:ttype);
  252. begin
  253. inherited create(realconstn);
  254. restype:=t;
  255. value_real:=v;
  256. lab_real:=nil;
  257. end;
  258. function trealconstnode.getcopy : tnode;
  259. var
  260. n : trealconstnode;
  261. begin
  262. n:=trealconstnode(inherited getcopy);
  263. n.value_real:=value_real;
  264. n.lab_real:=lab_real;
  265. getcopy:=n;
  266. end;
  267. function trealconstnode.det_resulttype:tnode;
  268. begin
  269. result:=nil;
  270. resulttype:=restype;
  271. end;
  272. function trealconstnode.pass_1 : tnode;
  273. begin
  274. result:=nil;
  275. location.loc:=LOC_MEM;
  276. { needs to be loaded into an FPU register }
  277. registersfpu:=1;
  278. end;
  279. function trealconstnode.docompare(p: tnode): boolean;
  280. begin
  281. docompare :=
  282. inherited docompare(p) and
  283. (value_real = trealconstnode(p).value_real);
  284. end;
  285. {*****************************************************************************
  286. TORDCONSTNODE
  287. *****************************************************************************}
  288. constructor tordconstnode.create(v : tconstexprint;const t:ttype);
  289. begin
  290. inherited create(ordconstn);
  291. value:=v;
  292. restype:=t;
  293. end;
  294. function tordconstnode.getcopy : tnode;
  295. var
  296. n : tordconstnode;
  297. begin
  298. n:=tordconstnode(inherited getcopy);
  299. n.value:=value;
  300. n.restype := restype;
  301. getcopy:=n;
  302. end;
  303. function tordconstnode.det_resulttype:tnode;
  304. begin
  305. result:=nil;
  306. resulttype:=restype;
  307. testrange(resulttype.def,value,false);
  308. end;
  309. function tordconstnode.pass_1 : tnode;
  310. begin
  311. result:=nil;
  312. location.loc:=LOC_MEM;
  313. end;
  314. function tordconstnode.docompare(p: tnode): boolean;
  315. begin
  316. docompare :=
  317. inherited docompare(p) and
  318. (value = tordconstnode(p).value);
  319. end;
  320. {*****************************************************************************
  321. TPOINTERCONSTNODE
  322. *****************************************************************************}
  323. constructor tpointerconstnode.create(v : TConstPtrUInt;const t:ttype);
  324. begin
  325. inherited create(pointerconstn);
  326. value:=v;
  327. restype:=t;
  328. end;
  329. function tpointerconstnode.getcopy : tnode;
  330. var
  331. n : tpointerconstnode;
  332. begin
  333. n:=tpointerconstnode(inherited getcopy);
  334. n.value:=value;
  335. n.restype := restype;
  336. getcopy:=n;
  337. end;
  338. function tpointerconstnode.det_resulttype:tnode;
  339. begin
  340. result:=nil;
  341. resulttype:=restype;
  342. end;
  343. function tpointerconstnode.pass_1 : tnode;
  344. begin
  345. result:=nil;
  346. location.loc:=LOC_MEM;
  347. end;
  348. function tpointerconstnode.docompare(p: tnode): boolean;
  349. begin
  350. docompare :=
  351. inherited docompare(p) and
  352. (value = tpointerconstnode(p).value);
  353. end;
  354. {*****************************************************************************
  355. TSTRINGCONSTNODE
  356. *****************************************************************************}
  357. constructor tstringconstnode.createstr(const s : string;st:tstringtype);
  358. var
  359. l : longint;
  360. begin
  361. inherited create(stringconstn);
  362. l:=length(s);
  363. len:=l;
  364. { stringdup write even past a #0 }
  365. getmem(value_str,l+1);
  366. move(s[1],value_str^,l);
  367. value_str[l]:=#0;
  368. lab_str:=nil;
  369. if st=st_default then
  370. begin
  371. if cs_ansistrings in aktlocalswitches then
  372. st_type:=st_ansistring
  373. else
  374. st_type:=st_shortstring;
  375. end
  376. else
  377. st_type:=st;
  378. end;
  379. constructor tstringconstnode.createwstr(w : pcompilerwidestring);
  380. begin
  381. inherited create(stringconstn);
  382. len:=getlengthwidestring(w);
  383. initwidestring(pcompilerwidestring(value_str));
  384. copywidestring(w,pcompilerwidestring(value_str));
  385. lab_str:=nil;
  386. st_type:=st_widestring;
  387. end;
  388. constructor tstringconstnode.createpchar(s : pchar;l : longint);
  389. begin
  390. inherited create(stringconstn);
  391. len:=l;
  392. value_str:=s;
  393. if (cs_ansistrings in aktlocalswitches) or
  394. (len>255) then
  395. st_type:=st_ansistring
  396. else
  397. st_type:=st_shortstring;
  398. lab_str:=nil;
  399. end;
  400. destructor tstringconstnode.destroy;
  401. begin
  402. if st_type=st_widestring then
  403. donewidestring(pcompilerwidestring(value_str))
  404. else
  405. ansistringdispose(value_str,len);
  406. inherited destroy;
  407. end;
  408. function tstringconstnode.getcopy : tnode;
  409. var
  410. n : tstringconstnode;
  411. begin
  412. n:=tstringconstnode(inherited getcopy);
  413. n.st_type:=st_type;
  414. n.len:=len;
  415. n.lab_str:=lab_str;
  416. if st_type=st_widestring then
  417. begin
  418. initwidestring(pcompilerwidestring(n.value_str));
  419. copywidestring(pcompilerwidestring(value_str),pcompilerwidestring(n.value_str));
  420. end
  421. else
  422. n.value_str:=getpcharcopy;
  423. getcopy:=n;
  424. end;
  425. function tstringconstnode.det_resulttype:tnode;
  426. begin
  427. result:=nil;
  428. case st_type of
  429. st_shortstring :
  430. resulttype:=cshortstringtype;
  431. st_ansistring :
  432. resulttype:=cansistringtype;
  433. st_widestring :
  434. resulttype:=cwidestringtype;
  435. st_longstring :
  436. resulttype:=clongstringtype;
  437. end;
  438. end;
  439. function tstringconstnode.pass_1 : tnode;
  440. begin
  441. result:=nil;
  442. location.loc:=LOC_MEM;
  443. end;
  444. function tstringconstnode.getpcharcopy : pchar;
  445. var
  446. pc : pchar;
  447. begin
  448. pc:=nil;
  449. getmem(pc,len+1);
  450. if pc=nil then
  451. Message(general_f_no_memory_left);
  452. move(value_str^,pc^,len+1);
  453. getpcharcopy:=pc;
  454. end;
  455. function tstringconstnode.docompare(p: tnode): boolean;
  456. begin
  457. docompare :=
  458. inherited docompare(p) and
  459. (len = tstringconstnode(p).len) and
  460. { Don't compare the pchars, since they may contain null chars }
  461. { Since all equal constant strings are replaced by the same }
  462. { label, the following compare should be enough (JM) }
  463. (lab_str = tstringconstnode(p).lab_str);
  464. end;
  465. {*****************************************************************************
  466. TSETCONSTNODE
  467. *****************************************************************************}
  468. constructor tsetconstnode.create(s : pconstset;const t:ttype);
  469. begin
  470. inherited create(setconstn,nil);
  471. restype:=t;
  472. if assigned(s) then
  473. begin
  474. new(value_set);
  475. value_set^:=s^;
  476. end
  477. else
  478. value_set:=nil;
  479. end;
  480. destructor tsetconstnode.destroy;
  481. begin
  482. if assigned(value_set) then
  483. dispose(value_set);
  484. inherited destroy;
  485. end;
  486. function tsetconstnode.getcopy : tnode;
  487. var
  488. n : tsetconstnode;
  489. begin
  490. n:=tsetconstnode(inherited getcopy);
  491. if assigned(value_set) then
  492. begin
  493. new(n.value_set);
  494. n.value_set^:=value_set^
  495. end
  496. else
  497. n.value_set:=nil;
  498. n.restype := restype;
  499. n.lab_set:=lab_set;
  500. getcopy:=n;
  501. end;
  502. function tsetconstnode.det_resulttype:tnode;
  503. begin
  504. result:=nil;
  505. resulttype:=restype;
  506. end;
  507. function tsetconstnode.pass_1 : tnode;
  508. begin
  509. result:=nil;
  510. location.loc:=LOC_MEM;
  511. end;
  512. function tsetconstnode.docompare(p: tnode): boolean;
  513. var
  514. i: 0..31;
  515. begin
  516. if inherited docompare(p) then
  517. begin
  518. for i := 0 to 31 do
  519. if (value_set^[i] <> tsetconstnode(p).value_set^[i]) then
  520. begin
  521. docompare := false;
  522. exit
  523. end;
  524. docompare := true;
  525. end
  526. else
  527. docompare := false;
  528. end;
  529. {*****************************************************************************
  530. TNILNODE
  531. *****************************************************************************}
  532. constructor tnilnode.create;
  533. begin
  534. inherited create(niln);
  535. end;
  536. function tnilnode.det_resulttype:tnode;
  537. begin
  538. result:=nil;
  539. resulttype:=voidpointertype;
  540. end;
  541. function tnilnode.pass_1 : tnode;
  542. begin
  543. result:=nil;
  544. location.loc:=LOC_MEM;
  545. end;
  546. begin
  547. crealconstnode:=trealconstnode;
  548. cordconstnode:=tordconstnode;
  549. cpointerconstnode:=tpointerconstnode;
  550. cstringconstnode:=tstringconstnode;
  551. csetconstnode:=tsetconstnode;
  552. cnilnode:=tnilnode;
  553. end.
  554. {
  555. $Log$
  556. Revision 1.23 2001-09-17 21:29:12 peter
  557. * merged netbsd, fpu-overflow from fixes branch
  558. Revision 1.22 2001/09/02 21:12:06 peter
  559. * move class of definitions into type section for delphi
  560. Revision 1.21 2001/08/26 13:36:40 florian
  561. * some cg reorganisation
  562. * some PPC updates
  563. Revision 1.20 2001/08/06 10:18:39 jonas
  564. * restype wasn't copied for some constant nodetypes in getcopy
  565. Revision 1.19 2001/07/08 21:00:15 peter
  566. * various widestring updates, it works now mostly without charset
  567. mapping supported
  568. Revision 1.18 2001/05/08 21:06:30 florian
  569. * some more support for widechars commited especially
  570. regarding type casting and constants
  571. Revision 1.17 2001/04/13 01:22:09 peter
  572. * symtable change to classes
  573. * range check generation and errors fixed, make cycle DEBUG=1 works
  574. * memory leaks fixed
  575. Revision 1.16 2001/04/02 21:20:30 peter
  576. * resulttype rewrite
  577. Revision 1.15 2000/12/31 11:14:10 jonas
  578. + implemented/fixed docompare() mathods for all nodes (not tested)
  579. + nopt.pas, nadd.pas, i386/n386opt.pas: optimized nodes for adding strings
  580. and constant strings/chars together
  581. * n386add.pas: don't copy temp strings (of size 256) to another temp string
  582. when adding
  583. Revision 1.14 2000/12/16 15:58:48 jonas
  584. * genintconstnode now returns cardinals instead of int64 constants if possible
  585. Revision 1.13 2000/12/15 13:26:01 jonas
  586. * only return int64's from functions if it int64funcresok is defined
  587. + added int64funcresok define to options.pas
  588. Revision 1.12 2000/12/07 17:19:42 jonas
  589. * new constant handling: from now on, hex constants >$7fffffff are
  590. parsed as unsigned constants (otherwise, $80000000 got sign extended
  591. and became $ffffffff80000000), all constants in the longint range
  592. become longints, all constants >$7fffffff and <=cardinal($ffffffff)
  593. are cardinals and the rest are int64's.
  594. * added lots of longint typecast to prevent range check errors in the
  595. compiler and rtl
  596. * type casts of symbolic ordinal constants are now preserved
  597. * fixed bug where the original resulttype.def wasn't restored correctly
  598. after doing a 64bit rangecheck
  599. Revision 1.11 2000/11/29 00:30:32 florian
  600. * unused units removed from uses clause
  601. * some changes for widestrings
  602. Revision 1.10 2000/10/31 22:02:48 peter
  603. * symtable splitted, no real code changes
  604. Revision 1.9 2000/10/14 21:52:55 peter
  605. * fixed memory leaks
  606. Revision 1.8 2000/10/14 10:14:50 peter
  607. * moehrendorf oct 2000 rewrite
  608. Revision 1.7 2000/09/28 19:49:52 florian
  609. *** empty log message ***
  610. Revision 1.6 2000/09/27 20:25:44 florian
  611. * more stuff fixed
  612. Revision 1.5 2000/09/27 18:14:31 florian
  613. * fixed a lot of syntax errors in the n*.pas stuff
  614. Revision 1.4 2000/09/26 14:59:34 florian
  615. * more conversion work done
  616. Revision 1.3 2000/09/24 21:15:34 florian
  617. * some errors fix to get more stuff compilable
  618. Revision 1.2 2000/09/24 15:06:19 peter
  619. * use defines.inc
  620. Revision 1.1 2000/09/22 21:44:48 florian
  621. + initial revision
  622. }