| 45 | } |
| 46 | |
| 47 | hashTableObj *msCreateHashTable() |
| 48 | { |
| 49 | int i; |
| 50 | hashTableObj *table; |
| 51 | |
| 52 | table = (hashTableObj *) msSmallMalloc(sizeof(hashTableObj)); |
| 53 | table->items = (struct hashObj **) msSmallMalloc(sizeof(struct hashObj *)*MS_HASHSIZE); |
| 54 | |
| 55 | for (i=0; i<MS_HASHSIZE; i++) |
| 56 | table->items[i] = NULL; |
| 57 | table->numitems = 0; |
| 58 | |
| 59 | return table; |
| 60 | } |
| 61 | |
| 62 | int initHashTable( hashTableObj *table ) |
| 63 | { |
no test coverage detected