File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ) );
6262static 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
6666static object *
6767c_getitem (ap , i )
Original file line number Diff line number Diff 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
9999st_linear_to_ulaw ( sample )
100100int 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 ;
Original file line number Diff line number Diff 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
3130static char new_im_doc [] =
3231"Create a instance method object from (FUNCTION, INSTANCE, CLASS)." ;
Original file line number Diff line number Diff 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 *
3535node2tuple (n )
3636 node * n ;
3737{
You can’t perform that action at this time.
0 commit comments