diff options
author | Marius Vollmer <mvo@zagadka.de> | 2002-02-14 15:32:12 +0000 |
---|---|---|
committer | Marius Vollmer <mvo@zagadka.de> | 2002-02-14 15:32:12 +0000 |
commit | 539b08a4c767e5241d2b0029813661268c139c8f (patch) | |
tree | aeeecedbed144ab99d254dde15da6b10bd6e52d7 /libguile/gc.h | |
parent | cd413a029c387fc51ae6abb0157ec37288c8b666 (diff) | |
download | guile-539b08a4c767e5241d2b0029813661268c139c8f.tar.gz |
(scm_must_malloc, scm_must_realloc, scm_must_strdup, scm_must_strndup,
scm_done_malloc, scm_done_free, scm_must_free): Reimplemented using
the new scm_gc_malloc, etc., functions and deprecated.
Diffstat (limited to 'libguile/gc.h')
-rw-r--r-- | libguile/gc.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/libguile/gc.h b/libguile/gc.h index 48a8d8d31..7d575bc96 100644 --- a/libguile/gc.h +++ b/libguile/gc.h @@ -342,15 +342,6 @@ SCM_API void scm_gc_free (void *mem, size_t size, const char *what); SCM_API char *scm_gc_strdup (const char *str, const char *what); SCM_API char *scm_gc_strndup (const char *str, size_t n, const char *what); -SCM_API void * scm_must_malloc (size_t len, const char *what); -SCM_API void * scm_must_realloc (void *where, - size_t olen, size_t len, - const char *what); -SCM_API char *scm_must_strdup (const char *str); -SCM_API char *scm_must_strndup (const char *str, size_t n); -SCM_API void scm_done_malloc (long size); -SCM_API void scm_done_free (long size); -SCM_API void scm_must_free (void *obj); SCM_API void scm_remember_upto_here_1 (SCM obj); SCM_API void scm_remember_upto_here_2 (SCM obj1, SCM obj2); SCM_API void scm_remember_upto_here (SCM obj1, ...); @@ -377,6 +368,16 @@ SCM_API SCM scm_deprecated_newcell2 (void); #define SCM_NEWCELL2(_into) \ do { _into = scm_deprecated_newcell2 (); } while (0) +SCM_API void * scm_must_malloc (size_t len, const char *what); +SCM_API void * scm_must_realloc (void *where, + size_t olen, size_t len, + const char *what); +SCM_API char *scm_must_strdup (const char *str); +SCM_API char *scm_must_strndup (const char *str, size_t n); +SCM_API void scm_done_malloc (long size); +SCM_API void scm_done_free (long size); +SCM_API void scm_must_free (void *obj); + #endif #endif /* SCM_GC_H */ |