NativeEnumerated.c vars NULL init and check
[com/asn1c.git] / tests / tests-asn1c-compiler / 88-integer-enum-OK.asn1.-Pfwide-types
1
2 /*** <<< INCLUDES [T] >>> ***/
3
4 #include <INTEGER.h>
5
6 /*** <<< DEPS [T] >>> ***/
7
8 typedef enum T {
9         T_a     = 1,
10         T_b     = 2
11 } e_T;
12
13 /*** <<< TYPE-DECLS [T] >>> ***/
14
15 typedef INTEGER_t        T_t;
16
17 /*** <<< FUNC-DECLS [T] >>> ***/
18
19 extern asn_TYPE_descriptor_t asn_DEF_T;
20 asn_struct_free_f T_free;
21 asn_struct_print_f T_print;
22 asn_constr_check_f T_constraint;
23 ber_type_decoder_f T_decode_ber;
24 der_type_encoder_f T_encode_der;
25 xer_type_decoder_f T_decode_xer;
26 xer_type_encoder_f T_encode_xer;
27
28 /*** <<< CODE [T] >>> ***/
29
30 /*
31  * This type is implemented using INTEGER,
32  * so here we adjust the DEF accordingly.
33  */
34
35 /*** <<< STAT-DEFS [T] >>> ***/
36
37 static const ber_tlv_tag_t asn_DEF_T_tags_1[] = {
38         (ASN_TAG_CLASS_UNIVERSAL | (2 << 2))
39 };
40 asn_TYPE_descriptor_t asn_DEF_T = {
41         "T",
42         "T",
43         &asn_OP_INTEGER,
44         asn_DEF_T_tags_1,
45         sizeof(asn_DEF_T_tags_1)
46                 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
47         asn_DEF_T_tags_1,       /* Same as above */
48         sizeof(asn_DEF_T_tags_1)
49                 /sizeof(asn_DEF_T_tags_1[0]), /* 1 */
50         { 0, 0, INTEGER_constraint },
51         0, 0,   /* Defined elsewhere */
52         0       /* No specifics */
53 };
54