symdefh.inc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. {
  2. $Id$
  3. Copyright (c) 1993-98 by Florian Klaempfl, Pierre Muller
  4. Interface for the definition types of the symtable
  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. {************************************************
  19. TDef
  20. ************************************************}
  21. { definition contains the informations about a type }
  22. tdeftype = (abstractdef,arraydef,recorddef,pointerdef,orddef,
  23. stringdef,enumdef,procdef,objectdef,errordef,
  24. filedef,formaldef,setdef,procvardef,floatdef,
  25. classrefdef);
  26. pdef = ^tdef;
  27. tdef = object(tsymtableentry)
  28. deftype : tdeftype;
  29. sym : ptypesym; { which type the definition was generated this def }
  30. has_inittable : boolean;
  31. { adress of init informations }
  32. inittable_label : pasmlabel;
  33. has_rtti : boolean;
  34. { address of rtti }
  35. rtti_label : pasmlabel;
  36. nextglobal,
  37. previousglobal : pdef;
  38. {$ifdef GDB}
  39. globalnb : word;
  40. is_def_stab_written : boolean;
  41. {$endif GDB}
  42. constructor init;
  43. constructor load;
  44. destructor done;virtual;
  45. procedure deref;virtual;
  46. procedure symderef;virtual;
  47. function typename:string;
  48. procedure write;virtual;
  49. function size:longint;virtual;
  50. function alignment:longint;virtual;
  51. function gettypename:string;virtual;
  52. function is_publishable : boolean;virtual;
  53. function is_in_current : boolean;
  54. procedure correct_owner_symtable; { registers enumdef inside objects or
  55. record directly in the owner symtable !! }
  56. { debug }
  57. {$ifdef GDB}
  58. function stabstring : pchar;virtual;
  59. procedure concatstabto(asmlist : paasmoutput);virtual;
  60. function NumberString:string;
  61. procedure set_globalnb;
  62. function allstabstring : pchar;
  63. {$endif GDB}
  64. { init. tables }
  65. function needs_inittable : boolean;virtual;
  66. procedure generate_inittable;
  67. function get_inittable_label : pasmlabel;
  68. { the default implemenation calls write_rtti_data }
  69. { if init and rtti data is different these procedures }
  70. { must be overloaded }
  71. procedure write_init_data;virtual;
  72. procedure write_child_init_data;virtual;
  73. { rtti }
  74. procedure write_rtti_name;
  75. function get_rtti_label : string;virtual;
  76. procedure generate_rtti;virtual;
  77. procedure write_rtti_data;virtual;
  78. procedure write_child_rtti_data;virtual;
  79. function is_intregable : boolean;
  80. function is_fpuregable : boolean;
  81. private
  82. savesize : longint;
  83. end;
  84. targconvtyp = (act_convertable,act_equal,act_exact);
  85. tvarspez = (vs_value,vs_const,vs_var);
  86. pdefcoll = ^tdefcoll;
  87. tdefcoll = record
  88. data : pdef;
  89. datasym : ptypesym;
  90. next : pdefcoll;
  91. paratyp : tvarspez;
  92. argconvtyp : targconvtyp;
  93. convertlevel : byte;
  94. register : tregister;
  95. end;
  96. tfiletype = (ft_text,ft_typed,ft_untyped);
  97. pfiledef = ^tfiledef;
  98. tfiledef = object(tdef)
  99. filetype : tfiletype;
  100. typed_as : pdef;
  101. constructor init(ft : tfiletype;tas : pdef);
  102. constructor load;
  103. procedure write;virtual;
  104. procedure deref;virtual;
  105. function gettypename:string;virtual;
  106. procedure setsize;
  107. { debug }
  108. {$ifdef GDB}
  109. function stabstring : pchar;virtual;
  110. procedure concatstabto(asmlist : paasmoutput);virtual;
  111. {$endif GDB}
  112. end;
  113. pformaldef = ^tformaldef;
  114. tformaldef = object(tdef)
  115. constructor init;
  116. constructor load;
  117. procedure write;virtual;
  118. function gettypename:string;virtual;
  119. {$ifdef GDB}
  120. function stabstring : pchar;virtual;
  121. procedure concatstabto(asmlist : paasmoutput);virtual;
  122. {$endif GDB}
  123. end;
  124. perrordef = ^terrordef;
  125. terrordef = object(tdef)
  126. constructor init;
  127. function gettypename:string;virtual;
  128. { debug }
  129. {$ifdef GDB}
  130. function stabstring : pchar;virtual;
  131. {$endif GDB}
  132. end;
  133. { tpointerdef and tclassrefdef should get a common
  134. base class, but I derived tclassrefdef from tpointerdef
  135. to avoid problems with bugs (FK)
  136. }
  137. ppointerdef = ^tpointerdef;
  138. tpointerdef = object(tdef)
  139. definition : pdef;
  140. defsym : ptypesym;
  141. is_far : boolean;
  142. constructor init(def : pdef);
  143. constructor initfar(def : pdef);
  144. constructor load;
  145. procedure write;virtual;
  146. procedure deref;virtual;
  147. function gettypename:string;virtual;
  148. { debug }
  149. {$ifdef GDB}
  150. function stabstring : pchar;virtual;
  151. procedure concatstabto(asmlist : paasmoutput);virtual;
  152. {$endif GDB}
  153. end;
  154. pobjectdef = ^tobjectdef;
  155. tobjectdef = object(tdef)
  156. childof : pobjectdef;
  157. objname : pstring;
  158. symtable : psymtable;
  159. objectoptions : tobjectoptions;
  160. { to be able to have a variable vmt position }
  161. { and no vmt field for objects without virtuals }
  162. vmt_offset : longint;
  163. constructor init(const n : string;c : pobjectdef);
  164. constructor load;
  165. destructor done;virtual;
  166. procedure write;virtual;
  167. procedure deref;virtual;
  168. function size : longint;virtual;
  169. function alignment:longint;virtual;
  170. function is_publishable : boolean;virtual;
  171. function vmt_mangledname : string;
  172. function rtti_name : string;
  173. procedure check_forwards;
  174. function is_related(d : pobjectdef) : boolean;
  175. function is_class : boolean;
  176. function next_free_name_index : longint;
  177. procedure insertvmt;
  178. procedure set_parent(c : pobjectdef);
  179. { debug }
  180. {$ifdef GDB}
  181. function stabstring : pchar;virtual;
  182. {$endif GDB}
  183. { init/final }
  184. function needs_inittable : boolean;virtual;
  185. procedure write_init_data;virtual;
  186. procedure write_child_init_data;virtual;
  187. { rtti }
  188. function get_rtti_label : string;virtual;
  189. procedure generate_rtti;virtual;
  190. procedure write_rtti_data;virtual;
  191. procedure write_child_rtti_data;virtual;
  192. end;
  193. pclassrefdef = ^tclassrefdef;
  194. tclassrefdef = object(tpointerdef)
  195. constructor init(def : pdef);
  196. constructor load;
  197. procedure write;virtual;
  198. function gettypename:string;virtual;
  199. { debug }
  200. {$ifdef GDB}
  201. function stabstring : pchar;virtual;
  202. procedure concatstabto(asmlist : paasmoutput);virtual;
  203. {$endif GDB}
  204. end;
  205. parraydef = ^tarraydef;
  206. tarraydef = object(tdef)
  207. private
  208. rangenr : longint;
  209. public
  210. lowrange,
  211. highrange : longint;
  212. definition : pdef;
  213. rangedef : pdef;
  214. IsVariant,
  215. IsConstructor,
  216. IsArrayOfConst : boolean;
  217. function gettypename:string;virtual;
  218. function elesize : longint;
  219. constructor init(l,h : longint;rd : pdef);
  220. constructor load;
  221. procedure write;virtual;
  222. {$ifdef GDB}
  223. function stabstring : pchar;virtual;
  224. procedure concatstabto(asmlist : paasmoutput);virtual;
  225. {$endif GDB}
  226. procedure deref;virtual;
  227. function size : longint;virtual;
  228. function alignment : longint;virtual;
  229. { generates the ranges needed by the asm instruction BOUND (i386)
  230. or CMP2 (Motorola) }
  231. procedure genrangecheck;
  232. { returns the label of the range check string }
  233. function getrangecheckstring : string;
  234. function needs_inittable : boolean;virtual;
  235. procedure write_rtti_data;virtual;
  236. procedure write_child_rtti_data;virtual;
  237. end;
  238. precorddef = ^trecorddef;
  239. trecorddef = object(tdef)
  240. symtable : psymtable;
  241. constructor init(p : psymtable);
  242. constructor load;
  243. destructor done;virtual;
  244. procedure write;virtual;
  245. procedure deref;virtual;
  246. function size:longint;virtual;
  247. function alignment : longint;virtual;
  248. function gettypename:string;virtual;
  249. { debug }
  250. {$ifdef GDB}
  251. function stabstring : pchar;virtual;
  252. procedure concatstabto(asmlist : paasmoutput);virtual;
  253. {$endif GDB}
  254. { init/final }
  255. procedure write_init_data;virtual;
  256. procedure write_child_init_data;virtual;
  257. function needs_inittable : boolean;virtual;
  258. { rtti }
  259. procedure write_rtti_data;virtual;
  260. procedure write_child_rtti_data;virtual;
  261. end;
  262. porddef = ^torddef;
  263. torddef = object(tdef)
  264. low,high : longint;
  265. rangenr : longint;
  266. typ : tbasetype;
  267. constructor init(t : tbasetype;v,b : longint);
  268. constructor load;
  269. procedure write;virtual;
  270. function is_publishable : boolean;virtual;
  271. function gettypename:string;virtual;
  272. procedure setsize;
  273. { generates the ranges needed by the asm instruction BOUND }
  274. { or CMP2 (Motorola) }
  275. procedure genrangecheck;
  276. function getrangecheckstring : string;
  277. { debug }
  278. {$ifdef GDB}
  279. function stabstring : pchar;virtual;
  280. {$endif GDB}
  281. { rtti }
  282. procedure write_rtti_data;virtual;
  283. end;
  284. pfloatdef = ^tfloatdef;
  285. tfloatdef = object(tdef)
  286. typ : tfloattype;
  287. constructor init(t : tfloattype);
  288. constructor load;
  289. procedure write;virtual;
  290. function gettypename:string;virtual;
  291. function is_publishable : boolean;virtual;
  292. procedure setsize;
  293. { debug }
  294. {$ifdef GDB}
  295. function stabstring : pchar;virtual;
  296. {$endif GDB}
  297. { rtti }
  298. procedure write_rtti_data;virtual;
  299. end;
  300. pabstractprocdef = ^tabstractprocdef;
  301. tabstractprocdef = object(tdef)
  302. { saves a definition to the return type }
  303. retdef : pdef;
  304. proctypeoption : tproctypeoption;
  305. proccalloptions : tproccalloptions;
  306. procoptions : tprocoptions;
  307. para1 : pdefcoll;
  308. symtablelevel : byte;
  309. fpu_used : byte; { how many stack fpu must be empty }
  310. constructor init;
  311. constructor load;
  312. destructor done;virtual;
  313. procedure write;virtual;
  314. procedure deref;virtual;
  315. procedure concatdef(p : pdef;vsp : tvarspez);
  316. procedure concattypesym(p : ptypesym;vsp : tvarspez);
  317. function para_size : longint;
  318. function demangled_paras : string;
  319. procedure test_if_fpu_result;
  320. { debug }
  321. {$ifdef GDB}
  322. function stabstring : pchar;virtual;
  323. procedure concatstabto(asmlist : paasmoutput);virtual;
  324. {$endif GDB}
  325. end;
  326. pprocvardef = ^tprocvardef;
  327. tprocvardef = object(tabstractprocdef)
  328. constructor init;
  329. constructor load;
  330. procedure write;virtual;
  331. function size : longint;virtual;
  332. function gettypename:string;virtual;
  333. function is_publishable : boolean;virtual;
  334. { debug }
  335. {$ifdef GDB}
  336. function stabstring : pchar;virtual;
  337. procedure concatstabto(asmlist : paasmoutput); virtual;
  338. {$endif GDB}
  339. { rtti }
  340. procedure write_child_rtti_data;virtual;
  341. procedure write_rtti_data;virtual;
  342. end;
  343. tmessageinf = record
  344. case integer of
  345. 0 : (str : pchar);
  346. 1 : (i : longint);
  347. end;
  348. pprocdef = ^tprocdef;
  349. tprocdef = object(tabstractprocdef)
  350. private
  351. _mangledname : pchar;
  352. public
  353. extnumber : longint;
  354. messageinf : tmessageinf;
  355. nextoverloaded : pprocdef;
  356. { where is this function defined, needed here because there
  357. is only one symbol for all overloaded functions }
  358. fileinfo : tfileposinfo;
  359. { pointer to the local symbol table }
  360. localst : psymtable;
  361. { pointer to the parameter symbol table }
  362. parast : psymtable;
  363. { browser info }
  364. lastref,
  365. defref,
  366. crossref,
  367. lastwritten : pref;
  368. refcount : longint;
  369. _class : pobjectdef;
  370. { it's a tree, but this not easy to handle }
  371. { used for inlined procs }
  372. code : pointer;
  373. { true, if the procedure is only declared }
  374. { (forward procedure) }
  375. forwarddef,
  376. { true if the procedure is declared in the interface }
  377. interfacedef : boolean;
  378. { check the problems of manglednames }
  379. count : boolean;
  380. is_used : boolean;
  381. { small set which contains the modified registers }
  382. {$ifdef newcg}
  383. usedregisters : tregisterset;
  384. {$else newcg}
  385. usedregisters : longint;
  386. {$endif newcg}
  387. constructor init;
  388. constructor load;
  389. destructor done;virtual;
  390. procedure write;virtual;
  391. procedure deref;virtual;
  392. function haspara:boolean;
  393. function mangledname : string;
  394. procedure setmangledname(const s : string);
  395. procedure load_references;
  396. function write_references : boolean;
  397. function procname: string;
  398. { debug }
  399. {$ifdef GDB}
  400. function cplusplusmangledname : string;
  401. function stabstring : pchar;virtual;
  402. procedure concatstabto(asmlist : paasmoutput);virtual;
  403. {$endif GDB}
  404. { browser }
  405. {$ifdef BrowserLog}
  406. procedure add_to_browserlog;
  407. {$endif BrowserLog}
  408. end;
  409. pstringdef = ^tstringdef;
  410. tstringdef = object(tdef)
  411. string_typ : tstringtype;
  412. len : longint;
  413. constructor shortinit(l : byte);
  414. constructor shortload;
  415. constructor longinit(l : longint);
  416. constructor longload;
  417. constructor ansiinit(l : longint);
  418. constructor ansiload;
  419. constructor wideinit(l : longint);
  420. constructor wideload;
  421. function stringtypname:string;
  422. function size : longint;virtual;
  423. procedure write;virtual;
  424. function gettypename:string;virtual;
  425. function is_publishable : boolean;virtual;
  426. { debug }
  427. {$ifdef GDB}
  428. function stabstring : pchar;virtual;
  429. procedure concatstabto(asmlist : paasmoutput);virtual;
  430. {$endif GDB}
  431. { init/final }
  432. function needs_inittable : boolean;virtual;
  433. { rtti }
  434. procedure write_rtti_data;virtual;
  435. end;
  436. penumdef = ^tenumdef;
  437. tenumdef = object(tdef)
  438. rangenr,
  439. minval,
  440. maxval : longint;
  441. has_jumps : boolean;
  442. firstenum : penumsym;
  443. basedef : penumdef;
  444. constructor init;
  445. constructor init_subrange(_basedef:penumdef;_min,_max:longint);
  446. constructor load;
  447. destructor done;virtual;
  448. procedure write;virtual;
  449. procedure deref;virtual;
  450. function gettypename:string;virtual;
  451. function is_publishable : boolean;virtual;
  452. procedure calcsavesize;
  453. procedure setmax(_max:longint);
  454. procedure setmin(_min:longint);
  455. function min:longint;
  456. function max:longint;
  457. function getrangecheckstring:string;
  458. procedure genrangecheck;
  459. { debug }
  460. {$ifdef GDB}
  461. function stabstring : pchar;virtual;
  462. {$endif GDB}
  463. { rtti }
  464. procedure write_child_rtti_data;virtual;
  465. procedure write_rtti_data;virtual;
  466. end;
  467. psetdef = ^tsetdef;
  468. tsetdef = object(tdef)
  469. setof : pdef;
  470. settype : tsettype;
  471. constructor init(s : pdef;high : longint);
  472. constructor load;
  473. procedure write;virtual;
  474. procedure deref;virtual;
  475. function gettypename:string;virtual;
  476. function is_publishable : boolean;virtual;
  477. { debug }
  478. {$ifdef GDB}
  479. function stabstring : pchar;virtual;
  480. procedure concatstabto(asmlist : paasmoutput);virtual;
  481. {$endif GDB}
  482. { rtti }
  483. procedure write_rtti_data;virtual;
  484. procedure write_child_rtti_data;virtual;
  485. end;
  486. {
  487. $Log$
  488. Revision 1.39 1999-08-07 14:21:02 florian
  489. * some small problems fixed
  490. Revision 1.38 1999/08/05 16:53:15 peter
  491. * V_Fatal=1, all other V_ are also increased
  492. * Check for local procedure when assigning procvar
  493. * fixed comment parsing because directives
  494. * oldtp mode directives better supported
  495. * added some messages to errore.msg
  496. Revision 1.37 1999/08/03 22:03:16 peter
  497. * moved bitmask constants to sets
  498. * some other type/const renamings
  499. Revision 1.36 1999/08/02 21:29:04 florian
  500. * the main branch psub.pas is now used for
  501. newcg compiler
  502. Revision 1.35 1999/07/27 23:42:20 peter
  503. * indirect type referencing is now allowed
  504. Revision 1.34 1999/07/23 16:05:30 peter
  505. * alignment is now saved in the symtable
  506. * C alignment added for records
  507. * PPU version increased to solve .12 <-> .13 probs
  508. Revision 1.33 1999/06/22 16:24:45 pierre
  509. * local browser stuff corrected
  510. Revision 1.32 1999/06/02 10:11:51 florian
  511. * make cycle fixed i.e. compilation with 0.99.10
  512. * some fixes for qword
  513. * start of register calling conventions
  514. Revision 1.31 1999/05/31 16:42:35 peter
  515. * interfacedef flag for procdef if it's defined in the interface, to
  516. make a difference with 'forward;' directive forwarddef. Fixes 253
  517. Revision 1.30 1999/05/27 19:45:04 peter
  518. * removed oldasm
  519. * plabel -> pasmlabel
  520. * -a switches to source writing automaticly
  521. * assembler readers OOPed
  522. * asmsymbol automaticly external
  523. * jumptables and other label fixes for asm readers
  524. Revision 1.29 1999/05/23 18:42:15 florian
  525. * better error recovering in typed constants
  526. * some problems with arrays of const fixed, some problems
  527. due my previous
  528. - the location type of array constructor is now LOC_MEM
  529. - the pushing of high fixed
  530. - parameter copying fixed
  531. - zero temp. allocation removed
  532. * small problem in the assembler writers fixed:
  533. ref to nil wasn't written correctly
  534. Revision 1.28 1999/05/19 16:48:28 florian
  535. * tdef.typename: returns a now a proper type name for the most types
  536. Revision 1.27 1999/05/13 21:59:42 peter
  537. * removed oldppu code
  538. * warning if objpas is loaded from uses
  539. * first things for new deref writing
  540. Revision 1.26 1999/05/12 00:19:59 peter
  541. * removed R_DEFAULT_SEG
  542. * uniform float names
  543. Revision 1.25 1999/05/08 19:52:37 peter
  544. + MessagePos() which is enhanced Message() function but also gets the
  545. position info
  546. * Removed comp warnings
  547. Revision 1.24 1999/05/06 09:05:30 peter
  548. * generic write_float and str_float
  549. * fixed constant float conversions
  550. Revision 1.23 1999/04/26 18:30:02 peter
  551. * farpointerdef moved into pointerdef.is_far
  552. Revision 1.22 1999/04/26 13:31:49 peter
  553. * release storenumber,double_checksum
  554. Revision 1.21 1999/04/21 09:43:52 peter
  555. * storenumber works
  556. * fixed some typos in double_checksum
  557. + incompatible types type1 and type2 message (with storenumber)
  558. Revision 1.20 1999/04/14 09:15:00 peter
  559. * first things to store the symbol/def number in the ppu
  560. Revision 1.19 1999/04/08 15:57:52 peter
  561. + subrange checking for readln()
  562. Revision 1.18 1999/03/02 18:24:21 peter
  563. * fixed overloading of array of char
  564. Revision 1.17 1999/03/01 13:45:06 pierre
  565. + added staticppusymtable symtable type for local browsing
  566. Revision 1.16 1999/02/22 20:13:39 florian
  567. + first implementation of message keyword
  568. Revision 1.15 1999/01/20 14:18:40 pierre
  569. * bugs related to mangledname solved
  570. - linux external without name
  571. -external procs already used
  572. (added count and is_used boolean fiels in tprocvar)
  573. Revision 1.14 1999/01/12 14:25:33 peter
  574. + BrowserLog for browser.log generation
  575. + BrowserCol for browser info in TCollections
  576. * released all other UseBrowser
  577. Revision 1.13 1998/12/30 22:15:53 peter
  578. + farpointer type
  579. * absolutesym now also stores if its far
  580. Revision 1.12 1998/12/10 09:47:28 florian
  581. + basic operations with int64/qord (compiler with -dint64)
  582. + rtti of enumerations extended: names are now written
  583. Revision 1.11 1998/11/29 21:45:49 florian
  584. * problem with arrays with init tables fixed
  585. Revision 1.10 1998/11/20 15:36:00 florian
  586. * problems with rtti fixed, hope it works
  587. Revision 1.9 1998/11/10 10:09:14 peter
  588. * va_list -> array of const
  589. Revision 1.8 1998/11/09 11:44:37 peter
  590. + va_list for printf support
  591. Revision 1.7 1998/11/05 12:02:59 peter
  592. * released useansistring
  593. * removed -Sv, its now available in fpc modes
  594. Revision 1.6 1998/10/22 17:11:23 pierre
  595. + terminated the include exclude implementation for i386
  596. * enums inside records fixed
  597. Revision 1.5 1998/10/16 13:12:55 pierre
  598. * added vmt_offsets in destructors code also !!!
  599. * vmt_offset code for m68k
  600. Revision 1.4 1998/10/16 08:51:52 peter
  601. + target_os.stackalignment
  602. + stack can be aligned at 2 or 4 byte boundaries
  603. Revision 1.3 1998/10/05 21:33:30 peter
  604. * fixed 161,165,166,167,168
  605. Revision 1.2 1998/10/02 07:20:40 florian
  606. * range checking in units doesn't work if the units are smartlinked, fixed
  607. Revision 1.1 1998/09/23 12:03:57 peter
  608. * overloading fix for array of const
  609. }