[IMAGE-SIG] Bug in PIL 0.3a1 tkImaging.c
Zachary_Roadhouse@brown.edu
Zachary_Roadhouse@brown.edu
Thu, 15 Jan 1998 13:39:52 -0500 (EST)
Really simple one, I guess Tk_FindPhoto now takes the interp as
another arguement. This is for Tcl/Tk 8.0p2. I'm still trying
to figure out the ANSI compiler thing. The simple -ansi switch
doesn't fix it. Maybe you can figure out another way to detect
whether or not a compiler is ANSI compilent. Everything appears
to compile fine even with the warning about ANSI C.
-----------
diff -c /vision/packages/Python/Python-1.5/Modules/tkImaging.c~
/vision/packages/Python/Python-1.5/Modules/tkImaging.c
*** /vision/packages/Python/Python-1.5/Modules/tkImaging.c~ Thu Jan 15
13:39:24 1998
--- /vision/packages/Python/Python-1.5/Modules/tkImaging.c Thu Jan 15
13:39:24 1998
***************
*** 70,76 ****
}
/* get Tcl PhotoImage handle */
! photo = Tk_FindPhoto(argv[1]);
if (photo == NULL) {
Tcl_AppendResult(interp, "destination photo must exist", (char *)
NULL);
return TCL_ERROR;
--- 70,76 ----
}
/* get Tcl PhotoImage handle */
! photo = Tk_FindPhoto(interp, argv[1]);
if (photo == NULL) {
Tcl_AppendResult(interp, "destination photo must exist", (char *)
NULL);
return TCL_ERROR;
--Zack
/---------------------------------------------------------------------
Zachary F. Roadhouse Home: (401)453-9943
Box 220, Brown University, Providence, RI 02912 Work: (401)863-2177
E-MAIL: Zachary_Roadhouse@brown.edu
WWW: http://www.techhouse.brown.edu/~zack
_______________
IMAGE-SIG - SIG on Image Processing with Python
send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________