diff options
author | Guido van Rossum <guido@python.org> | 1996-07-31 19:51:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-07-31 19:51:15 (GMT) |
commit | 32aa1a72b256cc8c4262bc9863eef9452fc1305c (patch) | |
tree | 5ae6fd6eb849837731e55268faa7e5f9d677c75d /Modules | |
parent | 3823420ca4432c20892cbff0267219fe16358a94 (diff) | |
download | cpython-32aa1a72b256cc8c4262bc9863eef9452fc1305c.zip cpython-32aa1a72b256cc8c4262bc9863eef9452fc1305c.tar.gz cpython-32aa1a72b256cc8c4262bc9863eef9452fc1305c.tar.bz2 |
getprogramname --> Py_GetProgramName
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 83f9be5..bbada35 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -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", |