MCPcopy Index your code
hub / github.com/MapServer/MapServer / writeHashTable

Function writeHashTable

mapfile.c:2238–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2236}
2237
2238static 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
2256static void writeHashTableInline(FILE *stream, int indent, char *name, hashTableObj* table) {
2257 struct hashObj *tp = NULL;

Callers 3

writeClassFunction · 0.85
writeLayerFunction · 0.85
writeWebFunction · 0.85

Calls 4

msHashIsEmptyFunction · 0.85
writeBlockBeginFunction · 0.85
writeNameValuePairFunction · 0.85
writeBlockEndFunction · 0.85

Tested by

no test coverage detected