6 * This file is automatically generated by $0
7 * DO NOT EDIT MANUALLY, fix the $0 instead if necessary.
9 #ifndef ASN1_PARSER_EXPR_STR_H
10 #define ASN1_PARSER_EXPR_STR_H
15 #define __attribute__(x) /* unused */
18 static char *asn1p_expr_type2str[] __attribute__ ((unused)) = {
24 next unless(/^[ \t]+(ASN_[A-Z]+_([A-Za-z0-9_]+))/);
26 print "\t[ $1 ]\t = ";
29 if($_ eq "RELATIVE_OID") {
30 print '"RELATIVE-OID"';
43 * Convert the ASN.1 expression type back into the string representation.
45 #define ASN_EXPR_TYPE2STR(type) _asn1p_expr_type2string(type)
47 static inline char * __attribute__((unused))
48 _asn1p_expr_type2string(asn1p_expr_type_e type) {
49 assert((signed int)type >= 0);
50 if(type < sizeof(asn1p_expr_type2str)/sizeof(asn1p_expr_type2str[0]))
51 return asn1p_expr_type2str[type];
55 #endif /* ASN1_PARSER_EXPR_STR_H */