| 2254 | } |
| 2255 | |
| 2256 | static void writeHashTableInline(FILE *stream, int indent, char *name, hashTableObj* table) { |
| 2257 | struct hashObj *tp = NULL; |
| 2258 | int i; |
| 2259 | |
| 2260 | if(!table) return; |
| 2261 | if(msHashIsEmpty(table)) return; |
| 2262 | |
| 2263 | ++indent; |
| 2264 | for (i=0;i<MS_HASHSIZE;++i) { |
| 2265 | if (table->items[i] != NULL) { |
| 2266 | for (tp=table->items[i]; tp!=NULL; tp=tp->next) { |
| 2267 | writeIndent(stream, indent); |
| 2268 | fprintf(stream, "%s \"%s\" \"%s\"\n", name, tp->key, tp->data); |
| 2269 | } |
| 2270 | } |
| 2271 | } |
| 2272 | } |
| 2273 | |
| 2274 | /* |
| 2275 | ** Initialize, load and free a cluster object |
no test coverage detected