symconst.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. {
  2. Copyright (c) 1998-2002 by Florian Klaempfl, Pierre Muller
  3. Symbol table constants
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  15. ****************************************************************************
  16. }
  17. unit symconst;
  18. {$i fpcdefs.inc}
  19. interface
  20. uses
  21. globtype;
  22. const
  23. def_alignment = 4;
  24. C_alignment = -1;
  25. bit_alignment = -2;
  26. mac68k_alignment = -3;
  27. { if you change one of the following contants, }
  28. { you have also to change the typinfo unit}
  29. { and the rtl/i386,template/rttip.inc files }
  30. tkUnknown = 0;
  31. tkInteger = 1;
  32. tkChar = 2;
  33. tkEnumeration = 3;
  34. tkFloat = 4;
  35. tkSet = 5;
  36. tkMethod = 6;
  37. tkSString = 7;
  38. tkString = tkSString;
  39. tkLString = 8;
  40. tkAString = 9;
  41. tkWString = 10;
  42. tkVariant = 11;
  43. tkArray = 12;
  44. tkRecord = 13;
  45. tkInterface= 14;
  46. tkClass = 15;
  47. tkObject = 16;
  48. tkWChar = 17;
  49. tkBool = 18;
  50. tkInt64 = 19;
  51. tkQWord = 20;
  52. tkDynArray = 21;
  53. tkInterfaceCorba = 22;
  54. tkProcVar = 23;
  55. tkUString = 24;
  56. tkUChar = 25;
  57. tkHelper = 26;
  58. tkFile = 27;
  59. otSByte = 0;
  60. otUByte = 1;
  61. otSWord = 2;
  62. otUWord = 3;
  63. otSLong = 4;
  64. otULong = 5;
  65. otSLongLong = 6;
  66. otULongLong = 7;
  67. ftSingle = 0;
  68. ftDouble = 1;
  69. ftExtended = 2;
  70. ftComp = 3;
  71. ftCurr = 4;
  72. ftFloat128 = 5;
  73. mkProcedure = 0;
  74. mkFunction = 1;
  75. mkConstructor = 2;
  76. mkDestructor = 3;
  77. mkClassProcedure = 4;
  78. mkClassFunction = 5;
  79. mkClassConstructor = 6;
  80. mkClassDestructor = 7;
  81. mkOperatorOverload = 8;
  82. // delphi has the next too:
  83. //mkSafeProcedure = 9;
  84. //mkSafeFunction = 10;
  85. pfvar = 1;
  86. pfConst = 2;
  87. pfArray = 4;
  88. pfAddress = 8;
  89. pfReference= 16;
  90. pfOut = 32;
  91. pfConstRef = 64;
  92. unknown_level = 0;
  93. main_program_level = 1;
  94. normal_function_level = 2;
  95. { implicit parameter positions, normal parameters start at 10
  96. and will increase with 10 for each parameter. The high parameters
  97. will be inserted with n+1 }
  98. paranr_parentfp = 1;
  99. paranr_parentfp_delphi_cc_leftright = 1;
  100. paranr_self = 2;
  101. paranr_result = 3;
  102. paranr_vmt = 4;
  103. { the implicit parameters for Objective-C methods need to come
  104. after the hidden result parameter }
  105. paranr_objc_self = 4;
  106. paranr_objc_cmd = 5;
  107. { Required to support variations of syscalls on MorphOS }
  108. paranr_syscall_basesysv = 9;
  109. paranr_syscall_sysvbase = high(word)-5;
  110. paranr_syscall_r12base = high(word)-4;
  111. paranr_syscall_legacy = high(word)-3;
  112. paranr_result_leftright = high(word)-2;
  113. paranr_parentfp_delphi_cc = high(word)-1;
  114. { prefix for names of class helper procsyms added to regular symtables }
  115. class_helper_prefix = 'CH$';
  116. type
  117. { keep this in sync with TIntfFlag in rtl/objpas/typinfo.pp }
  118. TCompilerIntfFlag = (ifHasGuid,ifDispInterface,ifDispatch,ifHasStrGUID);
  119. { Deref entry options }
  120. tdereftype = (deref_nil,
  121. deref_unit,
  122. deref_symid,
  123. deref_defid
  124. );
  125. { symbol visibility }
  126. tvisibility=(
  127. vis_hidden,
  128. vis_strictprivate,
  129. vis_private,
  130. vis_strictprotected,
  131. vis_protected,
  132. vis_public,
  133. vis_published
  134. );
  135. { symbol options }
  136. tsymoption=(sp_none,
  137. sp_static, { static symbol in class/object/record }
  138. sp_hint_deprecated,
  139. sp_hint_platform,
  140. sp_hint_library,
  141. sp_hint_unimplemented,
  142. sp_has_overloaded,
  143. sp_internal, { internal symbol, not reported as unused }
  144. sp_implicitrename,
  145. sp_hint_experimental,
  146. sp_generic_para,
  147. sp_has_deprecated_msg,
  148. sp_generic_dummy { this is used for symbols that are generated when a
  149. generic is encountered to ease inline
  150. specializations, etc; those symbols can be
  151. "overridden" with a completely different symbol }
  152. );
  153. tsymoptions=set of tsymoption;
  154. { flags for a definition }
  155. tdefoption=(df_none,
  156. { type is unique, i.e. declared with type = type <tdef>; }
  157. df_unique,
  158. { type is a generic }
  159. df_generic,
  160. { type is a specialization of a generic type }
  161. df_specialization,
  162. { def has been copied from another def so symtable is not owned }
  163. df_copied_def,
  164. { this flag is set when the methods for a spezialization where already
  165. generated; this is for example needed in case of the enumerator in the
  166. generic lists of fgl.pp: the enumerator is specialized as part of the
  167. surrounding class and if the class and the enumerator are used in the
  168. same unit the methods of the enumerator are generated twice, once as part
  169. of the class and once as part of the temporary variable that holds the
  170. enumerator }
  171. df_methods_specialized
  172. );
  173. tdefoptions=set of tdefoption;
  174. tdefstate=(ds_none,
  175. ds_vmt_written,
  176. ds_rtti_table_used,
  177. ds_init_table_used,
  178. ds_rtti_table_written,
  179. ds_init_table_written,
  180. ds_dwarf_dbg_info_used,
  181. ds_dwarf_dbg_info_written
  182. );
  183. tdefstates=set of tdefstate;
  184. { tsymlist entry types }
  185. tsltype = (sl_none,
  186. sl_load,
  187. sl_call,
  188. sl_subscript,
  189. sl_vec,
  190. sl_typeconv,
  191. sl_absolutetype
  192. );
  193. { base types for orddef }
  194. tordtype = (
  195. uvoid,
  196. u8bit,u16bit,u32bit,u64bit,
  197. s8bit,s16bit,s32bit,s64bit,
  198. pasbool8,pasbool16,pasbool32,pasbool64,
  199. bool8bit,bool16bit,bool32bit,bool64bit,
  200. uchar,uwidechar,scurrency
  201. );
  202. { string types }
  203. tstringtype = (
  204. st_shortstring,
  205. st_longstring,
  206. st_ansistring,
  207. st_widestring,
  208. st_unicodestring
  209. );
  210. tvarianttype = (
  211. vt_normalvariant,vt_olevariant
  212. );
  213. tcallercallee = (callnoside,callerside,calleeside,callbothsides);
  214. { basic type for tprocdef and tprocvardef }
  215. tproctypeoption=(potype_none,
  216. potype_proginit, { Program initialization }
  217. potype_unitinit, { unit initialization }
  218. potype_unitfinalize, { unit finalization }
  219. potype_constructor, { Procedure is a constructor }
  220. potype_destructor, { Procedure is a destructor }
  221. potype_operator, { Procedure defines an operator }
  222. potype_procedure,
  223. potype_function,
  224. potype_class_constructor, { class constructor }
  225. potype_class_destructor, { class destructor }
  226. potype_propgetter, { Dispinterface property accessors }
  227. potype_propsetter
  228. );
  229. tproctypeoptions=set of tproctypeoption;
  230. { other options for tprocdef and tprocvardef }
  231. tprocoption=(po_none,
  232. po_classmethod, { class method }
  233. po_virtualmethod, { Procedure is a virtual method }
  234. po_abstractmethod, { Procedure is an abstract method }
  235. po_finalmethod, { Procedure is a final method }
  236. po_staticmethod, { static method }
  237. po_overridingmethod, { method with override directive }
  238. po_methodpointer, { method pointer, only in procvardef, also used for 'with object do' }
  239. po_interrupt, { Procedure is an interrupt handler }
  240. po_iocheck, { IO checking should be done after a call to the procedure }
  241. po_assembler, { Procedure is written in assembler }
  242. po_msgstr, { method for string message handling }
  243. po_msgint, { method for int message handling }
  244. po_exports, { Procedure has export directive (needed for OS/2) }
  245. po_external, { Procedure is external (in other object or lib)}
  246. po_overload, { procedure is declared with overload directive }
  247. po_varargs, { printf like arguments }
  248. po_internconst, { procedure has constant evaluator intern }
  249. { flag that only the address of a method is returned and not a full methodpointer }
  250. po_addressonly,
  251. { procedure is exported }
  252. po_public,
  253. { calling convention is specified explicitly }
  254. po_hascallingconvention,
  255. { reintroduce flag }
  256. po_reintroduce,
  257. { location of parameters is given explicitly as it is necessary for some syscall
  258. conventions like that one of MorphOS }
  259. po_explicitparaloc,
  260. { no stackframe will be generated, used by lowlevel assembler like get_frame }
  261. po_nostackframe,
  262. po_has_mangledname,
  263. po_has_public_name,
  264. po_forward,
  265. po_global,
  266. po_has_inlininginfo,
  267. { The different kind of syscalls on MorphOS }
  268. po_syscall_legacy,
  269. po_syscall_sysv,
  270. po_syscall_basesysv,
  271. po_syscall_sysvbase,
  272. po_syscall_r12base,
  273. { Procedure can be inlined }
  274. po_inline,
  275. { Procedure is used for internal compiler calls }
  276. po_compilerproc,
  277. { importing }
  278. po_has_importdll,
  279. po_has_importname,
  280. po_kylixlocal,
  281. po_dispid,
  282. { weakly linked (i.e., may or may not exist at run time) }
  283. po_weakexternal,
  284. { Objective-C method }
  285. po_objc,
  286. { enumerator support }
  287. po_enumerator_movenext,
  288. { optional Objective-C protocol method }
  289. po_optional,
  290. { nested procedure that uses Delphi-style calling convention for passing
  291. the frame pointer (pushed on the stack, always the last parameter,
  292. removed by the caller). Required for nested procvar compatibility,
  293. because such procvars can hold both regular and nested procedures
  294. (when calling a regular procedure using the above convention, it will
  295. simply not see the frame pointer parameter, and since the caller cleans
  296. up the stack will also remain balanced) }
  297. po_delphi_nested_cc
  298. );
  299. tprocoptions=set of tprocoption;
  300. { options for objects and classes }
  301. tobjecttyp = (odt_none,
  302. odt_class,
  303. odt_object,
  304. odt_interfacecom,
  305. odt_interfacecom_property,
  306. odt_interfacecom_function,
  307. odt_interfacecorba,
  308. odt_cppclass,
  309. odt_dispinterface,
  310. odt_objcclass,
  311. odt_objcprotocol,
  312. odt_objccategory, { note that these are changed into odt_class afterwards }
  313. odt_helper
  314. );
  315. { defines the type of the extended "structure"; only used for parsing }
  316. thelpertype=(ht_none,
  317. ht_class,
  318. ht_record
  319. );
  320. { Variations in interfaces implementation }
  321. { Beware, this data is duplicated in the compiler and rtl. }
  322. { Do not change the order of the fields. }
  323. tinterfaceentrytype = (etStandard,
  324. etVirtualMethodResult,
  325. etStaticMethodResult,
  326. etFieldValue,
  327. etVirtualMethodClass,
  328. etStaticMethodClass,
  329. etFieldValueClass
  330. );
  331. { options for objects and classes }
  332. tobjectoption=(oo_none,
  333. oo_is_forward, { the class is only a forward declared yet }
  334. oo_is_abstract, { the class is abstract - only descendants can be used }
  335. oo_is_sealed, { the class is sealed - can't have descendants }
  336. oo_has_virtual, { the object/class has virtual methods }
  337. oo_has_private,
  338. oo_has_protected,
  339. oo_has_strictprivate,
  340. oo_has_strictprotected,
  341. oo_has_constructor, { the object/class has a constructor }
  342. oo_has_destructor, { the object/class has a destructor }
  343. oo_has_vmt, { the object/class has a vmt }
  344. oo_has_msgstr,
  345. oo_has_msgint,
  346. oo_can_have_published,{ the class has rtti, i.e. you can publish properties }
  347. oo_has_default_property,
  348. oo_has_valid_guid,
  349. oo_has_enumerator_movenext,
  350. oo_has_enumerator_current,
  351. oo_is_external, { the class is externally implemented (objcclass, cppclass) }
  352. oo_is_formal, { the class is only formally defined in this module (x = objcclass; external [name 'x'];) }
  353. oo_is_classhelper, { objcclasses that represent categories, and Delpi-style class helpers, are marked like this }
  354. oo_has_class_constructor, { the object/class has a class constructor }
  355. oo_has_class_destructor { the object/class has a class destructor }
  356. );
  357. tobjectoptions=set of tobjectoption;
  358. tarraydefoption=(ado_none,
  359. ado_IsConvertedPointer,
  360. ado_IsDynamicArray,
  361. ado_IsVariant,
  362. ado_IsConstructor,
  363. ado_IsArrayOfConst,
  364. ado_IsConstString,
  365. ado_IsBitPacked
  366. );
  367. tarraydefoptions=set of tarraydefoption;
  368. { options for properties }
  369. tpropertyoption=(ppo_none,
  370. ppo_indexed,
  371. ppo_defaultproperty,
  372. ppo_stored,
  373. ppo_hasparameters,
  374. ppo_implements,
  375. ppo_enumerator_current,
  376. ppo_dispid_read, { no longer used }
  377. ppo_dispid_write { no longer used }
  378. );
  379. tpropertyoptions=set of tpropertyoption;
  380. { options for variables }
  381. tvaroption=(vo_none,
  382. vo_is_external,
  383. vo_is_dll_var,
  384. vo_is_thread_var,
  385. vo_has_local_copy,
  386. vo_is_const, { variable is declared as const (parameter) and can't be written to }
  387. vo_is_public,
  388. vo_is_high_para,
  389. vo_is_funcret,
  390. vo_is_self,
  391. vo_is_vmt,
  392. vo_is_result, { special result variable }
  393. vo_is_parentfp,
  394. vo_is_loop_counter, { used to detect assignments to loop counter }
  395. vo_is_hidden_para,
  396. vo_has_explicit_paraloc,
  397. vo_is_syscall_lib,
  398. vo_has_mangledname,
  399. vo_is_typed_const,
  400. vo_is_range_check,
  401. vo_is_overflow_check,
  402. vo_is_typinfo_para,
  403. vo_is_weak_external,
  404. { Objective-C message selector parameter }
  405. vo_is_msgsel,
  406. { first field of variant part of a record }
  407. vo_is_first_field,
  408. vo_volatile,
  409. vo_has_section,
  410. { variable contains a winlike WideString which should be finalized
  411. even in $J- state }
  412. vo_force_finalize
  413. );
  414. tvaroptions=set of tvaroption;
  415. { register variable }
  416. tvarregable=(vr_none,
  417. vr_intreg,
  418. vr_fpureg,
  419. vr_mmreg,
  420. { does not mean "needs address register", but "if it's a parameter which is }
  421. { passed by reference, then its address can be put in a register }
  422. vr_addr
  423. );
  424. { types of the symtables }
  425. TSymtabletype = (
  426. abstractsymtable, { not a real symtable }
  427. globalsymtable, { unit interface symtable }
  428. staticsymtable, { unit implementation symtable }
  429. ObjectSymtable, { object symtable }
  430. recordsymtable, { record symtable }
  431. localsymtable, { subroutine symtable }
  432. parasymtable, { arguments symtable }
  433. withsymtable, { with operator symtable }
  434. stt_excepTSymtable, { try/except symtable }
  435. exportedmacrosymtable, { }
  436. localmacrosymtable, { }
  437. enumsymtable, { symtable for enum members }
  438. arraysymtable { used to store parameterised type
  439. in array }
  440. );
  441. { options for symtables }
  442. tsymtableoption = (
  443. sto_has_helper { contains at least one helper symbol }
  444. );
  445. tsymtableoptions = set of tsymtableoption;
  446. { definition contains the informations about a type }
  447. tdeftyp = (abstractdef,
  448. arraydef,recorddef,pointerdef,orddef,
  449. stringdef,enumdef,procdef,objectdef,errordef,
  450. filedef,formaldef,setdef,procvardef,floatdef,
  451. classrefdef,forwarddef,variantdef,undefineddef
  452. );
  453. { possible types for symtable entries }
  454. tsymtyp = (abstractsym,
  455. staticvarsym,localvarsym,paravarsym,fieldvarsym,
  456. typesym,procsym,unitsym,constsym,enumsym,
  457. errorsym,syssym,labelsym,absolutevarsym,propertysym,
  458. macrosym,namespacesym
  459. );
  460. { State of the variable:
  461. vs_declared: variable has been declared, not initialised
  462. (e.g. normal variable, out parameter)
  463. vs_initialised: variable has been declared and is valid
  464. (e.g. typed constant, var/const parameter)
  465. vs_read: variable has been read and the read was checked for validity
  466. (so a warning has been given if necessary)
  467. vs_read_not_warned: variable has been read, but we didn't warn about
  468. whether or not the variable was valid
  469. (e.g. read of global variable -> warn at end of compilation unit if
  470. the state is vs_read_not_warned, since that means it's only read and
  471. never written)
  472. vs_referred_not_inited: variable has been used in length/low/high/@/...
  473. expression, was not yet initialised and needn't be at that time
  474. (e.g. length() of a statically allocated array, or sizeof(variable))
  475. vs_written: variable has been assigned/written to, but not yet read
  476. (e.g. assigning something to a variable/parameter)
  477. vs_readwritten: variable has been written to and read from }
  478. tvarstate=(vs_none,
  479. vs_declared,vs_initialised,vs_read,vs_read_not_warned,
  480. vs_referred_not_inited,vs_written,vs_readwritten
  481. );
  482. tvarspez = (vs_value,vs_const,vs_var,vs_out,vs_constref);
  483. absolutetyp = (tovar,toasm,toaddr);
  484. tconsttyp = (constnone,
  485. constord,conststring,constreal,
  486. constset,constpointer,constnil,
  487. constresourcestring,constwstring,constguid
  488. );
  489. { RTTI information to store }
  490. trttitype = (
  491. fullrtti,initrtti,
  492. { Objective-C }
  493. objcmetartti,objcmetarortti,
  494. objcclassrtti,objcclassrortti
  495. );
  496. { The order is from low priority to high priority,
  497. Note: the operators > and < are used on this list }
  498. tequaltype = (
  499. te_incompatible,
  500. te_convert_operator,
  501. te_convert_l5, { ad infinitum... }
  502. te_convert_l4, { and yet even less preferred conversion }
  503. te_convert_l3, { even less preferred conversion (possibly with loss of data) }
  504. te_convert_l2, { compatible less preferred conversion }
  505. te_convert_l1, { compatible conversion }
  506. te_equal, { the definitions are equal }
  507. te_exact
  508. );
  509. tvariantequaltype = (
  510. tve_incompatible,
  511. tve_chari64,
  512. tve_ustring,
  513. tve_wstring,
  514. tve_astring,
  515. tve_sstring,
  516. tve_boolformal,
  517. tve_extended,
  518. tve_dblcurrency,
  519. tve_single,
  520. tve_cardinal,
  521. tve_longint,
  522. tve_smallint,
  523. tve_word,
  524. tve_shortint,
  525. tve_byte
  526. );
  527. tvariantequaltypes = set of tvariantequaltype;
  528. tdefdbgstatus = (
  529. dbg_state_unused,
  530. dbg_state_used,
  531. dbg_state_writing,
  532. dbg_state_written,
  533. dbg_state_queued
  534. );
  535. var
  536. clearstack_pocalls : tproccalloptions;
  537. cdecl_pocalls : tproccalloptions;
  538. const
  539. inherited_objectoptions : tobjectoptions = [oo_has_virtual,oo_has_private,oo_has_protected,
  540. oo_has_strictprotected,oo_has_strictprivate,oo_has_constructor,oo_has_destructor,
  541. oo_can_have_published];
  542. {$ifdef i386}
  543. { we only take this into account on i386, on other platforms we always
  544. push in the same order
  545. }
  546. pushleftright_pocalls : tproccalloptions = [pocall_register,pocall_pascal];
  547. {$endif}
  548. SymTypeName : array[tsymtyp] of string[12] = (
  549. 'abstractsym','globalvar','localvar','paravar','fieldvar',
  550. 'type','proc','unit','const','enum',
  551. 'errorsym','system sym','label','absolutevar','property',
  552. 'macrosym','namespace'
  553. );
  554. typName : array[tdeftyp] of string[12] = (
  555. 'abstractdef','arraydef','recorddef','pointerdef','orddef',
  556. 'stringdef','enumdef','procdef','objectdef','errordef',
  557. 'filedef','formaldef','setdef','procvardef','floatdef',
  558. 'classrefdef','forwarddef','variantdef','undefineddef'
  559. );
  560. EqualTypeName : array[tequaltype] of string[16] = (
  561. 'incompatible','convert_operator','convert_l5','convert_l4','convert_l3','convert_l2',
  562. 'convert_l1','equal','exact'
  563. );
  564. visibilityName : array[tvisibility] of string[16] = (
  565. 'hidden','strict private','private','strict protected','protected',
  566. 'public','published'
  567. );
  568. { !! Be sure to keep these in sync with ones in rtl/inc/varianth.inc }
  569. varempty = 0;
  570. varnull = 1;
  571. varsmallint = 2;
  572. varinteger = 3;
  573. varsingle = 4;
  574. vardouble = 5;
  575. varcurrency = 6;
  576. vardate = 7;
  577. varolestr = 8;
  578. vardispatch = 9;
  579. varerror = 10;
  580. varboolean = 11;
  581. varvariant = 12;
  582. varunknown = 13;
  583. vardecimal = 14;
  584. varshortint = 16;
  585. varbyte = 17;
  586. varword = 18;
  587. varlongword = 19;
  588. varint64 = 20;
  589. varqword = 21;
  590. varUndefined = -1;
  591. varstrarg = $48;
  592. varustrarg = $49;
  593. varstring = $100;
  594. varany = $101;
  595. varustring = $102;
  596. vardefmask = $fff;
  597. vararray = $2000;
  598. varbyref = $4000;
  599. implementation
  600. end.