diff Modules/_tkinter.c @ 32945:fbb5428ebf41 legacy-trunk

Tkapp_New(): Rewrite in C so it compiles again.
author Tim Peters <tim.peters@gmail.com>
date Wed, 04 Aug 2004 02:16:48 +0000
parents 63df4cb492a1
children 49b6e966e57f
line wrap: on
line diff
--- a/Modules/_tkinter.c	Tue Aug 03 18:53:07 2004 +0000
+++ b/Modules/_tkinter.c	Wed Aug 04 02:16:48 2004 +0000
@@ -580,6 +580,7 @@
 {
 	TkappObject *v;
 	char *argv0;
+
 	v = PyObject_New(TkappObject, &Tkapp_Type);
 	if (v == NULL)
 		return NULL;
@@ -646,13 +647,15 @@
 
 	/* some initial arguments need to be in argv */
 	if (sync || use) {
+		char *args;
 		int len = 0;
+
 		if (sync)
 			len += sizeof "-sync";
 		if (use)
 			len += strlen(use) + sizeof "-use ";
 
-		char *args = (char*)ckalloc(len);
+		args = (char*)ckalloc(len);
 		if (!args) {
 			PyErr_NoMemory();
 			Py_DECREF(v);