15 Newkey::set (int n
, int a
)
17 set_scm (gh_int2scm (n
), gh_int2scm (a
));
21 Newkey::set (int o
, int n
, int a
)
23 set_scm (gh_cons (gh_int2scm (o
),gh_int2scm(n
)), gh_int2scm (a
));
27 Newkey::set_scm (SCM k
, SCM v
)
30 = scm_assoc_set_x (key_alist_
, k
, v
);
34 Newkey::get (int o
, int n
)
36 SCM r
= scm_assoc (gh_cons (gh_int2scm (o
), gh_int2scm (n
)), key_alist_
);
37 return r
== SCM_BOOL_F
? get (n
) : gh_cdr (r
);
43 SCM r
= scm_assoc (gh_int2scm (n
), key_alist_
);
44 return r
== SCM_BOOL_F
? 0: gh_cdr (r
);