1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-02 13:00:26 +02:00

Change `scm_ramapc' prototype to avoid empty declarators (bug #23681).

* libguile/array-map.h (scm_ramapc): Change `cproc' to `void *' instead
  of using empty declarators.

* libguile/array-map.c (scm_ramapc): Adjust accordingly.
This commit is contained in:
Ludovic Courtès 2011-02-13 14:47:33 +01:00
parent b339459e94
commit 10b9343f04
2 changed files with 7 additions and 3 deletions

View file

@ -168,13 +168,16 @@ scm_ra_matchp (SCM ra0, SCM ras)
SCM lra; list of source arrays.
const char *what; caller, for error reporting. */
int
scm_ramapc (int (*cproc)(), SCM data, SCM ra0, SCM lra, const char *what)
scm_ramapc (void *cproc_ptr, SCM data, SCM ra0, SCM lra, const char *what)
{
SCM z;
SCM vra0, ra1, vra1;
SCM lvra, *plvra;
long *vinds;
int k, kmax;
int (*cproc) ();
cproc = cproc_ptr;
switch (scm_ra_matchp (ra0, lra))
{
default: