Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
34b25693
Commit
34b25693
authored
Jul 09, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_Py_AskYesNo(): Removed this function. It was defined only in a
Py_TRACE_REFS build, but wasn't referenced.
parent
c53b29e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
Python/pythonrun.c
Python/pythonrun.c
+0
-20
No files found.
Python/pythonrun.c
View file @
34b25693
...
...
@@ -42,11 +42,6 @@ static void err_input(perrdetail *);
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 @@ initsigs(void)
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment