mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
_Py_AskYesNo(): Removed this function. It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.
This commit is contained in:
parent
c53b29e2a7
commit
34b2569327
1 changed files with 0 additions and 20 deletions
|
@ -42,11 +42,6 @@ static void err_input(perrdetail *);
|
||||||
static void initsigs(void);
|
static void initsigs(void);
|
||||||
static void call_sys_exitfunc(void);
|
static void call_sys_exitfunc(void);
|
||||||
static void call_ll_exitfuncs(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_Init(void);
|
||||||
extern void _PyUnicode_Fini(void);
|
extern void _PyUnicode_Fini(void);
|
||||||
extern void _PyCodecRegistry_Init(void);
|
extern void _PyCodecRegistry_Init(void);
|
||||||
|
@ -1389,21 +1384,6 @@ initsigs(void)
|
||||||
PyOS_InitInterrupts(); /* May imply initsignal() */
|
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
|
#ifdef MPW
|
||||||
|
|
||||||
/* Check for file descriptor connected to interactive device.
|
/* Check for file descriptor connected to interactive device.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue