vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #ifndef _ASN1_COMPILER_MISC_H_ |
| 2 | #define _ASN1_COMPILER_MISC_H_ |
| 3 | |
| 4 | /* |
| 5 | * Make the target language identifier out of one or more names. |
| 6 | * The function will concatenate the names and replace unsafe characters |
| 7 | * with safe ones. |
| 8 | */ |
| 9 | char *asn1c_make_identifier(int unsafe_only_spaces, char *arg1, ...); |
| 10 | |
| 11 | /* |
| 12 | * Return the type name of the specified expression. |
| 13 | */ |
| 14 | enum tnfmt { |
| 15 | TNF_UNMODIFIED, /* Return unmodified type name */ |
| 16 | TNF_INCLUDE, /* Format for #include <> */ |
| 17 | TNF_CTYPE, /* Format as normal C-ish type (append "_t") */ |
| 18 | TNF_SAFE, /* Replace unsafe characters with _ */ |
| 19 | TNF_RSAFE, /* Recursion-safe C type format */ |
| 20 | }; |
| 21 | char *asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format); |
| 22 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | #endif /* _ASN1_COMPILER_MISC_H_ */ |