diff options
author | Guido van Rossum <guido@python.org> | 1993-07-05 10:31:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-07-05 10:31:29 (GMT) |
commit | f1dc56632881fe4e5beed047580bf927679f3669 (patch) | |
tree | f669dcac15ec9cb2801b881c3a7b1a579e7c994e /Python | |
parent | 9e90a672b44e2acfd5c6dabfb9435bb4bb46c845 (diff) | |
download | cpython-f1dc56632881fe4e5beed047580bf927679f3669.zip cpython-f1dc56632881fe4e5beed047580bf927679f3669.tar.gz cpython-f1dc56632881fe4e5beed047580bf927679f3669.tar.bz2 |
* 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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 | ||||
-rw-r--r-- | Python/compile.c | 3 | ||||
-rw-r--r-- | Python/errors.c | 3 | ||||
-rw-r--r-- | Python/fmod.c | 2 | ||||
-rw-r--r-- | Python/frozenmain.c | 4 | ||||
-rw-r--r-- | Python/getcwd.c | 2 | ||||
-rw-r--r-- | Python/marshal.c | 1 | ||||
-rw-r--r-- | Python/modsupport.c | 4 | ||||
-rw-r--r-- | Python/pythonrun.c | 12 |
9 files changed, 13 insertions, 20 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 8ed4663..b8d6de2 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1652,7 +1652,7 @@ locals_2_fast(f, clear) err_setval(error_type, error_value); } -void +static void mergelocals() { locals_2_fast(current_frame, 1); diff --git a/Python/compile.c b/Python/compile.c index a8cd4e9..0eb06cb 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -39,8 +39,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "structmember.h" #include <ctype.h> - -extern int errno; +#include <errno.h> #define OFF(x) offsetof(codeobject, x) diff --git a/Python/errors.c b/Python/errors.c index 9f53255..6b8a183 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -59,9 +59,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "modsupport.h" #include <errno.h> -#ifndef errno -extern int errno; -#endif #include "errcode.h" diff --git a/Python/fmod.c b/Python/fmod.c index 8301b94..027c662 100644 --- a/Python/fmod.c +++ b/Python/fmod.c @@ -27,8 +27,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <math.h> #include <errno.h> -extern int errno; - double fmod(x, y) double x, y; diff --git a/Python/frozenmain.c b/Python/frozenmain.c index 8bc136a..2aee249 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -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); diff --git a/Python/getcwd.c b/Python/getcwd.c index 675c4a6..e3c3bfc 100644 --- a/Python/getcwd.c +++ b/Python/getcwd.c @@ -30,8 +30,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <stdio.h> #include <errno.h> -extern int errno; - #ifndef NO_GETWD /* Default: Version for BSD systems -- use getwd() */ diff --git a/Python/marshal.c b/Python/marshal.c index 93503d1..e61815c 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -34,7 +34,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "marshal.h" #include <errno.h> -extern int errno; #define TYPE_NULL '0' #define TYPE_NONE 'N' diff --git a/Python/modsupport.c b/Python/modsupport.c index d998ad8..beb5c34 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -314,6 +314,8 @@ int getargs(va_alist) va_dcl return ok; } +#ifdef UNUSED + int getlongtuplearg(args, a, n) object *args; @@ -394,6 +396,8 @@ getshortlistarg(args, a, n) return 1; } +#endif /* UNUSED */ + /* Generic function to create a value -- the inverse of getargs() */ /* After an original idea and first implementation by Steven Miale */ diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b85be92..d518f24 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -284,7 +284,7 @@ run_file(fp, filename, start, globals, locals) return run_err_node(err, n, filename, globals, locals); } -object * +static object * run_err_node(err, n, filename, globals, locals) int err; node *n; @@ -298,7 +298,7 @@ run_err_node(err, n, filename, globals, locals) return run_node(n, filename, globals, locals); } -object * +static object * run_node(n, filename, globals, locals) node *n; char *filename; @@ -307,7 +307,7 @@ run_node(n, filename, globals, locals) return eval_node(n, filename, globals, locals); } -object * +static object * eval_node(n, filename, globals, locals) node *n; char *filename; @@ -392,7 +392,7 @@ fatal(msg) extern int threads_started; #endif -void +static void cleanup() { object *exitfunc = sysget("exitfunc"); @@ -461,7 +461,7 @@ goaway(sts) } #ifdef HANDLE_SIGNALS -SIGTYPE +static SIGTYPE sighandler(sig) int sig; { @@ -472,7 +472,7 @@ sighandler(sig) } #endif -void +static void initsigs() { initintr(); |