mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 21:10:27 +02:00
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.
This commit is contained in:
parent
2be89ca129
commit
f1d19308ad
4 changed files with 28 additions and 5 deletions
|
@ -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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* 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));
|
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_DEFINE (scm_i_array_equal_p, "array-equal?", 0, 2, 1,
|
||||||
(SCM ra0, SCM ra1, SCM rest),
|
(SCM ra0, SCM ra1, SCM rest),
|
||||||
"Return @code{#t} iff all arguments are arrays with the same\n"
|
"Return @code{#t} iff all arguments are arrays with the same\n"
|
||||||
|
|
|
@ -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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* 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
|
#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_DEFINE (scm_i_char_eq_p, "char=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the Unicode code point of @var{x} is equal to the\n"
|
"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
|
#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_DEFINE (scm_i_char_less_p, "char<?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} iff the code point of @var{x} is less than the code\n"
|
"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
|
#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_DEFINE (scm_i_char_leq_p, "char<=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the Unicode code point of @var{x} is less than or\n"
|
"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
|
#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_DEFINE (scm_i_char_gr_p, "char>?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the Unicode code point of @var{x} is greater than\n"
|
"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
|
#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_DEFINE (scm_i_char_geq_p, "char>=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the Unicode code point of @var{x} is greater than\n"
|
"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
|
implementation would be to use that table and make a char-foldcase
|
||||||
function. */
|
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_DEFINE (scm_i_char_ci_eq_p, "char-ci=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the case-folded Unicode code point of @var{x} is\n"
|
"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
|
#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_DEFINE (scm_i_char_ci_less_p, "char-ci<?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if the case-folded Unicode code point of @var{x} is\n"
|
"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
|
#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_DEFINE (scm_i_char_ci_leq_p, "char-ci<=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} iff the case-folded Unicodd code point of @var{x} is\n"
|
"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
|
#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_DEFINE (scm_i_char_ci_gr_p, "char-ci>?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} iff the case-folded code point of @var{x} is greater\n"
|
"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
|
#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_DEFINE (scm_i_char_ci_geq_p, "char-ci>=?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} iff the case-folded Unicode code point of @var{x} is\n"
|
"Return @code{#t} iff the case-folded Unicode code point of @var{x} is\n"
|
||||||
|
|
|
@ -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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
@ -48,6 +48,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
static SCM scm_i_eq_p (SCM x, SCM y, SCM rest);
|
||||||
SCM_DEFINE (scm_i_eq_p, "eq?", 0, 2, 1,
|
SCM_DEFINE (scm_i_eq_p, "eq?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if @var{x} and @var{y} are the same object,\n"
|
"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);
|
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>
|
#include <stdio.h>
|
||||||
SCM_DEFINE (scm_i_eqv_p, "eqv?", 0, 2, 1,
|
SCM_DEFINE (scm_i_eqv_p, "eqv?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
|
@ -212,7 +214,7 @@ SCM scm_eqv_p (SCM x, SCM y)
|
||||||
#undef FUNC_NAME
|
#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_PRIMITIVE_GENERIC (scm_i_equal_p, "equal?", 0, 2, 1,
|
||||||
(SCM x, SCM y, SCM rest),
|
(SCM x, SCM y, SCM rest),
|
||||||
"Return @code{#t} if @var{x} and @var{y} are the same type, and\n"
|
"Return @code{#t} if @var{x} and @var{y} are the same type, and\n"
|
||||||
|
|
|
@ -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
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* 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;
|
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_DEFINE (scm_i_string_equal_p, "string=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Lexicographic equality predicate; return @code{#t} if the two\n"
|
"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
|
#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_DEFINE (scm_i_string_ci_equal_p, "string-ci=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Case-insensitive string equality predicate; return @code{#t} if\n"
|
"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
|
#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_DEFINE (scm_i_string_less_p, "string<?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Lexicographic ordering predicate; return @code{#t} if @var{s1}\n"
|
"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
|
#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_DEFINE (scm_i_string_leq_p, "string<=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Lexicographic ordering predicate; return @code{#t} if @var{s1}\n"
|
"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
|
#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_DEFINE (scm_i_string_gr_p, "string>?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Lexicographic ordering predicate; return @code{#t} if @var{s1}\n"
|
"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
|
#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_DEFINE (scm_i_string_geq_p, "string>=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Lexicographic ordering predicate; return @code{#t} if @var{s1}\n"
|
"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
|
#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_DEFINE (scm_i_string_ci_less_p, "string-ci<?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Case insensitive lexicographic ordering predicate; return\n"
|
"Case insensitive lexicographic ordering predicate; return\n"
|
||||||
|
@ -240,6 +247,7 @@ SCM scm_string_ci_less_p (SCM s1, SCM s2)
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#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_DEFINE (scm_i_string_ci_leq_p, "string-ci<=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Case insensitive lexicographic ordering predicate; return\n"
|
"Case insensitive lexicographic ordering predicate; return\n"
|
||||||
|
@ -268,6 +276,7 @@ SCM scm_string_ci_leq_p (SCM s1, SCM s2)
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#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_DEFINE (scm_i_string_ci_gr_p, "string-ci>?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Case insensitive lexicographic ordering predicate; return\n"
|
"Case insensitive lexicographic ordering predicate; return\n"
|
||||||
|
@ -296,6 +305,7 @@ SCM scm_string_ci_gr_p (SCM s1, SCM s2)
|
||||||
}
|
}
|
||||||
#undef FUNC_NAME
|
#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_DEFINE (scm_i_string_ci_geq_p, "string-ci>=?", 0, 2, 1,
|
||||||
(SCM s1, SCM s2, SCM rest),
|
(SCM s1, SCM s2, SCM rest),
|
||||||
"Case insensitive lexicographic ordering predicate; return\n"
|
"Case insensitive lexicographic ordering predicate; return\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue