1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 12:20:20 +02:00

* tests/reader.test: change misc-error in read-error.

* read.c (scm_input_error): new function: give meaningful error
messages, and throw read-error

* gc-malloc.c (scm_calloc): add scm_calloc.

* scheme-memory.texi (Memory Blocks): add scm_calloc, scm_gc_calloc.
correct typos.
This commit is contained in:
Han-Wen Nienhuys 2002-08-05 23:04:44 +00:00
parent 3d0f4c6292
commit ba1b222692
9 changed files with 74 additions and 58 deletions

View file

@ -142,7 +142,19 @@ scm_malloc (size_t sz)
{
return scm_realloc (NULL, sz);
}
/*
Hmm. Should we use the C convention for arguments (i.e. N_ELTS,
SIZEOF_ELT)? --hwn
*/
void *
scm_calloc (size_t sz)
{
void * ptr = scm_realloc (NULL, sz);
memset (ptr, 0x0, sz);
return ptr;
}
char *
scm_strndup (const char *str, size_t n)