Commit ec1585d0 authored by Lev Walkin's avatar Lev Walkin

honor known-extern-type

parent 0320d877
...@@ -27,12 +27,17 @@ asn1f_value_resolve(arg_t *arg, asn1p_expr_t *expr, const enum asn1p_constraint_ ...@@ -27,12 +27,17 @@ asn1f_value_resolve(arg_t *arg, asn1p_expr_t *expr, const enum asn1p_constraint_
* 1. Find the terminal type for this assignment. * 1. Find the terminal type for this assignment.
*/ */
type_expr = asn1f_find_terminal_type(arg, expr); type_expr = asn1f_find_terminal_type(arg, expr);
DEBUG("terminal type %p", type_expr);
if(type_expr == 0) { if(type_expr == 0) {
if(errno == EEXIST) {
DEBUG("External type for %s at line %d",
expr->Identifier, expr->_lineno);
return 0;
} else {
FATAL("Terminal type for %s at line %d not found", FATAL("Terminal type for %s at line %d not found",
expr->Identifier, expr->_lineno); expr->Identifier, expr->_lineno);
return -1; return -1;
} }
}
if(asn1f_look_value_in_type(arg, type_expr, expr) == -1) { if(asn1f_look_value_in_type(arg, type_expr, expr) == -1) {
FATAL("Value not found in type for %s at line %d", FATAL("Value not found in type for %s at line %d",
......
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