Skip to content

Commit 363078a

Browse files
committed
make some things static
1 parent 9ea917e commit 363078a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Objects/complexobject.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ extern double pow PROTO((double, double));
5555

5656
/* elementary operations on complex numbers */
5757

58-
int c_error;
58+
static int c_error;
5959
static complex c_1 = {1., 0.};
6060

6161
complex c_sum(a,b)
@@ -136,7 +136,7 @@ complex c_pow(a,b)
136136
return r;
137137
}
138138

139-
complex c_powu(x, n)
139+
static complex c_powu(x, n)
140140
complex x;
141141
long n;
142142
{
@@ -152,7 +152,7 @@ complex c_powu(x, n)
152152
return r;
153153
}
154154

155-
complex c_powi(x, n)
155+
static complex c_powi(x, n)
156156
complex x;
157157
long n;
158158
{
@@ -228,7 +228,7 @@ complex_dealloc(op)
228228
}
229229

230230

231-
void
231+
static void
232232
complex_buf_repr(buf, v)
233233
char *buf;
234234
complexobject *v;

Objects/floatobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ float_divmod(v, w)
316316
return mkvalue("(dd)", div, mod);
317317
}
318318

319-
double powu(x, n)
319+
static double powu(x, n)
320320
double x;
321321
long n;
322322
{
@@ -332,7 +332,7 @@ double powu(x, n)
332332
return r;
333333
}
334334

335-
double powi(x, n)
335+
static double powi(x, n)
336336
double x;
337337
long n;
338338
{

0 commit comments

Comments
 (0)