mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
* Makefile: added all: and default: targets.
* many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
This commit is contained in:
parent
9e90a672b4
commit
f1dc566328
16 changed files with 140 additions and 165 deletions
|
@ -38,7 +38,6 @@ main(argc, argv)
|
|||
{
|
||||
char *p;
|
||||
int n, inspect, sts;
|
||||
int n;
|
||||
|
||||
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
|
||||
debugging = 1;
|
||||
|
@ -63,8 +62,7 @@ main(argc, argv)
|
|||
else
|
||||
sts = 0;
|
||||
|
||||
if (inspect && isatty((int)fileno(stdin)) &&
|
||||
(filename != NULL || command != NULL))
|
||||
if (inspect && isatty((int)fileno(stdin)))
|
||||
sts = run(stdin, "<stdin>") != 0;
|
||||
|
||||
goaway(sts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue