MCPcopy Create free account
hub / github.com/DentonW/DevIL / XpmDestroyHashTable

Function XpmDestroyHashTable

DevIL/src-IL/src/il_xpm.cpp:181–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void XpmDestroyHashTable(XPMHASHENTRY **Table)
182{
183 ILint i;
184 XPMHASHENTRY* Entry;
185
186 for (i = 0; i < XPM_HASH_LEN; ++i) {
187 while (Table[i] != NULL) {
188 Entry = Table[i]->Next;
189 ifree(Table[i]);
190 Table[i] = Entry;
191 }
192 }
193
194 ifree(Table);
195}
196
197
198void XpmInsertEntry(XPMHASHENTRY **Table, const ILubyte* Name, int Len, XpmPixel Colour)

Callers 1

il_xpm.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected