tests/test_tree.c

changeset 1183
86d386c0cf75
parent 1180
4c3a69b9723a
equal deleted inserted replaced
1181:183bf43aa9b9 1183:86d386c0cf75
54 const char *path; 54 const char *path;
55 } tree_node_file; 55 } tree_node_file;
56 56
57 static void *tree_node_file_create( 57 static void *tree_node_file_create(
58 const void *dptr, 58 const void *dptr,
59 const void *allocator) { 59 void *allocator) {
60 if (allocator == NULL) allocator = cxDefaultAllocator; 60 if (allocator == NULL) allocator = (void*) cxDefaultAllocator;
61 61
62 tree_node_file *node = cxMalloc(allocator, sizeof(tree_node_file)); 62 tree_node_file *node = cxMalloc(allocator, sizeof(tree_node_file));
63 node->path = dptr; 63 node->path = dptr;
64 64
65 // intentionally write garbage into the pointers, it's part of the test 65 // intentionally write garbage into the pointers, it's part of the test

mercurial