2
0

symconst.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  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. vis_none
  135. );
  136. { symbol options }
  137. tsymoption=(sp_none,
  138. sp_static, { static symbol in class/object/record }
  139. sp_hint_deprecated,
  140. sp_hint_platform,
  141. sp_hint_library,
  142. sp_hint_unimplemented,
  143. sp_has_overloaded,
  144. sp_internal, { internal symbol, not reported as unused }
  145. sp_implicitrename,
  146. sp_hint_experimental,
  147. sp_generic_para,
  148. sp_has_deprecated_msg,
  149. sp_generic_dummy, { this is used for symbols that are generated when a
  150. generic is encountered to ease inline
  151. specializations, etc; those symbols can be
  152. "overridden" with a completely different symbol }
  153. sp_explicitrename { this is used to keep track of type renames created
  154. by the user }
  155. );
  156. tsymoptions=set of tsymoption;
  157. { flags for a definition }
  158. tdefoption=(df_none,
  159. { type is unique, i.e. declared with type = type <tdef>; }
  160. df_unique,
  161. { type is a generic }
  162. df_generic,
  163. { type is a specialization of a generic type }
  164. df_specialization,
  165. { def has been copied from another def so symtable is not owned }
  166. df_copied_def
  167. );
  168. tdefoptions=set of tdefoption;
  169. tdefstate=(ds_none,
  170. ds_vmt_written,
  171. ds_rtti_table_used,
  172. ds_init_table_used,
  173. ds_rtti_table_written,
  174. ds_init_table_written,
  175. ds_dwarf_dbg_info_used,
  176. ds_dwarf_dbg_info_written
  177. );
  178. tdefstates=set of tdefstate;
  179. { tsymlist entry types }
  180. tsltype = (sl_none,
  181. sl_load,
  182. sl_call,
  183. sl_subscript,
  184. sl_vec,
  185. sl_typeconv,
  186. sl_absolutetype
  187. );
  188. { base types for orddef }
  189. tordtype = (
  190. uvoid,
  191. u8bit,u16bit,u32bit,u64bit,
  192. s8bit,s16bit,s32bit,s64bit,
  193. pasbool8,pasbool16,pasbool32,pasbool64,
  194. bool8bit,bool16bit,bool32bit,bool64bit,
  195. uchar,uwidechar,scurrency
  196. );
  197. { string types }
  198. tstringtype = (
  199. st_shortstring,
  200. st_longstring,
  201. st_ansistring,
  202. st_widestring,
  203. st_unicodestring
  204. );
  205. tvarianttype = (
  206. vt_normalvariant,vt_olevariant
  207. );
  208. tcallercallee = (callnoside,callerside,calleeside,callbothsides);
  209. { basic type for tprocdef and tprocvardef }
  210. tproctypeoption=(potype_none,
  211. potype_proginit, { Program initialization }
  212. potype_unitinit, { unit initialization }
  213. potype_unitfinalize, { unit finalization }
  214. potype_constructor, { Procedure is a constructor }
  215. potype_destructor, { Procedure is a destructor }
  216. potype_operator, { Procedure defines an operator }
  217. potype_procedure,
  218. potype_function,
  219. potype_class_constructor, { class constructor }
  220. potype_class_destructor, { class destructor }
  221. potype_propgetter, { Dispinterface property accessors }
  222. potype_propsetter,
  223. potype_exceptfilter { SEH exception filter or termination handler }
  224. );
  225. tproctypeoptions=set of tproctypeoption;
  226. { other options for tprocdef and tprocvardef }
  227. tprocoption=(po_none,
  228. po_classmethod, { class method }
  229. po_virtualmethod, { Procedure is a virtual method }
  230. po_abstractmethod, { Procedure is an abstract method }
  231. po_finalmethod, { Procedure is a final method }
  232. po_staticmethod, { static method }
  233. po_overridingmethod, { method with override directive }
  234. po_methodpointer, { method pointer, only in procvardef, also used for 'with object do' }
  235. po_interrupt, { Procedure is an interrupt handler }
  236. po_iocheck, { IO checking should be done after a call to the procedure }
  237. po_assembler, { Procedure is written in assembler }
  238. po_msgstr, { method for string message handling }
  239. po_msgint, { method for int message handling }
  240. po_exports, { Procedure has export directive (needed for OS/2) }
  241. po_external, { Procedure is external (in other object or lib)}
  242. po_overload, { procedure is declared with overload directive }
  243. po_varargs, { printf like arguments }
  244. po_internconst, { procedure has constant evaluator intern }
  245. { flag that only the address of a method is returned and not a full methodpointer }
  246. po_addressonly,
  247. { procedure is exported }
  248. po_public,
  249. { calling convention is specified explicitly }
  250. po_hascallingconvention,
  251. { reintroduce flag }
  252. po_reintroduce,
  253. { location of parameters is given explicitly as it is necessary for some syscall
  254. conventions like that one of MorphOS }
  255. po_explicitparaloc,
  256. { no stackframe will be generated, used by lowlevel assembler like get_frame }
  257. po_nostackframe,
  258. po_has_mangledname,
  259. po_has_public_name,
  260. po_forward,
  261. po_global,
  262. po_has_inlininginfo,
  263. { The different kind of syscalls on MorphOS }
  264. po_syscall_legacy,
  265. po_syscall_sysv,
  266. po_syscall_basesysv,
  267. po_syscall_sysvbase,
  268. po_syscall_r12base,
  269. { Procedure can be inlined }
  270. po_inline,
  271. { Procedure is used for internal compiler calls }
  272. po_compilerproc,
  273. { importing }
  274. po_has_importdll,
  275. po_has_importname,
  276. po_kylixlocal,
  277. po_dispid,
  278. { weakly linked (i.e., may or may not exist at run time) }
  279. po_weakexternal,
  280. { Objective-C method }
  281. po_objc,
  282. { enumerator support }
  283. po_enumerator_movenext,
  284. { optional Objective-C protocol method }
  285. po_optional,
  286. { nested procedure that uses Delphi-style calling convention for passing
  287. the frame pointer (pushed on the stack, always the last parameter,
  288. removed by the caller). Required for nested procvar compatibility,
  289. because such procvars can hold both regular and nested procedures
  290. (when calling a regular procedure using the above convention, it will
  291. simply not see the frame pointer parameter, and since the caller cleans
  292. up the stack will also remain balanced) }
  293. po_delphi_nested_cc,
  294. { allows the routine's RawByteString var/out parameters to accept parameters
  295. that do not match exactly (without typeconversion) }
  296. po_rtlproc,
  297. { Non-virtual method of a Java class that has been transformed into a
  298. "virtual; final;" method for JVM-implementation reasons }
  299. po_java_nonvirtual,
  300. { automatically inherited routine from parent class, ignore for resolving
  301. overloads (on the JVM target, constructors are not automatically
  302. inherited, so we explicitly have to add the constructors of the parent
  303. class to the child class; this influences the overload resolution logic
  304. though, so ignore them there) }
  305. po_ignore_for_overload_resolution
  306. );
  307. tprocoptions=set of tprocoption;
  308. { options for objects and classes }
  309. tobjecttyp = (odt_none,
  310. odt_class,
  311. odt_object,
  312. odt_interfacecom,
  313. odt_interfacecom_property,
  314. odt_interfacecom_function,
  315. odt_interfacecorba,
  316. odt_cppclass,
  317. odt_dispinterface,
  318. odt_objcclass,
  319. odt_objcprotocol,
  320. odt_objccategory, { note that these are changed into odt_class afterwards }
  321. odt_helper,
  322. odt_javaclass,
  323. odt_interfacejava
  324. );
  325. { defines the type of the extended "structure"; only used for parsing }
  326. thelpertype=(ht_none,
  327. ht_class,
  328. ht_record
  329. );
  330. { Variations in interfaces implementation }
  331. { Beware, this data is duplicated in the compiler and rtl. }
  332. { Do not change the order of the fields. }
  333. tinterfaceentrytype = (etStandard,
  334. etVirtualMethodResult,
  335. etStaticMethodResult,
  336. etFieldValue,
  337. etVirtualMethodClass,
  338. etStaticMethodClass,
  339. etFieldValueClass
  340. );
  341. { options for objects and classes }
  342. tobjectoption=(oo_none,
  343. oo_is_forward, { the class is only a forward declared yet }
  344. oo_is_abstract, { the class is abstract - only descendants can be used }
  345. oo_is_sealed, { the class is sealed - can't have descendants }
  346. oo_has_virtual, { the object/class has virtual methods }
  347. oo_has_private,
  348. oo_has_protected,
  349. oo_has_strictprivate,
  350. oo_has_strictprotected,
  351. oo_has_constructor, { the object/class has a constructor }
  352. oo_has_destructor, { the object/class has a destructor }
  353. oo_has_vmt, { the object/class has a vmt }
  354. oo_has_msgstr,
  355. oo_has_msgint,
  356. oo_can_have_published,{ the class has rtti, i.e. you can publish properties }
  357. oo_has_default_property,
  358. oo_has_valid_guid,
  359. oo_has_enumerator_movenext,
  360. oo_has_enumerator_current,
  361. oo_is_external, { the class is externally implemented (objcclass, cppclass) }
  362. oo_is_formal, { the class is only formally defined in this module (x = objcclass; external [name 'x'];) }
  363. oo_is_classhelper, { objcclasses that represent categories, and Delpi-style class helpers, are marked like this }
  364. oo_has_class_constructor, { the object/class has a class constructor }
  365. oo_has_class_destructor, { the object/class has a class destructor }
  366. oo_is_enum_class, { the class represents an enum (JVM) }
  367. oo_has_new_destructor { the object/class declares a destructor (apart from potentially inherting one from the parent) }
  368. );
  369. tobjectoptions=set of tobjectoption;
  370. tarraydefoption=(ado_none,
  371. ado_IsConvertedPointer,
  372. ado_IsDynamicArray,
  373. ado_IsVariant,
  374. ado_IsConstructor,
  375. ado_IsArrayOfConst,
  376. ado_IsConstString,
  377. ado_IsBitPacked
  378. );
  379. tarraydefoptions=set of tarraydefoption;
  380. { options for properties }
  381. tpropertyoption=(ppo_none,
  382. ppo_indexed, { delcared wwith "index" keyword }
  383. ppo_defaultproperty,
  384. ppo_stored,
  385. ppo_hasparameters, { has parameters: prop[param1, param2: type] }
  386. ppo_implements,
  387. ppo_enumerator_current, { implements current property for enumerator }
  388. ppo_overrides, { overrides ancestor property }
  389. ppo_dispid_write { no longer used }
  390. );
  391. tpropertyoptions=set of tpropertyoption;
  392. { options for variables }
  393. tvaroption=(vo_none,
  394. vo_is_external,
  395. vo_is_dll_var,
  396. vo_is_thread_var,
  397. vo_has_local_copy,
  398. vo_is_const, { variable is declared as const (parameter) and can't be written to }
  399. vo_is_public,
  400. vo_is_high_para,
  401. vo_is_funcret,
  402. vo_is_self,
  403. vo_is_vmt,
  404. vo_is_result, { special result variable }
  405. vo_is_parentfp,
  406. vo_is_loop_counter, { used to detect assignments to loop counter }
  407. vo_is_hidden_para,
  408. vo_has_explicit_paraloc,
  409. vo_is_syscall_lib,
  410. vo_has_mangledname,
  411. vo_is_typed_const,
  412. vo_is_range_check,
  413. vo_is_overflow_check,
  414. vo_is_typinfo_para,
  415. vo_is_weak_external,
  416. { Objective-C message selector parameter }
  417. vo_is_msgsel,
  418. { first field of variant part of a record }
  419. vo_is_first_field,
  420. vo_volatile,
  421. vo_has_section,
  422. { variable contains a winlike WideString which should be finalized
  423. even in $J- state }
  424. vo_force_finalize,
  425. { this is an internal variable that is used for Default() intrinsic in code
  426. sections }
  427. vo_is_default_var
  428. );
  429. tvaroptions=set of tvaroption;
  430. { register variable }
  431. tvarregable=(vr_none,
  432. vr_intreg,
  433. vr_fpureg,
  434. vr_mmreg,
  435. { does not mean "needs address register", but "if it's a parameter which is }
  436. { passed by reference, then its address can be put in a register }
  437. vr_addr
  438. );
  439. { types of the symtables }
  440. TSymtabletype = (
  441. abstractsymtable, { not a real symtable }
  442. globalsymtable, { unit interface symtable }
  443. staticsymtable, { unit implementation symtable }
  444. ObjectSymtable, { object symtable }
  445. recordsymtable, { record symtable }
  446. localsymtable, { subroutine symtable }
  447. parasymtable, { arguments symtable }
  448. withsymtable, { with operator symtable }
  449. stt_excepTSymtable, { try/except symtable }
  450. exportedmacrosymtable, { }
  451. localmacrosymtable, { }
  452. enumsymtable, { symtable for enum members }
  453. arraysymtable { used to store parameterised type
  454. in array }
  455. );
  456. { options for symtables }
  457. tsymtableoption = (
  458. sto_has_helper, { contains at least one helper symbol }
  459. sto_has_generic { contains at least one generic symbol }
  460. );
  461. tsymtableoptions = set of tsymtableoption;
  462. { definition contains the informations about a type }
  463. tdeftyp = (abstractdef,
  464. arraydef,recorddef,pointerdef,orddef,
  465. stringdef,enumdef,procdef,objectdef,errordef,
  466. filedef,formaldef,setdef,procvardef,floatdef,
  467. classrefdef,forwarddef,variantdef,undefineddef
  468. );
  469. { possible types for symtable entries }
  470. tsymtyp = (abstractsym,
  471. staticvarsym,localvarsym,paravarsym,fieldvarsym,
  472. typesym,procsym,unitsym,constsym,enumsym,
  473. errorsym,syssym,labelsym,absolutevarsym,propertysym,
  474. macrosym,namespacesym
  475. );
  476. { State of the variable:
  477. vs_declared: variable has been declared, not initialised
  478. (e.g. normal variable, out parameter)
  479. vs_initialised: variable has been declared and is valid
  480. (e.g. typed constant, var/const parameter)
  481. vs_read: variable has been read and the read was checked for validity
  482. (so a warning has been given if necessary)
  483. vs_read_not_warned: variable has been read, but we didn't warn about
  484. whether or not the variable was valid
  485. (e.g. read of global variable -> warn at end of compilation unit if
  486. the state is vs_read_not_warned, since that means it's only read and
  487. never written)
  488. vs_referred_not_inited: variable has been used in length/low/high/@/...
  489. expression, was not yet initialised and needn't be at that time
  490. (e.g. length() of a statically allocated array, or sizeof(variable))
  491. vs_written: variable has been assigned/written to, but not yet read
  492. (e.g. assigning something to a variable/parameter)
  493. vs_readwritten: variable has been written to and read from }
  494. tvarstate=(vs_none,
  495. vs_declared,vs_initialised,vs_read,vs_read_not_warned,
  496. vs_referred_not_inited,vs_written,vs_readwritten
  497. );
  498. tvarspez = (vs_value,vs_const,vs_var,vs_out,vs_constref,vs_final);
  499. absolutetyp = (tovar,toasm,toaddr);
  500. tconsttyp = (constnone,
  501. constord,conststring,constreal,
  502. constset,constpointer,constnil,
  503. constresourcestring,constwstring,constguid
  504. );
  505. { RTTI information to store }
  506. trttitype = (
  507. fullrtti,initrtti,
  508. { Objective-C }
  509. objcmetartti,objcmetarortti,
  510. objcclassrtti,objcclassrortti
  511. );
  512. { The order is from low priority to high priority,
  513. Note: the operators > and < are used on this list }
  514. tequaltype = (
  515. te_incompatible,
  516. te_convert_operator,
  517. te_convert_l6,
  518. te_convert_l5, { ad infinitum... }
  519. te_convert_l4, { and yet even less preferred conversion }
  520. te_convert_l3, { even less preferred conversion (possibly with loss of data) }
  521. te_convert_l2, { compatible less preferred conversion }
  522. te_convert_l1, { compatible conversion }
  523. te_equal, { the definitions are equal }
  524. te_exact
  525. );
  526. tvariantequaltype = (
  527. tve_incompatible,
  528. tve_chari64,
  529. tve_sstring,
  530. tve_astring,
  531. tve_wstring,
  532. tve_ustring,
  533. tve_boolformal,
  534. tve_extended,
  535. tve_dblcurrency,
  536. tve_single,
  537. tve_cardinal,
  538. tve_longint,
  539. tve_smallint,
  540. tve_word,
  541. tve_shortint,
  542. tve_byte
  543. );
  544. tvariantequaltypes = set of tvariantequaltype;
  545. tdefdbgstatus = (
  546. dbg_state_unused,
  547. dbg_state_used,
  548. dbg_state_writing,
  549. dbg_state_written,
  550. dbg_state_queued
  551. );
  552. var
  553. clearstack_pocalls : tproccalloptions;
  554. cdecl_pocalls : tproccalloptions;
  555. const
  556. {$ifndef jvm}
  557. inherited_objectoptions : tobjectoptions = [oo_has_virtual,oo_has_private,oo_has_protected,
  558. oo_has_strictprotected,oo_has_strictprivate,oo_has_constructor,oo_has_destructor,
  559. oo_can_have_published];
  560. {$else not jvm}
  561. { constructors are not inherited in Java }
  562. inherited_objectoptions : tobjectoptions = [oo_has_virtual,oo_has_private,oo_has_protected,
  563. oo_has_strictprotected,oo_has_strictprivate,oo_has_destructor,
  564. oo_can_have_published];
  565. {$endif not jvm}
  566. {$ifdef i386}
  567. { we only take this into account on i386, on other platforms we always
  568. push in the same order
  569. }
  570. pushleftright_pocalls : tproccalloptions = [pocall_register,pocall_pascal];
  571. {$endif}
  572. SymTypeName : array[tsymtyp] of string[12] = (
  573. 'abstractsym','globalvar','localvar','paravar','fieldvar',
  574. 'type','proc','unit','const','enum',
  575. 'errorsym','system sym','label','absolutevar','property',
  576. 'macrosym','namespace'
  577. );
  578. typName : array[tdeftyp] of string[12] = (
  579. 'abstractdef','arraydef','recorddef','pointerdef','orddef',
  580. 'stringdef','enumdef','procdef','objectdef','errordef',
  581. 'filedef','formaldef','setdef','procvardef','floatdef',
  582. 'classrefdef','forwarddef','variantdef','undefineddef'
  583. );
  584. EqualTypeName : array[tequaltype] of string[16] = (
  585. 'incompatible','convert_operator','convert_l6', 'convert_l5','convert_l4','convert_l3',
  586. 'convert_l2','convert_l1','equal','exact'
  587. );
  588. visibilityName : array[tvisibility] of string[16] = (
  589. 'hidden','strict private','private','strict protected','protected',
  590. 'public','published',''
  591. );
  592. {$ifndef jvm}
  593. default_class_type=odt_class;
  594. {$else not jvm}
  595. default_class_type=odt_javaclass;
  596. {$endif not jvm}
  597. { !! Be sure to keep these in sync with ones in rtl/inc/varianth.inc }
  598. varempty = 0;
  599. varnull = 1;
  600. varsmallint = 2;
  601. varinteger = 3;
  602. varsingle = 4;
  603. vardouble = 5;
  604. varcurrency = 6;
  605. vardate = 7;
  606. varolestr = 8;
  607. vardispatch = 9;
  608. varerror = 10;
  609. varboolean = 11;
  610. varvariant = 12;
  611. varunknown = 13;
  612. vardecimal = 14;
  613. varshortint = 16;
  614. varbyte = 17;
  615. varword = 18;
  616. varlongword = 19;
  617. varint64 = 20;
  618. varqword = 21;
  619. varUndefined = -1;
  620. varstrarg = $48;
  621. varustrarg = $49;
  622. varstring = $100;
  623. varany = $101;
  624. varustring = $102;
  625. vardefmask = $fff;
  626. vararray = $2000;
  627. varbyref = $4000;
  628. implementation
  629. end.