]> granicus.if.org Git - python/commitdiff
getprogramname --> Py_GetProgramName
authorGuido van Rossum <guido@python.org>
Wed, 31 Jul 1996 19:51:15 +0000 (19:51 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 31 Jul 1996 19:51:15 +0000 (19:51 +0000)
Modules/_tkinter.c

index 83f9be533dd6096ee3cd3a509dbd41d752f2bd50..bbada358e8b3d832a1c75b9614c7f8d6bbd0683e 100644 (file)
@@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <tcl.h>
 #include <tk.h>
 
-extern char *getprogramname ();
+extern char *Py_GetProgramName ();
 
 /* Internal declarations from tkInt.h.  */
 #if (TK_MAJOR_VERSION*1000 + TK_MINOR_VERSION) >= 4001
@@ -1234,11 +1234,11 @@ Tkinter_Create (self, args)
   char *className = NULL;
   int interactive = 0;
 
-  baseName = strrchr (getprogramname (), '/');
+  baseName = strrchr (Py_GetProgramName (), '/');
   if (baseName != NULL)
     baseName++;
   else
-    baseName = getprogramname ();
+    baseName = Py_GetProgramName ();
   className = "Tk";
   
   if (!PyArg_ParseTuple (args, "|zssi",