Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 24162:8ee2ab4f2a2d legacy-trunk
_Py_AskYesNo(): Removed this function. It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 09 Jul 2002 18:22:55 +0000 |
| parents | cb728141ae12 |
| children | 06f1e2fd05bc |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue Jul 09 16:36:36 2002 +0000 +++ b/Python/pythonrun.c Tue Jul 09 18:22:55 2002 +0000 @@ -42,11 +42,6 @@ static void initsigs(void); 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); extern void _PyCodecRegistry_Init(void); @@ -1389,21 +1384,6 @@ 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 /* Check for file descriptor connected to interactive device.
