| 72 | /* debug_htable_size - allocate and initialize hash table */ |
| 73 | |
| 74 | static int debug_htable_size(DEBUG_HTABLE *table, unsigned size) |
| 75 | { |
| 76 | DEBUG_HTABLE_INFO **h; |
| 77 | |
| 78 | size |= 1; |
| 79 | |
| 80 | table->data = h = (DEBUG_HTABLE_INFO **) MALLOC(size * sizeof(DEBUG_HTABLE_INFO *)); |
| 81 | if(table->data == NULL) |
| 82 | return(-1); |
| 83 | |
| 84 | table->size = size; |
| 85 | table->used = 0; |
| 86 | |
| 87 | while (size-- > 0) |
| 88 | *h++ = 0; |
| 89 | |
| 90 | return(0); |
| 91 | } |
| 92 | |
| 93 | /* debug_htable_grow - extend existing table */ |
| 94 |
no outgoing calls
no test coverage detected
searching dependent graphs…