mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
factor copy-tree and cons-source out of eval.[ch]
* libguile.h: * libguile/Makefile.am * libguile/init.c (scm_i_init_guile): Add trees.[ch] to the build. * libguile/eval.c: * libguile/eval.h: Remove scm_copy_tree and scm_cons_source... * libguile/trees.h: * libguile/trees.c: * libguile/srcprop.h: * libguile/srcprop.c: ... factoring them out here and here, respectively. * test-suite/tests/eval.test ("memoization"): Change expected exception for circular data structures, given new copy-tree location.
This commit is contained in:
parent
504864b79f
commit
0f458a3725
11 changed files with 286 additions and 184 deletions
|
@ -138,8 +138,6 @@ SCM_API SCM scm_closure (SCM code, SCM env);
|
|||
SCM_API SCM scm_make_promise (SCM thunk);
|
||||
SCM_API SCM scm_force (SCM x);
|
||||
SCM_API SCM scm_promise_p (SCM x);
|
||||
SCM_API SCM scm_cons_source (SCM xorig, SCM x, SCM y);
|
||||
SCM_API SCM scm_copy_tree (SCM obj);
|
||||
SCM_API SCM scm_i_eval_x (SCM exp, SCM env) /* not internal */;
|
||||
SCM_INTERNAL SCM scm_i_eval (SCM exp, SCM env);
|
||||
SCM_API SCM scm_primitive_eval (SCM exp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue