class REFERENCE_I inherit TYPE_I redefine is_reference, same_as end TYPE_C undefine is_void, is_bit redefine is_pointer end SHARED_C_LEVEL feature -- Status report element_type: INTEGER_8 is -- Reference element type. do Result := feature {MD_SIGNATURE_CONSTANTS}.Element_type_object end feature level: INTEGER is -- Internal code for generation do Result := C_ref end is_pointer: BOOLEAN is True -- The C type is a reference type. is_reference: BOOLEAN is True -- is the C type a reference type ? append_signature (st: STRUCTURED_TEXT) is do st.add_string ("EIF_REFERENCE") end dump (buffer: GENERATION_BUFFER) is -- Debug purpose do buffer.putstring ("REFERENCE") end il_type_name (a_prefix: STRING): STRING is -- Name of current class type. once Result := "any" end same_as (other: TYPE_I): BOOLEAN is -- Is `other' equal to Current ? do Result := other.is_reference end c_type: TYPE_C is -- C type once Result := Current end description: REFERENCE_DESC is -- Type description for skeleton do create Result end generate_cecil_value (f: GENERATION_BUFFER) is -- Generate Cecil type value. do f.putstring ("SK_DTYPE") end c_string: STRING is "EIF_REFERENCE" -- String generated for the type. c_string_id: INTEGER is -- String ID generated for type. once Result := Names_heap.eif_reference_name_id end union_tag: STRING is "rarg" separate_get_macro: STRING is "CURGSO" -- String generated to access the argument to a separate call separate_send_macro: STRING is "CURSQRSO" -- String generated to return the result of a separate call hash_code: INTEGER is -- Hash code for current type once Result := Reference_code end sk_value: INTEGER is -- Generate SK value associated to the current type. do Result := Sk_ref end cecil_value: INTEGER is do Result := Sk_dtype end generate_union (buffer: GENERATION_BUFFER) is -- Generate discriminant of C structure "item" associated -- to the current C type in `buffer'. do buffer.putstring ("it_ref") end generate_sk_value (buffer: GENERATION_BUFFER) is -- Generate SK value associated to current C type in `buffer'. do buffer.putstring ("SK_REF") end type_a: TYPE_A is do Result := System.any_class.compiled_class.actual_type end end