mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
* Made some functions not accept symbols as input parameters any more.
* Replaced some calls to SCM_LENGTH.
This commit is contained in:
parent
bfa974f0a4
commit
9fd38a3d14
8 changed files with 75 additions and 59 deletions
|
@ -306,10 +306,9 @@ setzone (SCM zone, int pos, const char *subr)
|
|||
static char *tmpenv[2];
|
||||
char *buf;
|
||||
|
||||
SCM_ASSERT (SCM_ROSTRINGP (zone), zone, pos, subr);
|
||||
SCM_ASSERT (SCM_STRINGP (zone), zone, pos, subr);
|
||||
SCM_COERCE_SUBSTR (zone);
|
||||
buf = scm_must_malloc (SCM_LENGTH (zone) + sizeof (tzvar) + 1,
|
||||
subr);
|
||||
buf = scm_must_malloc (SCM_STRING_LENGTH (zone) + sizeof (tzvar) + 1, subr);
|
||||
sprintf (buf, "%s=%s", tzvar, SCM_ROCHARS (zone));
|
||||
oldenv = environ;
|
||||
tmpenv[0] = buf;
|
||||
|
@ -437,7 +436,7 @@ bdtime2c (SCM sbd_time, struct tm *lt, int pos, const char *subr)
|
|||
int i;
|
||||
|
||||
SCM_ASSERT (SCM_VECTORP (sbd_time)
|
||||
&& SCM_LENGTH (sbd_time) == 11,
|
||||
&& SCM_VECTOR_LENGTH (sbd_time) == 11,
|
||||
sbd_time, pos, subr);
|
||||
velts = SCM_VELTS (sbd_time);
|
||||
for (i = 0; i < 10; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue