mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-10 07:50:24 +02:00
Rename gc-types.h to gc-api.h
This commit is contained in:
parent
67f9c89f2a
commit
c824f17bd9
4 changed files with 3 additions and 3 deletions
26
gc-types.h
26
gc-types.h
|
@ -1,26 +0,0 @@
|
|||
#ifndef GC_TYPES_H_
|
||||
#define GC_TYPES_H_
|
||||
|
||||
struct gc_edge {
|
||||
union {
|
||||
void *addr;
|
||||
void **loc;
|
||||
};
|
||||
};
|
||||
|
||||
static inline struct gc_edge gc_edge(void* addr) {
|
||||
struct gc_edge edge;
|
||||
edge.addr = addr;
|
||||
return edge;
|
||||
}
|
||||
static inline struct gc_edge object_field(void* addr) {
|
||||
return gc_edge(addr);
|
||||
}
|
||||
static inline void* dereference_edge(struct gc_edge edge) {
|
||||
return *edge.loc;
|
||||
}
|
||||
static inline void update_edge(struct gc_edge edge, void *value) {
|
||||
*edge.loc = value;
|
||||
}
|
||||
|
||||
#endif // GC_TYPES_H_
|
Loading…
Add table
Add a link
Reference in a new issue