[Python-checkins] CVS: python/dist/src/Modules readline.c,2.23,2.24
Thomas Wouters
python-dev@python.org
Sat, 22 Jul 2000 16:51:22 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv11168
Modified Files:
readline.c
Log Message:
ANSIfication of function-pointers and declarations. Also, make sure to
return something if RETSIGTYPE is not void, in functions that are defined as
returning RETSIGTYPE.
Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** readline.c 2000/07/21 06:00:07 2.23
--- readline.c 2000/07/22 23:51:19 2.24
***************
*** 39,43 ****
/* Pointers needed from outside (but not declared in a header file). */
! extern int (*PyOS_InputHook)();
extern char *(*PyOS_ReadlineFunctionPointer)(char *);
--- 39,43 ----
/* Pointers needed from outside (but not declared in a header file). */
! extern int (*PyOS_InputHook)(void);
extern char *(*PyOS_ReadlineFunctionPointer)(char *);
***************
*** 432,435 ****
--- 432,438 ----
{
longjmp(jbuf, 1);
+ #if RETSIGTYPE != void
+ return 0;
+ #endif
}
***************
*** 442,446 ****
size_t n;
char *p, *q;
! RETSIGTYPE (*old_inthandler)();
old_inthandler = signal(SIGINT, onintr);
if (setjmp(jbuf)) {
--- 445,449 ----
size_t n;
char *p, *q;
! RETSIGTYPE (*old_inthandler)(int);
old_inthandler = signal(SIGINT, onintr);
if (setjmp(jbuf)) {