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

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since c44e622 was 6be0cf9, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

gcpointers.c compiles

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