| 2236 | } |
| 2237 | |
| 2238 | static void writeHashTable(FILE *stream, int indent, const char *title, hashTableObj *table) { |
| 2239 | struct hashObj *tp; |
| 2240 | int i; |
| 2241 | |
| 2242 | if(!table) return; |
| 2243 | if(msHashIsEmpty(table)) return; |
| 2244 | |
| 2245 | indent++; |
| 2246 | writeBlockBegin(stream, indent, title); |
| 2247 | for (i=0;i<MS_HASHSIZE; i++) { |
| 2248 | if (table->items[i] != NULL) { |
| 2249 | for (tp=table->items[i]; tp!=NULL; tp=tp->next) |
| 2250 | writeNameValuePair(stream, indent, tp->key, tp->data); |
| 2251 | } |
| 2252 | } |
| 2253 | writeBlockEnd(stream, indent, title); |
| 2254 | } |
| 2255 | |
| 2256 | static void writeHashTableInline(FILE *stream, int indent, char *name, hashTableObj* table) { |
| 2257 | struct hashObj *tp = NULL; |
no test coverage detected