Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd938fc

Browse files
committed
Made some more things static, and other cleanup for new naming scheme
1 parent 78c0535 commit cd938fc

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

Modules/_tkinter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ AsString (value, tmp)
7373
{
7474
PyObject *v;
7575

76-
v = strobject (value);
76+
v = PyObject_Str (value);
7777
PyList_Append (tmp, v);
7878
Py_DECREF (v);
7979
return PyString_AsString (v);

Modules/arraymodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ staticforward typeobject Arraytype;
5656
#define is_arrayobject(op) ((op)->ob_type == &Arraytype)
5757

5858
/* Forward */
59-
extern object *newarrayobject PROTO((int, struct arraydescr *));
60-
extern int getarraysize PROTO((object *));
61-
extern object *getarrayitem PROTO((object *, int));
59+
static object *newarrayobject PROTO((int, struct arraydescr *));
60+
static int getarraysize PROTO((object *));
61+
static object *getarrayitem PROTO((object *, int));
6262
static int setarrayitem PROTO((object *, int, object *));
63-
extern int insarrayitem PROTO((object *, int, object *));
64-
extern int addarrayitem PROTO((object *, object *));
63+
static int insarrayitem PROTO((object *, int, object *));
64+
static int addarrayitem PROTO((object *, object *));
6565

6666
static object *
6767
c_getitem(ap, i)

Modules/audioop.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4444
#define MAXLIN 32767
4545
#define LINCLIP(x) do { if ( x < MINLIN ) x = MINLIN ; else if ( x > MAXLIN ) x = MAXLIN; } while ( 0 )
4646

47-
unsigned char st_linear_to_ulaw( /* int sample */ );
47+
static unsigned char st_linear_to_ulaw( /* int sample */ );
4848

4949
/*
5050
** This macro converts from ulaw to 16 bit linear, faster.
@@ -95,7 +95,7 @@ static int ulaw_table[256] = {
9595
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
9696
#define CLIP 32635
9797

98-
unsigned char
98+
static unsigned char
9999
st_linear_to_ulaw( sample )
100100
int sample;
101101
{
@@ -297,7 +297,7 @@ audioop_rms(self, args)
297297
return newintobject(val);
298298
}
299299

300-
double _sum2(a, b, len)
300+
static double _sum2(a, b, len)
301301
short *a;
302302
short *b;
303303
int len;

Modules/newmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626

2727
#include "allobjects.h"
2828
#include "compile.h"
29-
#include "modsupport.h"
3029

3130
static char new_im_doc[] =
3231
"Create a instance method object from (FUNCTION, INSTANCE, CLASS).";

Modules/parsermodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3131
#include "graminit.h"
3232
#include "errcode.h"
3333

34-
object *
34+
static object *
3535
node2tuple(n)
3636
node *n;
3737
{

0 commit comments

Comments
 (0)