Commit 47b80e1c97292fc5a6626b72c25b0922b0863f2b
1 parent
10c40865
initialize static instance creation
Showing
5 changed files
with
5 additions
and
0 deletions
@@ -52,6 +52,7 @@ TR_CLASS(TR_Cbuf) { | @@ -52,6 +52,7 @@ TR_CLASS(TR_Cbuf) { | ||
52 | size_t write; | 52 | size_t write; |
53 | size_t read; | 53 | size_t read; |
54 | }; | 54 | }; |
55 | +TR_INSTANCE_INIT(TR_Cbuf); | ||
55 | 56 | ||
56 | ssize_t TR_cbufRead(TR_Cbuf, TR_Stream); | 57 | ssize_t TR_cbufRead(TR_Cbuf, TR_Stream); |
57 | ssize_t TR_cbufWrite(TR_Cbuf, TR_Stream); | 58 | ssize_t TR_cbufWrite(TR_Cbuf, TR_Stream); |
@@ -33,6 +33,7 @@ | @@ -33,6 +33,7 @@ | ||
33 | TR_CLASS(TR_Hash) { | 33 | TR_CLASS(TR_Hash) { |
34 | TR_Tree root; | 34 | TR_Tree root; |
35 | }; | 35 | }; |
36 | +TR_INSTANCE_INIT(TR_Hash); | ||
36 | 37 | ||
37 | void * TR_hashAdd(TR_Hash, void *); | 38 | void * TR_hashAdd(TR_Hash, void *); |
38 | void * TR_hashDelete(TR_Hash, const char *, size_t); | 39 | void * TR_hashDelete(TR_Hash, const char *, size_t); |
@@ -47,6 +47,7 @@ TR_CLASS(TR_Queue) { | @@ -47,6 +47,7 @@ TR_CLASS(TR_Queue) { | ||
47 | TR_Queue last; | 47 | TR_Queue last; |
48 | size_t nmsg; | 48 | size_t nmsg; |
49 | }; | 49 | }; |
50 | +TR_INSTANCE_INIT(TR_Queue); | ||
50 | 51 | ||
51 | void TR_queuePut(TR_Queue, void *); | 52 | void TR_queuePut(TR_Queue, void *); |
52 | void * TR_queueGet(TR_Queue); | 53 | void * TR_queueGet(TR_Queue); |
@@ -35,6 +35,7 @@ TR_CLASS(TR_Tree) { | @@ -35,6 +35,7 @@ TR_CLASS(TR_Tree) { | ||
35 | TR_Tree left; | 35 | TR_Tree left; |
36 | TR_Tree right; | 36 | TR_Tree right; |
37 | }; | 37 | }; |
38 | +TR_INSTANCE_INIT(TR_Tree); | ||
38 | 39 | ||
39 | typedef int (*TR_TreeComp)(const void *, const void *); | 40 | typedef int (*TR_TreeComp)(const void *, const void *); |
40 | typedef void (*TR_TreeAction)(const void *, const int); | 41 | typedef void (*TR_TreeAction)(const void *, const int); |
Please
register
or
login
to post a comment