MCPcopy Create free account
hub / github.com/SimHacker/micropolis / Tk_NameOfBitmap

Function Tk_NameOfBitmap

micropolis-activity/src/tk/tkbitmap.c:294–312  ·  view source on GitHub ↗
(bitmap)

Source from the content-addressed store, hash-verified

292 * None.
293 *
294 *--------------------------------------------------------------
295 */
296
297Tk_Uid
298Tk_NameOfBitmap(bitmap)
299 Pixmap bitmap; /* Bitmap whose name is wanted. */
300{
301 Tcl_HashEntry *idHashPtr;
302 TkBitmap *bitmapPtr;
303
304 if (!initialized) {
305 unknown:
306 panic("Tk_NameOfBitmap received unknown bitmap argument");
307 }
308
309 idHashPtr = Tcl_FindHashEntry(&idTable, (char *) bitmap);
310 if (idHashPtr == NULL) {
311 goto unknown;
312 }
313 bitmapPtr = (TkBitmap *) Tcl_GetHashValue(idHashPtr);
314 return ((NameKey *) bitmapPtr->hashPtr->key.words)->name;
315}

Callers 2

tkconfig.cFile · 0.85
Tk_WmCmdFunction · 0.85

Calls 1

panicFunction · 0.85

Tested by

no test coverage detected