[Python-checkins] python/dist/src/Modules readline.c, 2.64.6.3, 2.64.6.4

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Sat Oct 9 19:43:07 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19389

Modified Files:
      Tag: release23-maint
	readline.c 
Log Message:
Make it ANSI C again.


Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.64.6.3
retrieving revision 2.64.6.4
diff -u -d -r2.64.6.3 -r2.64.6.4
--- readline.c	20 Aug 2004 06:29:14 -0000	2.64.6.3
+++ readline.c	9 Oct 2004 17:43:03 -0000	2.64.6.4
@@ -655,15 +655,15 @@
 static char *
 call_readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
 {
+	size_t n;
+	char *p, *q;
+	PyOS_sighandler_t old_inthandler;
 #ifdef SAVE_LOCALE
 	char *saved_locale = strdup(setlocale(LC_CTYPE, NULL));
 	if (!saved_locale)
 		Py_FatalError("not enough memory to save locale");
 	setlocale(LC_CTYPE, "");
 #endif
-	size_t n;
-	char *p, *q;
-	PyOS_sighandler_t old_inthandler;
 
 	old_inthandler = PyOS_setsig(SIGINT, onintr);
 	if (setjmp(jbuf)) {



More information about the Python-checkins mailing list