diff options
| author | 2024-06-12 21:41:35 -0400 | |
|---|---|---|
| committer | 2024-06-12 21:41:35 -0400 | |
| commit | 503b08caadb9be5b54d8542ad57973612d061cfc (patch) | |
| tree | 4d1d5ebef0f2e11dfa2532d6788f186a20c42697 /include | |
| parent | strings: add more tests (diff) | |
change uns_root_ptr to uns_ctr
Diffstat (limited to '')
| -rw-r--r-- | include/uns.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/uns.h b/include/uns.h index 1277b32..93a859d 100644 --- a/include/uns.h +++ b/include/uns.h @@ -48,10 +48,10 @@ typedef UNS_SIGNED_WORD uns_sword; * A root that is not a part of any GC MUST have ``prev`` and ``next`` * set to NULL. */ -struct uns_root_list { - struct uns_root_list *prev; +struct uns_ctr { + struct uns_ctr *prev; void *p; - struct uns_root_list *next; + struct uns_ctr *next; }; struct uns_gc { @@ -64,7 +64,7 @@ struct uns_gc { * * The roots list can have repeated values. */ - struct uns_root_list *roots; + struct uns_ctr *roots; size_t next_alloc; void (*oom)(struct uns_gc *); void (*after_gc)(struct uns_gc *); @@ -94,11 +94,11 @@ struct uns_gc { }; /** Add a root to the GC. The root must point to valid memory, or NULL. */ -void uns_root_add(struct uns_gc *gc, struct uns_root_list *root); +void uns_root_add(struct uns_gc *gc, struct uns_ctr *root); /** Remove a root from the GC. It is OK to remove a root that is not a * part of any GC using this function (the call will have no effect). */ -void uns_root_remove(struct uns_gc *gc, struct uns_root_list *root); +void uns_root_remove(struct uns_gc *gc, struct uns_ctr *root); #endif |
