diff options
author | Andy Wingo <wingo@pobox.com> | 2009-11-27 23:12:35 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-12-01 21:00:26 +0100 |
commit | 0f458a37259a53adc7b50b66a5944ecc3668ffda (patch) | |
tree | 60fc9556922c7469d11f65d83c162cfcb5951216 /libguile/trees.h | |
parent | 504864b79fcdaf1c24785327b84190a041c30c0c (diff) | |
download | guile-0f458a37259a53adc7b50b66a5944ecc3668ffda.tar.gz |
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.
Diffstat (limited to 'libguile/trees.h')
-rw-r--r-- | libguile/trees.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libguile/trees.h b/libguile/trees.h new file mode 100644 index 000000000..70d32ad7d --- /dev/null +++ b/libguile/trees.h @@ -0,0 +1,45 @@ +/* classes: h_files */ + +#ifndef SCM_TREES_H +#define SCM_TREES_H + +/* Copyright (C) 2009 + * Free Software Foundation, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 3 of + * the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + * 02110-1301 USA + */ + + + +#include "libguile/__scm.h" + + + +SCM_API SCM scm_copy_tree (SCM obj); + + + +/* Guile internal functions */ + +SCM_INTERNAL void scm_init_trees (void); + +#endif /* SCM_TREES_H */ + +/* + Local Variables: + c-file-style: "gnu" + End: +*/ |