diff options
author | Guido van Rossum <guido@python.org> | 1996-07-21 02:27:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-07-21 02:27:43 (GMT) |
commit | 530956d247fd01cb4e3bdc0dedd7ab3e0b9a8b13 (patch) | |
tree | 346bc758298b88c54912f892dd8d1e27abc9bb11 /Python | |
parent | 519b4339f1ac649a10ef5db03a05a47d88ee6072 (diff) | |
download | cpython-530956d247fd01cb4e3bdc0dedd7ab3e0b9a8b13.zip cpython-530956d247fd01cb4e3bdc0dedd7ab3e0b9a8b13.tar.gz cpython-530956d247fd01cb4e3bdc0dedd7ab3e0b9a8b13.tar.bz2 |
Py_complex; and WITHOUT_COMPLEX added to getargs.c
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 2 | ||||
-rw-r--r-- | Python/compile.c | 4 | ||||
-rw-r--r-- | Python/getargs.c | 6 | ||||
-rw-r--r-- | Python/marshal.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0eedb65..3a3fe56 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -286,7 +286,7 @@ builtin_complex(self, args) { object *r, *i; number_methods *nbr, *nbi; - complex cr, ci; + Py_complex cr, ci; i = NULL; if (!newgetargs(args, "O|O:complex", &r, &i)) diff --git a/Python/compile.c b/Python/compile.c index 3a1d3f6..3299ad9 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -565,7 +565,7 @@ parsenumber(s) char *end; long x; #ifndef WITHOUT_COMPLEX - complex c; + Py_complex c; int imflag; #endif @@ -2500,7 +2500,7 @@ com_arglist(c, n) name = STR(fp); else { name = ""; - complex= 1; + complex = 1; } com_newlocal(c, name); c->c_argcount++; diff --git a/Python/getargs.c b/Python/getargs.c index 7ec31c3..0c47614 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -498,16 +498,18 @@ convertsimple1(arg, p_format, p_va) break; } +#ifndef WITHOUT_COMPLEX case 'D': /* complex double */ { - complex *p = va_arg(*p_va, complex *); - complex cval = PyComplex_AsCComplex(arg); + Py_complex *p = va_arg(*p_va, Py_complex *); + Py_complex cval = PyComplex_AsCComplex(arg); if (err_occurred()) return "complex<D>"; else *p = cval; break; } +#endif /* WITHOUT_COMPLEX */ case 'c': /* char */ { diff --git a/Python/marshal.c b/Python/marshal.c index 2fab46f..509e303 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -359,7 +359,7 @@ r_object(p) { extern double atof PROTO((const char *)); char buf[256]; - complex c; + Py_complex c; n = r_byte(p); if (r_string(buf, (int)n, p) != n) { err_setstr(EOFError, |