1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

* Use const specifier in function signature of gh_ints2scm.

This commit is contained in:
Dirk Herrmann 2001-03-15 00:42:10 +00:00
parent d3dd80ab5b
commit 80dee77b86
4 changed files with 12 additions and 5 deletions

3
THANKS
View file

@ -34,6 +34,7 @@ For fixes or providing information which led to a fix:
Bill Schottstaedt
Miroslav Silovic
Dale P. Smith
Jacques A. Vidrine.
Jacques A. Vidrine
Brett Viren
William Webber
Keith Wright

View file

@ -1,3 +1,9 @@
2001-03-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
* gh.h/gh_data.c (gh_ints2scm): Changed the signature to use a
const int* to reflect that the input array of integers remains
unchanged. Thanks to Brett Viren for the hint.
2001-03-14 Martin Grabmueller <mgrabmue@cs.tu-berlin.de>
* gh_data.c (gh_scm2chars, gh_scm2shorts, gh_scm2longs),

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1995,1996,1997,1998,2000,2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -104,7 +104,7 @@ SCM gh_str2scm(const char *s, int len);
SCM gh_str02scm(const char *s);
void gh_set_substr(char *src, SCM dst, int start, int len);
SCM gh_symbol2scm(const char *symbol_str);
SCM gh_ints2scm(int *d, int n);
SCM gh_ints2scm(const int *d, int n);
#ifdef HAVE_ARRAYS
SCM gh_chars2byvect(const char *d, int n);

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,1998, 1999, 2000 Free Software Foundation, Inc.
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
@ -131,7 +131,7 @@ gh_symbol2scm (const char *symbol_str)
}
SCM
gh_ints2scm (int *d, int n)
gh_ints2scm (const int *d, int n)
{
int i;
SCM v = scm_c_make_vector (n, SCM_UNSPECIFIED);