ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since d67a9a1 was
6be0cf9,
checked in by Thierry Delisle <tdelisle@…>, 9 years ago
|
gcpointers.c compiles
|
-
Property mode set to
100644
|
File size:
597 bytes
|
Rev | Line | |
---|
[15db1ab] | 1 | #pragma once |
---|
| 2 | |
---|
[6be0cf9] | 3 | #include <stdint.h> |
---|
| 4 | |
---|
[15db1ab] | 5 | struct gcpointer_t |
---|
| 6 | { |
---|
[6be0cf9] | 7 | intptr_t ptr; |
---|
[15db1ab] | 8 | struct gcpointer_t* next; |
---|
| 9 | }; |
---|
| 10 | |
---|
| 11 | void gcpointer_ctor(gcpointer_t* this); |
---|
| 12 | // void gcpointer_ctor(gcpointer_t* ptr, (int)0); |
---|
| 13 | void gcpointer_ctor(gcpointer_t* this, void* address); |
---|
| 14 | void gcpointer_ctor(gcpointer_t* this, gcpointer_t* other); |
---|
| 15 | |
---|
| 16 | void gcpointer_dtor(gcpointer_t* this); |
---|
| 17 | |
---|
| 18 | gcpointer_t* gcpointer_assign(gcpointer_t* this, gcpointer_t* rhs); |
---|
| 19 | |
---|
| 20 | //Logical operators |
---|
| 21 | int gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs); |
---|
| 22 | int gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs); |
---|
| 23 | int gcpointer_null(gcpointer_t* this); |
---|
Note: See
TracBrowser
for help on using the repository browser.