diff options
author | Andy Wingo <wingo@pobox.com> | 2010-01-06 11:06:37 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2010-01-07 23:49:15 +0100 |
commit | f1d19308ade7f7d115be243650270e8a2a38fc38 (patch) | |
tree | 8c781b10aebd7ed11e5469ed368fc76cbea622da | |
parent | 2be89ca129e078f7e558d07b93ce89bf9ed13a9d (diff) |
provide missing prototypes
* libguile/array-map.c:
* libguile/chars.c:
* libguile/eq.c:
* libguile/strorder.c: Provide declarations missing after the asubrs/rpsubrs ->
gsubr conversion.
-rw-r--r-- | libguile/array-map.c | 3 | ||||
-rw-r--r-- | libguile/chars.c | 12 | ||||
-rw-r--r-- | libguile/eq.c | 6 | ||||
-rw-r--r-- | libguile/strorder.c | 12 |
4 files changed, 28 insertions, 5 deletions
diff --git a/libguile/array-map.c b/libguile/array-map.c index c673b4df3..2041d0580 100644 --- a/libguile/array-map.c +++ b/libguile/array-map.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996,1998,2000,2001,2004,2005, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1996,1998,2000,2001,2004,2005, 2006, 2008, 2009, 2010 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 @@ -921,6 +921,7 @@ scm_raequal (SCM ra0, SCM ra1) return scm_from_bool(raeql (ra0, SCM_BOOL_T, ra1)); } +static SCM scm_i_array_equal_p (SCM, SCM, SCM); SCM_DEFINE (scm_i_array_equal_p, "array-equal?", 0, 2, 1, (SCM ra0, SCM ra1, SCM rest), "Return @code{#t} iff all arguments are arrays with the same\n" diff --git a/libguile/chars.c b/libguile/chars.c index 49c1ea3f7..d2749f41f 100644 --- a/libguile/chars.c +++ b/libguile/chars.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1998, 2000, 2001, 2004, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1998, 2000, 2001, 2004, 2006, 2008, 2009, 2010 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 @@ -44,6 +44,7 @@ SCM_DEFINE (scm_char_p, "char?", 1, 0, 0, } #undef FUNC_NAME +static SCM scm_i_char_eq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_eq_p, "char=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the Unicode code point of @var{x} is equal to the\n" @@ -74,6 +75,7 @@ SCM scm_char_eq_p (SCM x, SCM y) #undef FUNC_NAME +static SCM scm_i_char_less_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_less_p, "char<?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} iff the code point of @var{x} is less than the code\n" @@ -103,6 +105,7 @@ SCM scm_char_less_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_leq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_leq_p, "char<=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the Unicode code point of @var{x} is less than or\n" @@ -132,6 +135,7 @@ SCM scm_char_leq_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_gr_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_gr_p, "char>?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the Unicode code point of @var{x} is greater than\n" @@ -161,6 +165,7 @@ SCM scm_char_gr_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_geq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_geq_p, "char>=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the Unicode code point of @var{x} is greater than\n" @@ -197,6 +202,7 @@ SCM scm_char_geq_p (SCM x, SCM y) implementation would be to use that table and make a char-foldcase function. */ +static SCM scm_i_char_ci_eq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_ci_eq_p, "char-ci=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the case-folded Unicode code point of @var{x} is\n" @@ -226,6 +232,7 @@ SCM scm_char_ci_eq_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_ci_less_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_ci_less_p, "char-ci<?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if the case-folded Unicode code point of @var{x} is\n" @@ -255,6 +262,7 @@ SCM scm_char_ci_less_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_ci_leq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_ci_leq_p, "char-ci<=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} iff the case-folded Unicodd code point of @var{x} is\n" @@ -285,6 +293,7 @@ SCM scm_char_ci_leq_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_ci_gr_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_ci_gr_p, "char-ci>?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} iff the case-folded code point of @var{x} is greater\n" @@ -314,6 +323,7 @@ SCM scm_char_ci_gr_p (SCM x, SCM y) } #undef FUNC_NAME +static SCM scm_i_char_ci_geq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_char_ci_geq_p, "char-ci>=?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} iff the case-folded Unicode code point of @var{x} is\n" diff --git a/libguile/eq.c b/libguile/eq.c index eaf1accae..6a533da4e 100644 --- a/libguile/eq.c +++ b/libguile/eq.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1998,2000,2001,2003, 2004, 2006, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,2000,2001,2003, 2004, 2006, 2009, 2010 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 @@ -48,6 +48,7 @@ #endif +static SCM scm_i_eq_p (SCM x, SCM y, SCM rest); SCM_DEFINE (scm_i_eq_p, "eq?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if @var{x} and @var{y} are the same object,\n" @@ -120,6 +121,7 @@ real_eqv (double x, double y) return !memcmp (&x, &y, sizeof(double)) || (x != x && y != y); } +static SCM scm_i_eqv_p (SCM x, SCM y, SCM rest); #include <stdio.h> SCM_DEFINE (scm_i_eqv_p, "eqv?", 0, 2, 1, (SCM x, SCM y, SCM rest), @@ -212,7 +214,7 @@ SCM scm_eqv_p (SCM x, SCM y) #undef FUNC_NAME -SCM scm_i_equal_p (SCM, SCM, SCM); +static SCM scm_i_equal_p (SCM, SCM, SCM); SCM_PRIMITIVE_GENERIC (scm_i_equal_p, "equal?", 0, 2, 1, (SCM x, SCM y, SCM rest), "Return @code{#t} if @var{x} and @var{y} are the same type, and\n" diff --git a/libguile/strorder.c b/libguile/strorder.c index 0338c65d4..a51ce17ae 100644 --- a/libguile/strorder.c +++ b/libguile/strorder.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1999, 2000, 2004, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1999, 2000, 2004, 2006, 2008, 2009, 2010 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 @@ -42,6 +42,7 @@ srfi13_cmp (SCM s1, SCM s2, SCM (*cmp) (SCM, SCM, SCM, SCM, SCM, SCM)) return SCM_BOOL_F; } +static SCM scm_i_string_equal_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_equal_p, "string=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Lexicographic equality predicate; return @code{#t} if the two\n" @@ -75,6 +76,7 @@ SCM scm_string_equal_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_ci_equal_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_ci_equal_p, "string-ci=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Case-insensitive string equality predicate; return @code{#t} if\n" @@ -104,6 +106,7 @@ SCM scm_string_ci_equal_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_less_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_less_p, "string<?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Lexicographic ordering predicate; return @code{#t} if @var{s1}\n" @@ -131,6 +134,7 @@ SCM scm_string_less_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_leq_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_leq_p, "string<=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Lexicographic ordering predicate; return @code{#t} if @var{s1}\n" @@ -158,6 +162,7 @@ SCM scm_string_leq_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_gr_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_gr_p, "string>?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Lexicographic ordering predicate; return @code{#t} if @var{s1}\n" @@ -185,6 +190,7 @@ SCM scm_string_gr_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_geq_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_geq_p, "string>=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Lexicographic ordering predicate; return @code{#t} if @var{s1}\n" @@ -212,6 +218,7 @@ SCM scm_string_geq_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_ci_less_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_ci_less_p, "string-ci<?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Case insensitive lexicographic ordering predicate; return\n" @@ -240,6 +247,7 @@ SCM scm_string_ci_less_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_ci_leq_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_ci_leq_p, "string-ci<=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Case insensitive lexicographic ordering predicate; return\n" @@ -268,6 +276,7 @@ SCM scm_string_ci_leq_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_ci_gr_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_ci_gr_p, "string-ci>?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Case insensitive lexicographic ordering predicate; return\n" @@ -296,6 +305,7 @@ SCM scm_string_ci_gr_p (SCM s1, SCM s2) } #undef FUNC_NAME +static SCM scm_i_string_ci_geq_p (SCM s1, SCM s2, SCM rest); SCM_DEFINE (scm_i_string_ci_geq_p, "string-ci>=?", 0, 2, 1, (SCM s1, SCM s2, SCM rest), "Case insensitive lexicographic ordering predicate; return\n" |