Commit e4d6ab83 authored by Lev Walkin's avatar Lev Walkin

libasn1fix api change

parent 83cac2f5
......@@ -365,7 +365,7 @@ emit_alphabet_check_loop(arg_t *arg, asn1cnst_range_t *range) {
asn1_integer_t natural_stop;
asn1p_expr_t *terminal;
terminal = asn1f_find_terminal_type_ex(arg->asn, arg->mod, arg->expr);
terminal = asn1f_find_terminal_type_ex(arg->asn, arg->expr);
if(terminal) {
OUT("/* The underlying type is %s */\n",
ASN_EXPR_TYPE2STR(terminal->expr_type));
......@@ -622,7 +622,7 @@ emit_value_determination_code(arg_t *arg, asn1p_expr_type_e etype, asn1cnst_rang
static asn1p_expr_type_e
_find_terminal_type(arg_t *arg) {
asn1p_expr_t *expr;
expr = asn1f_find_terminal_type_ex(arg->asn, arg->mod, arg->expr);
expr = asn1f_find_terminal_type_ex(arg->asn, arg->expr);
if(expr) return expr->expr_type;
return A1TC_INVALID;
}
......
......@@ -119,8 +119,7 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) {
* ("struct foo" instead of "foo_t").
*/
asn1p_expr_t *terminal;
terminal = asn1f_find_terminal_type_ex(
arg->asn, arg->mod, expr);
terminal = asn1f_find_terminal_type_ex(arg->asn, expr);
if(terminal && terminal == top_parent) {
_format = TNF_RSAFE;
}
......
......@@ -596,7 +596,7 @@ asn1print_expr(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *tc, enum asn1pri
asn1print_constraint(tc->combined_constraints, flags);
}
top_parent = asn1f_find_terminal_type_ex(asn, mod, tc);
top_parent = asn1f_find_terminal_type_ex(asn, tc);
if(top_parent) {
printf("\n-- Practical constraints (%s): ",
top_parent->Identifier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment