Mercurial > projects > ddmd
comparison dmd/backend/LIST.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 5c9b78899f5d |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:10317f0c89a5 |
---|---|
1 module dmd.backend.LIST; | |
2 | |
3 import dmd.backend.Symbol; | |
4 | |
5 struct LIST | |
6 { | |
7 /* Do not access items in this struct directly, use the */ | |
8 /* functions designed for that purpose. */ | |
9 LIST* next; /* next element in list */ | |
10 int count; /* when 0, element may be deleted */ | |
11 | |
12 union | |
13 { | |
14 void *ptr; /* data pointer */ | |
15 int data; | |
16 } | |
17 } | |
18 | |
19 alias LIST* list_t; /* pointer to a list entry */ | |
20 alias list_t symlist_t; /* pointer to a list entry */ | |
21 | |
22 extern (C++) extern { | |
23 __gshared list_t slist; | |
24 list_t list_prepend(list_t* plist, void* ptr); | |
25 void slist_add(Symbol* s); | |
26 } |