source: src/examples/gc_no_raii/src/gcpointers.h @ a2b2761

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 a2b2761 was a2b2761, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

moved files src dir and added cofigurations to run preprocessor on cfiles

  • Property mode set to 100644
File size: 573 bytes
Line 
1#pragma once
2
3struct gcpointer_t
4{
5        void* ptr;
6        struct gcpointer_t* next;
7};
8
9void gcpointer_ctor(gcpointer_t* this);
10// void gcpointer_ctor(gcpointer_t* ptr, (int)0);
11void gcpointer_ctor(gcpointer_t* this, void* address);
12void gcpointer_ctor(gcpointer_t* this, gcpointer_t* other);
13
14void gcpointer_dtor(gcpointer_t* this);
15
16gcpointer_t* gcpointer_assign(gcpointer_t* this, gcpointer_t* rhs);
17
18//Logical operators
19int gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs);
20int gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs);
21int gcpointer_null(gcpointer_t* this);
Note: See TracBrowser for help on using the repository browser.