| 40 |
40 |
| 41 |
41 |
| 42 void uic_toolbar_init(void) { |
42 void uic_toolbar_init(void) { |
| 43 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16); |
43 toolbar_items = cxHashMapCreate(cxDefaultAllocator, CX_STORE_POINTERS, 16); |
| 44 for(int i=0;i<8;i++) { |
44 for(int i=0;i<8;i++) { |
| 45 toolbar_defaults[i] = cxLinkedListCreateSimple(CX_STORE_POINTERS); |
45 toolbar_defaults[i] = cxLinkedListCreate(NULL, CX_STORE_POINTERS); |
| 46 } |
46 } |
| 47 } |
47 } |
| 48 |
48 |
| 49 static char* nl_strdup(const char* str) { |
49 static char* nl_strdup(const char* str) { |
| 50 return str ? strdup(str) : NULL; |
50 return str ? strdup(str) : NULL; |