| 196 | |
| 197 | |
| 198 | void XpmInsertEntry(XPMHASHENTRY **Table, const ILubyte* Name, int Len, XpmPixel Colour) |
| 199 | { |
| 200 | XPMHASHENTRY* NewEntry; |
| 201 | ILuint Index; |
| 202 | Index = XpmHash(Name, Len); |
| 203 | |
| 204 | NewEntry = (XPMHASHENTRY*)ialloc(sizeof(XPMHASHENTRY)); |
| 205 | if (NewEntry != NULL) { |
| 206 | NewEntry->Next = Table[Index]; |
| 207 | memcpy(NewEntry->ColourName, Name, Len); |
| 208 | memcpy(NewEntry->ColourValue, Colour, sizeof(XpmPixel)); |
| 209 | Table[Index] = NewEntry; |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | |
| 214 | void XpmGetEntry(XPMHASHENTRY **Table, const ILubyte* Name, int Len, XpmPixel Colour) |
no test coverage detected