blob: cdae6505f2a231e1ed7c1954cf347a2d07db3204 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#include "asn1fix_internal.h"
2#include "asn1fix_export.h"
3
Lev Walkinb45e0672004-08-18 05:42:05 +00004extern arg_t a1f_replace_me_with_proper_interface_arg;
5
6
Lev Walkinf15320b2004-06-03 03:38:44 +00007asn1p_expr_t *
8asn1f_lookup_symbol_ex(
9 asn1p_t *asn,
10 asn1p_module_t **module_rw,
11 asn1p_expr_t *expr,
12 asn1p_ref_t *ref) {
13 arg_t arg;
14
15 memset(&arg, 0, sizeof(arg));
16
17 arg.asn = asn;
18 arg.mod = *module_rw;
19 arg.expr = expr;
Lev Walkinb45e0672004-08-18 05:42:05 +000020 arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
21 arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
22
Lev Walkinf15320b2004-06-03 03:38:44 +000023
24 return asn1f_lookup_symbol(&arg, ref, module_rw);
25}
26
27asn1p_expr_t *
28asn1f_class_access_ex(asn1p_t *asn,
29 asn1p_module_t *mod,
30 asn1p_expr_t *expr,
31 asn1p_ref_t *ref,
32 asn1p_module_t **mod_r) {
Lev Walkinb45e0672004-08-18 05:42:05 +000033 arg_t arg;
34
35 memset(&arg, 0, sizeof(arg));
Lev Walkinf15320b2004-06-03 03:38:44 +000036
37 arg.asn = asn;
38 arg.mod = mod;
39 arg.expr = expr;
Lev Walkinb45e0672004-08-18 05:42:05 +000040 arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
41 arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
Lev Walkinf15320b2004-06-03 03:38:44 +000042
43 return asn1f_class_access(&arg, ref, mod_r);
44}
45
46asn1p_expr_t *
47asn1f_find_terminal_type_ex(asn1p_t *asn,
48 asn1p_module_t *mod,
49 asn1p_expr_t *expr,
50 asn1p_module_t **mod_r) {
Lev Walkinb45e0672004-08-18 05:42:05 +000051 arg_t arg;
52
53 memset(&arg, 0, sizeof(arg));
Lev Walkinf15320b2004-06-03 03:38:44 +000054
55 arg.asn = asn;
56 arg.mod = mod;
57 arg.expr = expr;
Lev Walkinb45e0672004-08-18 05:42:05 +000058 arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
59 arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
Lev Walkinf15320b2004-06-03 03:38:44 +000060
61 return asn1f_find_terminal_type(&arg, expr, mod_r);
62}
Lev Walkinb45e0672004-08-18 05:42:05 +000063
64int
65asn1f_fix_dereference_values_ex(asn1p_t *asn, asn1p_module_t *mod,
66 asn1p_expr_t *expr) {
67 arg_t arg;
68
69 memset(&arg, 0, sizeof(arg));
70
71 arg.asn = asn;
72 arg.mod = mod;
73 arg.expr = expr;
74 arg.eh = a1f_replace_me_with_proper_interface_arg.eh;
75 arg.debug = a1f_replace_me_with_proper_interface_arg.debug;
76
77 return asn1f_fix_dereference_values(&arg);
78}
79