Commit 47b80e1c97292fc5a6626b72c25b0922b0863f2b

Authored by Georg Hopp
1 parent 10c40865

initialize static instance creation

... ... @@ -52,6 +52,7 @@ TR_CLASS(TR_Cbuf) {
52 52 size_t write;
53 53 size_t read;
54 54 };
  55 +TR_INSTANCE_INIT(TR_Cbuf);
55 56
56 57 ssize_t TR_cbufRead(TR_Cbuf, TR_Stream);
57 58 ssize_t TR_cbufWrite(TR_Cbuf, TR_Stream);
... ...
... ... @@ -33,6 +33,7 @@
33 33 TR_CLASS(TR_Hash) {
34 34 TR_Tree root;
35 35 };
  36 +TR_INSTANCE_INIT(TR_Hash);
36 37
37 38 void * TR_hashAdd(TR_Hash, void *);
38 39 void * TR_hashDelete(TR_Hash, const char *, size_t);
... ...
... ... @@ -36,6 +36,7 @@ TR_CLASS(TR_HashValue) {
36 36 size_t nkey;
37 37 size_t nvalue;
38 38 };
  39 +TR_INSTANCE_INIT(TR_HashValue);
39 40
40 41 #endif // __TR_HASH_VALUE_H__
41 42
... ...
... ... @@ -47,6 +47,7 @@ TR_CLASS(TR_Queue) {
47 47 TR_Queue last;
48 48 size_t nmsg;
49 49 };
  50 +TR_INSTANCE_INIT(TR_Queue);
50 51
51 52 void TR_queuePut(TR_Queue, void *);
52 53 void * TR_queueGet(TR_Queue);
... ...
... ... @@ -35,6 +35,7 @@ TR_CLASS(TR_Tree) {
35 35 TR_Tree left;
36 36 TR_Tree right;
37 37 };
  38 +TR_INSTANCE_INIT(TR_Tree);
38 39
39 40 typedef int (*TR_TreeComp)(const void *, const void *);
40 41 typedef void (*TR_TreeAction)(const void *, const int);
... ...
Please register or login to post a comment