mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-14 17:50:22 +02:00
Add gc_ prefix to struct heap, struct mutator
This commit is contained in:
parent
b082f5f50d
commit
92b8f1e917
10 changed files with 218 additions and 223 deletions
|
@ -5,14 +5,14 @@
|
|||
#include "gc-api.h"
|
||||
|
||||
static inline void*
|
||||
gc_allocate_with_kind(struct mutator *mut, enum alloc_kind kind, size_t bytes) {
|
||||
gc_allocate_with_kind(struct gc_mutator *mut, enum alloc_kind kind, size_t bytes) {
|
||||
void *obj = gc_allocate(mut, bytes);
|
||||
*tag_word(obj) = tag_live(kind);
|
||||
return obj;
|
||||
}
|
||||
|
||||
static inline void*
|
||||
gc_allocate_pointerless_with_kind(struct mutator *mut, enum alloc_kind kind, size_t bytes) {
|
||||
gc_allocate_pointerless_with_kind(struct gc_mutator *mut, enum alloc_kind kind, size_t bytes) {
|
||||
void *obj = gc_allocate_pointerless(mut, bytes);
|
||||
*tag_word(obj) = tag_live(kind);
|
||||
return obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue