2004-06-03 03:38:44 +00:00
|
|
|
#include "asn1fix_internal.h"
|
|
|
|
#include "asn1fix_export.h"
|
|
|
|
|
2004-08-18 05:42:05 +00:00
|
|
|
extern arg_t a1f_replace_me_with_proper_interface_arg;
|
|
|
|
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
asn1p_expr_t *
|
|
|
|
asn1f_lookup_symbol_ex(
|
|
|
|
asn1p_t *asn,
|
2004-08-22 03:10:23 +00:00
|
|
|
asn1p_module_t *mod,
|
2004-06-03 03:38:44 +00:00
|
|
|
asn1p_expr_t *expr,
|
|
|
|
asn1p_ref_t *ref) {
|
|
|
|
arg_t arg;
|
|
|
|
|
|
|
|
memset(&arg, 0, sizeof(arg));
|
|
|
|
|
|
|
|
arg.asn = asn;
|
2004-08-22 03:10:23 +00:00
|
|
|
arg.mod = mod;
|
2004-06-03 03:38:44 +00:00
|
|
|
arg.expr = expr;
|
2004-08-18 05:42:05 +00:00
|
|
|
arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
|
|
|
|
arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-08-22 03:10:23 +00:00
|
|
|
return asn1f_lookup_symbol(&arg, mod, ref);
|
2004-06-03 03:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
asn1p_expr_t *
|
|
|
|
asn1f_class_access_ex(asn1p_t *asn,
|
|
|
|
asn1p_module_t *mod,
|
|
|
|
asn1p_expr_t *expr,
|
2004-08-22 03:10:23 +00:00
|
|
|
asn1p_ref_t *ref) {
|
2004-08-18 05:42:05 +00:00
|
|
|
arg_t arg;
|
|
|
|
|
|
|
|
memset(&arg, 0, sizeof(arg));
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
arg.asn = asn;
|
|
|
|
arg.mod = mod;
|
|
|
|
arg.expr = expr;
|
2004-08-18 05:42:05 +00:00
|
|
|
arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
|
|
|
|
arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-08-22 03:10:23 +00:00
|
|
|
return asn1f_class_access(&arg, mod, ref);
|
2004-06-03 03:38:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
asn1p_expr_t *
|
2004-09-22 16:03:19 +00:00
|
|
|
asn1f_find_terminal_type_ex(asn1p_t *asn, asn1p_expr_t *expr) {
|
2004-08-18 05:42:05 +00:00
|
|
|
arg_t arg;
|
|
|
|
|
|
|
|
memset(&arg, 0, sizeof(arg));
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
arg.asn = asn;
|
2004-09-22 16:03:19 +00:00
|
|
|
arg.mod = expr->module;
|
2004-06-03 03:38:44 +00:00
|
|
|
arg.expr = expr;
|
2004-08-18 05:42:05 +00:00
|
|
|
arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
|
|
|
|
arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-08-22 03:10:23 +00:00
|
|
|
return asn1f_find_terminal_type(&arg, expr);
|
2004-06-03 03:38:44 +00:00
|
|
|
}
|
2004-08-18 05:42:05 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
asn1f_fix_dereference_values_ex(asn1p_t *asn, asn1p_module_t *mod,
|
|
|
|
asn1p_expr_t *expr) {
|
|
|
|
arg_t arg;
|
|
|
|
|
|
|
|
memset(&arg, 0, sizeof(arg));
|
|
|
|
|
|
|
|
arg.asn = asn;
|
|
|
|
arg.mod = mod;
|
|
|
|
arg.expr = expr;
|
|
|
|
arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
|
|
|
|
arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
|
|
|
|
|
|
|
|
return asn1f_fix_dereference_values(&arg);
|
|
|
|
}
|
|
|
|
|