mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 13:20: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:
parent
b339459e94
commit
10b9343f04
2 changed files with 7 additions and 3 deletions
|
@ -168,13 +168,16 @@ scm_ra_matchp (SCM ra0, SCM ras)
|
||||||
SCM lra; list of source arrays.
|
SCM lra; list of source arrays.
|
||||||
const char *what; caller, for error reporting. */
|
const char *what; caller, for error reporting. */
|
||||||
int
|
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 z;
|
||||||
SCM vra0, ra1, vra1;
|
SCM vra0, ra1, vra1;
|
||||||
SCM lvra, *plvra;
|
SCM lvra, *plvra;
|
||||||
long *vinds;
|
long *vinds;
|
||||||
int k, kmax;
|
int k, kmax;
|
||||||
|
int (*cproc) ();
|
||||||
|
|
||||||
|
cproc = cproc_ptr;
|
||||||
switch (scm_ra_matchp (ra0, lra))
|
switch (scm_ra_matchp (ra0, lra))
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
#ifndef SCM_ARRAY_MAP_H
|
#ifndef SCM_ARRAY_MAP_H
|
||||||
#define SCM_ARRAY_MAP_H
|
#define SCM_ARRAY_MAP_H
|
||||||
|
|
||||||
/* Copyright (C) 1995,1996,1997,2000, 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
|
/* Copyright (C) 1995, 1996, 1997, 2000, 2006, 2008, 2009, 2010,
|
||||||
|
* 2011 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
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
|
|
||||||
SCM_API int scm_ra_matchp (SCM ra0, SCM ras);
|
SCM_API int scm_ra_matchp (SCM ra0, SCM ras);
|
||||||
SCM_API int scm_ramapc (int (*cproc) (), SCM data, SCM ra0, SCM lra,
|
SCM_API int scm_ramapc (void *cproc, SCM data, SCM ra0, SCM lra,
|
||||||
const char *what);
|
const char *what);
|
||||||
SCM_API int scm_array_fill_int (SCM ra, SCM fill, SCM ignore);
|
SCM_API int scm_array_fill_int (SCM ra, SCM fill, SCM ignore);
|
||||||
SCM_API SCM scm_array_fill_x (SCM ra, SCM fill);
|
SCM_API SCM scm_array_fill_x (SCM ra, SCM fill);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue