ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since bee4283 was
bee4283,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
GC files now compile, still working on a compiling example
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | #include <stdbool.h> |
---|
4 | #include <stdint.h> |
---|
5 | |
---|
6 | struct gcpointer_t |
---|
7 | { |
---|
8 | intptr_t ptr; |
---|
9 | struct gcpointer_t* next; |
---|
10 | }; |
---|
11 | |
---|
12 | void ?{}(gcpointer_t* this); |
---|
13 | void ?{}(gcpointer_t* this, void* address); |
---|
14 | void ?{}(gcpointer_t* this, gcpointer_t other); |
---|
15 | void ^?{}(gcpointer_t* this); |
---|
16 | gcpointer_t* ?=?(gcpointer_t this, gcpointer_t rhs); |
---|
17 | |
---|
18 | //Logical operators |
---|
19 | bool gcpointer_equal(gcpointer_t* this, gcpointer_t* rhs); |
---|
20 | bool gcpointer_not_equal(gcpointer_t* this, gcpointer_t* rhs); |
---|
21 | bool gcpointer_null(gcpointer_t* this); |
---|
22 | |
---|
23 | forall(otype T) |
---|
24 | struct gcpointer |
---|
25 | { |
---|
26 | gcpointer_t internal; |
---|
27 | }; |
---|
28 | |
---|
29 | // |
---|
30 | forall(otype T) void ?{}(gcpointer(T)* this); |
---|
31 | forall(otype T) void ?{}(gcpointer(T)* this, void* address); |
---|
32 | forall(otype T) void ctor(gcpointer(T)* this, void* address); |
---|
33 | forall(otype T) void ?{}(gcpointer(T)* this, gcpointer(T)* other); |
---|
34 | forall(otype T) void ^?{}(gcpointer(T)* this); |
---|
35 | forall(otype T) gcpointer(T) ?=?(gcpointer(T) this, gcpointer(T) rhs); |
---|
36 | |
---|
37 | |
---|
38 | forall(otype T) T *?(gcpointer(T) this); |
---|
39 | |
---|
40 | //Logical operators |
---|
41 | forall(otype T) int ?!=?(gcpointer(T) this, gcpointer(T) rhs); |
---|
42 | forall(otype T) int ?==?(gcpointer(T) this, gcpointer(T) rhs); |
---|
Note: See
TracBrowser
for help on using the repository browser.