mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
Merge branch 'master' into boehm-demers-weiser-gc
Conflicts: libguile/Makefile.am libguile/coop-defs.h libguile/gc-card.c libguile/gc-freelist.c libguile/gc-malloc.c libguile/gc-mark.c libguile/gc-segment.c libguile/gc.c libguile/gc.h libguile/gc_os_dep.c libguile/hashtab.c libguile/hashtab.h libguile/inline.h libguile/private-gc.h libguile/struct.c libguile/struct.h libguile/threads.c libguile/threads.h libguile/vectors.h libguile/weaks.h test-suite/tests/gc.test
This commit is contained in:
commit
6f03035fe8
298 changed files with 15438 additions and 3275 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1995,1996,1998,2000,2001, 2004, 2006 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995,1996,1998,2000,2001, 2004, 2006, 2008 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -124,7 +124,7 @@ make_stringbuf (size_t len)
|
|||
|
||||
/* Return a new stringbuf whose underlying storage consists of the LEN+1
|
||||
octets pointed to by STR (the last octet is zero). */
|
||||
SCM_C_INLINE_KEYWORD SCM
|
||||
SCM
|
||||
scm_i_take_stringbufn (char *str, size_t len)
|
||||
{
|
||||
scm_gc_register_collectable_memory (str, len + 1, "stringbuf");
|
||||
|
@ -452,6 +452,16 @@ scm_i_symbol_length (SCM sym)
|
|||
return STRINGBUF_LENGTH (SYMBOL_STRINGBUF (sym));
|
||||
}
|
||||
|
||||
size_t
|
||||
scm_c_symbol_length (SCM sym)
|
||||
#define FUNC_NAME "scm_c_symbol_length"
|
||||
{
|
||||
SCM_VALIDATE_SYMBOL (1, sym);
|
||||
|
||||
return STRINGBUF_LENGTH (SYMBOL_STRINGBUF (sym));
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
const char *
|
||||
scm_i_symbol_chars (SCM sym)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue