diff options
author | Andy Wingo <wingo@pobox.com> | 2010-09-12 23:18:54 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-09-12 23:29:11 +0200 |
commit | 37710f7e8f63f784de0343c1948e8afbbc10e395 (patch) | |
tree | 8d96cda7a538c82c3f981454392d799aafa5c1eb /srfi/srfi-1.h | |
parent | 4453f887ed6004126a73673f76853b30263209aa (diff) | |
download | guile-37710f7e8f63f784de0343c1948e8afbbc10e395.tar.gz |
move srfi-1 and srfi-60 C impl to libguile, without public C api
* libguile/srfi-1.c:
* libguile/srfi-1.h:
* libguile/srfi-60.c:
* libguile/srfi-60.h:
* libguile/ChangeLog-srfi: Move here, from the srfi/ dir. The C API is
internal. Add API to register the extensions, called by init.c.
* libguile/init.c: Verily, register srfi extensions.
* libguile/Makefile.am: Add srfi files.
* module/srfi/srfi-1.scm:
* module/srfi/srfi-60.scm: Update load-extension invocation.
* Makefile.am:
* configure.ac: Remove srfi/ dir.
* test-suite/standalone/Makefile.am:
* test-suite/standalone/test-srfi-1.c: Remove srfi-1 C test, we don't
support this API any more.
Diffstat (limited to 'srfi/srfi-1.h')
-rw-r--r-- | srfi/srfi-1.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/srfi/srfi-1.h b/srfi/srfi-1.h deleted file mode 100644 index 5797579cc..000000000 --- a/srfi/srfi-1.h +++ /dev/null @@ -1,92 +0,0 @@ -#ifndef SCM_SRFI_1_H -#define SCM_SRFI_1_H -/* srfi-1.h --- SRFI-1 procedures for Guile - * - * Copyright (C) 2002, 2003, 2005, 2006 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 - */ - - -/* SCM_SRFI1_API is a macro prepended to all function and data definitions - which should be exported or imported in the resulting dynamic link - library in the Win32 port. */ - -#if defined (SCM_SRFI1_IMPORT) -# define SCM_SRFI1_API __declspec (dllimport) extern -#elif defined (SCM_SRFI1_EXPORT) || defined (DLL_EXPORT) -# define SCM_SRFI1_API __declspec (dllexport) extern -#else -# define SCM_SRFI1_API extern -#endif - -SCM_SRFI1_API SCM scm_srfi1_alist_copy (SCM alist); -SCM_SRFI1_API SCM scm_srfi1_append_reverse (SCM revhead, SCM tail); -SCM_SRFI1_API SCM scm_srfi1_append_reverse_x (SCM revhead, SCM tail); -SCM_SRFI1_API SCM scm_srfi1_break (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_break_x (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_car_plus_cdr (SCM pair); -SCM_SRFI1_API SCM scm_srfi1_concatenate (SCM lstlst); -SCM_SRFI1_API SCM scm_srfi1_concatenate_x (SCM lstlst); -SCM_SRFI1_API SCM scm_srfi1_count (SCM pred, SCM list1, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_delete (SCM x, SCM lst, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_delete_x (SCM x, SCM lst, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_delete_duplicates (SCM lst, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_delete_duplicates_x (SCM lst, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_drop_right (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_drop_right_x (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_drop_while (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_eighth (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_fifth (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_filter_map (SCM proc, SCM list1, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_find (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_find_tail (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_fold (SCM proc, SCM init, SCM list1, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_last (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_length_plus (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_lset_adjoin (SCM equal, SCM lst, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_lset_difference_x (SCM equal, SCM lst, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_list_copy (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_list_index (SCM pred, SCM list1, SCM rest); -SCM_SRFI1_API SCM scm_srfi1_list_tabulate (SCM n, SCM proc); -SCM_SRFI1_API SCM scm_srfi1_map (SCM proc, SCM arg1, SCM args); -SCM_SRFI1_API SCM scm_srfi1_for_each (SCM proc, SCM arg1, SCM args); -SCM_SRFI1_API SCM scm_srfi1_member (SCM obj, SCM ls, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_ninth (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_assoc (SCM key, SCM alist, SCM pred); -SCM_SRFI1_API SCM scm_srfi1_not_pair_p (SCM obj); -SCM_SRFI1_API SCM scm_srfi1_partition (SCM pred, SCM list); -SCM_SRFI1_API SCM scm_srfi1_partition_x (SCM pred, SCM list); -SCM_SRFI1_API SCM scm_srfi1_reduce (SCM proc, SCM def, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_reduce_right (SCM proc, SCM def, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_remove (SCM pred, SCM list); -SCM_SRFI1_API SCM scm_srfi1_remove_x (SCM pred, SCM list); -SCM_SRFI1_API SCM scm_srfi1_seventh (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_sixth (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_span (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_span_x (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_split_at (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_split_at_x (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_take_x (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_take_right (SCM lst, SCM n); -SCM_SRFI1_API SCM scm_srfi1_take_while (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_take_while_x (SCM pred, SCM lst); -SCM_SRFI1_API SCM scm_srfi1_tenth (SCM lst); -SCM_SRFI1_API SCM scm_srfi1_xcons (SCM d, SCM a); - -SCM_SRFI1_API void scm_init_srfi_1 (void); - -#endif /* SCM_SRFI_1_H */ |