Lines Matching defs:ptr

336     char *ptr;
346 ptr = widgRec + specPtr->offset;
349 if (Tcl_GetBoolean(interp, value, (int *) ptr) != TCL_OK) {
354 if (Tcl_GetInt(interp, value, (int *) ptr) != TCL_OK) {
359 if (Tcl_GetDouble(interp, value, (double *) ptr) != TCL_OK) {
372 old = *((char **) ptr);
376 *((char **) ptr) = new;
381 *((Tk_Uid *) ptr) = NULL;
384 *((Tk_Uid *) ptr) = uid;
399 oldPtr = *((XColor **) ptr);
403 *((XColor **) ptr) = newPtr;
418 oldPtr = *((XFontStruct **) ptr);
422 *((XFontStruct **) ptr) = newPtr;
437 old = *((Pixmap *) ptr);
441 *((Pixmap *) ptr) = new;
456 old = *((Tk_3DBorder *) ptr);
460 *((Tk_3DBorder *) ptr) = new;
465 if (Tk_GetRelief(interp, uid, (int *) ptr) != TCL_OK) {
482 old = *((Tk_Cursor *) ptr);
486 *((Tk_Cursor *) ptr) = new;
494 if (Tk_GetJustify(interp, uid, (Tk_Justify *) ptr) != TCL_OK) {
500 if (Tk_GetAnchor(interp, uid, (Tk_Anchor *) ptr) != TCL_OK) {
506 if (Tk_GetCapStyle(interp, uid, (int *) ptr) != TCL_OK) {
512 if (Tk_GetJoinStyle(interp, uid, (int *) ptr) != TCL_OK) {
517 if (Tk_GetPixels(interp, tkwin, value, (int *) ptr)
523 if (Tk_GetScreenMM(interp, tkwin, value, (double *) ptr)
539 *((Tk_Window *) ptr) = tkwin2;
760 char *ptr, *result;
763 ptr = widgRec + specPtr->offset;
767 if (*((int *) ptr) == 0) {
774 sprintf(buffer, "%d", *((int *) ptr));
778 Tcl_PrintDouble(interp, *((double *) ptr), buffer);
782 result = (*(char **) ptr);
788 Tk_Uid uid = *((Tk_Uid *) ptr);
795 XColor *colorPtr = *((XColor **) ptr);
802 XFontStruct *fontStructPtr = *((XFontStruct **) ptr);
809 Pixmap pixmap = *((Pixmap *) ptr);
816 Tk_3DBorder border = *((Tk_3DBorder *) ptr);
823 result = Tk_NameOfRelief(*((int *) ptr));
827 Tk_Cursor cursor = *((Tk_Cursor *) ptr);
834 result = Tk_NameOfJustify(*((Tk_Justify *) ptr));
837 result = Tk_NameOfAnchor(*((Tk_Anchor *) ptr));
840 result = Tk_NameOfCapStyle(*((int *) ptr));
843 result = Tk_NameOfJoinStyle(*((int *) ptr));
846 sprintf(buffer, "%d", *((int *) ptr));
850 Tcl_PrintDouble(interp, *((double *) ptr), buffer);
856 tkwin = *((Tk_Window *) ptr);
957 char *ptr;
963 ptr = widgRec + specPtr->offset;
966 if (*((char **) ptr) != NULL) {
967 ckfree(*((char **) ptr));
968 *((char **) ptr) = NULL;
972 if (*((XColor **) ptr) != NULL) {
973 Tk_FreeColor(*((XColor **) ptr));
974 *((XColor **) ptr) = NULL;
978 if (*((XFontStruct **) ptr) != NULL) {
979 Tk_FreeFontStruct(*((XFontStruct **) ptr));
980 *((XFontStruct **) ptr) = NULL;
984 if (*((Pixmap *) ptr) != None) {
985 Tk_FreeBitmap(display, *((Pixmap *) ptr));
986 *((Pixmap *) ptr) = None;
990 if (*((Tk_3DBorder *) ptr) != NULL) {
991 Tk_Free3DBorder(*((Tk_3DBorder *) ptr));
992 *((Tk_3DBorder *) ptr) = NULL;
997 if (*((Tk_Cursor *) ptr) != None) {
998 Tk_FreeCursor(display, *((Tk_Cursor *) ptr));
999 *((Tk_Cursor *) ptr) = None;