mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
make some things static
This commit is contained in:
parent
9ea917ebaa
commit
363078afa4
2 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ extern double pow PROTO((double, double));
|
||||||
|
|
||||||
/* elementary operations on complex numbers */
|
/* elementary operations on complex numbers */
|
||||||
|
|
||||||
int c_error;
|
static int c_error;
|
||||||
static complex c_1 = {1., 0.};
|
static complex c_1 = {1., 0.};
|
||||||
|
|
||||||
complex c_sum(a,b)
|
complex c_sum(a,b)
|
||||||
|
@ -136,7 +136,7 @@ complex c_pow(a,b)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
complex c_powu(x, n)
|
static complex c_powu(x, n)
|
||||||
complex x;
|
complex x;
|
||||||
long n;
|
long n;
|
||||||
{
|
{
|
||||||
|
@ -152,7 +152,7 @@ complex c_powu(x, n)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
complex c_powi(x, n)
|
static complex c_powi(x, n)
|
||||||
complex x;
|
complex x;
|
||||||
long n;
|
long n;
|
||||||
{
|
{
|
||||||
|
@ -228,7 +228,7 @@ complex_dealloc(op)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
complex_buf_repr(buf, v)
|
complex_buf_repr(buf, v)
|
||||||
char *buf;
|
char *buf;
|
||||||
complexobject *v;
|
complexobject *v;
|
||||||
|
|
|
@ -316,7 +316,7 @@ float_divmod(v, w)
|
||||||
return mkvalue("(dd)", div, mod);
|
return mkvalue("(dd)", div, mod);
|
||||||
}
|
}
|
||||||
|
|
||||||
double powu(x, n)
|
static double powu(x, n)
|
||||||
double x;
|
double x;
|
||||||
long n;
|
long n;
|
||||||
{
|
{
|
||||||
|
@ -332,7 +332,7 @@ double powu(x, n)
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
double powi(x, n)
|
static double powi(x, n)
|
||||||
double x;
|
double x;
|
||||||
long n;
|
long n;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue