ADT
aaron-thesis
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 ab3a69c was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 7 years ago |
|
Moved up many directories in source
|
-
Property mode
set to
100644
|
|
File size:
270 bytes
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | #include <stdbool.h>
|
|---|
| 3 | #include <stdint.h>
|
|---|
| 4 |
|
|---|
| 5 | struct gcpointer_t
|
|---|
| 6 | {
|
|---|
| 7 | intptr_t ptr;
|
|---|
| 8 | struct gcpointer_t* next;
|
|---|
| 9 | };
|
|---|
| 10 |
|
|---|
| 11 | forall(otype T)
|
|---|
| 12 | struct gcpointer
|
|---|
| 13 | {
|
|---|
| 14 | gcpointer_t internal;
|
|---|
| 15 | };
|
|---|
| 16 |
|
|---|
| 17 | forall(otype T)
|
|---|
| 18 | static inline gcpointer(T) gcmalloc()
|
|---|
| 19 | {
|
|---|
| 20 | gcpointer(T) test;
|
|---|
| 21 | return test;
|
|---|
| 22 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.