MCPcopy Create free account
hub / github.com/MapServer/MapServer / writeHashTableInline

Function writeHashTableInline

mapfile.c:2256–2272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254}
2255
2256static 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

Callers 1

msSaveMapFunction · 0.85

Calls 2

msHashIsEmptyFunction · 0.85
writeIndentFunction · 0.85

Tested by

no test coverage detected