ADT
arm-eh
ast-experimental
cleanup-dtors
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
pthread-emulation
qualifiedEnum
|
Last change
on this file since cefa6cae was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 7 years ago |
|
Moved up many directories in source
|
-
Property mode
set to
100644
|
|
File size:
258 bytes
|
| Line | |
|---|
| 1 | struct gc_object_header{
|
|---|
| 2 | int size;
|
|---|
| 3 | };
|
|---|
| 4 |
|
|---|
| 5 | struct gc_state;
|
|---|
| 6 |
|
|---|
| 7 | inline _Bool needs_collect(gc_state* state) {
|
|---|
| 8 | return state->used_space > 0;
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | struct gc_object_header* gc_get_object_for_ref();
|
|---|
| 12 |
|
|---|
| 13 | inline gc_object_header* gc_get_object_ptr(void* ptr)
|
|---|
| 14 | {
|
|---|
| 15 | return 0;
|
|---|
| 16 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.