[Python-checkins] python/dist/src/Python pythonrun.c,2.163,2.164

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 09 Jul 2002 11:22:57 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv6159/python/Python

Modified Files:
	pythonrun.c 
Log Message:
_Py_AskYesNo():  Removed this function.  It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.163
retrieving revision 2.164
diff -C2 -d -r2.163 -r2.164
*** pythonrun.c	9 Jul 2002 09:23:27 -0000	2.163
--- pythonrun.c	9 Jul 2002 18:22:55 -0000	2.164
***************
*** 43,51 ****
  static void call_sys_exitfunc(void);
  static void call_ll_exitfuncs(void);
- 
- #ifdef Py_TRACE_REFS
- int _Py_AskYesNo(char *prompt);
- #endif
- 
  extern void _PyUnicode_Init(void);
  extern void _PyUnicode_Fini(void);
--- 43,46 ----
***************
*** 1389,1407 ****
  	PyOS_InitInterrupts(); /* May imply initsignal() */
  }
- 
- #ifdef Py_TRACE_REFS
- /* Ask a yes/no question */
- 
- int
- _Py_AskYesNo(char *prompt)
- {
- 	char buf[256];
- 	
- 	fprintf(stderr, "%s [ny] ", prompt);
- 	if (fgets(buf, sizeof buf, stdin) == NULL)
- 		return 0;
- 	return buf[0] == 'y' || buf[0] == 'Y';
- }
- #endif
  
  #ifdef MPW
--- 1384,1387 ----