]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Made some more things static, and other cleanup for new naming scheme
authorGuido van Rossum <guido@python.org>
Tue, 17 Jan 1995 16:13:48 +0000 (16:13 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 17 Jan 1995 16:13:48 +0000 (16:13 +0000)
Modules/_tkinter.c
Modules/arraymodule.c
Modules/audioop.c
Modules/newmodule.c
Modules/parsermodule.c

index 9675da5d053473b739cd7e675d1b072b3651b2ef..618587ace24758c7bf330148dbebe20839c9f049 100644 (file)
@@ -73,7 +73,7 @@ AsString (value, tmp)
     {
       PyObject *v;
 
-      v = strobject (value);
+      v = PyObject_Str (value);
       PyList_Append (tmp, v);
       Py_DECREF (v);
       return PyString_AsString (v);
index 735c615016d1657985c795226f14eef26a3023f1..68070ae826cd94eaf868ed860e3c2d7fbc91ebed 100644 (file)
@@ -56,12 +56,12 @@ staticforward typeobject Arraytype;
 #define is_arrayobject(op) ((op)->ob_type == &Arraytype)
 
 /* Forward */
-extern object *newarrayobject PROTO((int, struct arraydescr *));
-extern int getarraysize PROTO((object *));
-extern object *getarrayitem PROTO((object *, int));
+static object *newarrayobject PROTO((int, struct arraydescr *));
+static int getarraysize PROTO((object *));
+static object *getarrayitem PROTO((object *, int));
 static int setarrayitem PROTO((object *, int, object *));
-extern int insarrayitem PROTO((object *, int, object *));
-extern int addarrayitem PROTO((object *, object *));
+static int insarrayitem PROTO((object *, int, object *));
+static int addarrayitem PROTO((object *, object *));
 
 static object *
 c_getitem(ap, i)
index 640e8162dcefd739fbc720ba42f0a280e67eff7b..f866e98941c1ebef24c7be496e54c4f1b4df6409 100644 (file)
@@ -44,7 +44,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #define MAXLIN 32767
 #define LINCLIP(x) do { if ( x < MINLIN ) x = MINLIN ; else if ( x > MAXLIN ) x = MAXLIN; } while ( 0 )
 
-unsigned char st_linear_to_ulaw( /* int sample */ );
+static unsigned char st_linear_to_ulaw( /* int sample */ );
 
 /*
 ** This macro converts from ulaw to 16 bit linear, faster.
@@ -95,7 +95,7 @@ static int ulaw_table[256] = {
 #define BIAS 0x84   /* define the add-in bias for 16 bit samples */
 #define CLIP 32635
 
-unsigned char
+static unsigned char
 st_linear_to_ulaw( sample )
 int sample;
     {
@@ -297,7 +297,7 @@ audioop_rms(self, args)
     return newintobject(val);
 }
 
-double _sum2(a, b, len)
+static double _sum2(a, b, len)
     short *a;
     short *b;
     int len;
index 4c8b16d19d3f3138a9658589cd5b29ff181e94e0..5a6e32c8037267de73cfc52f47b31087b42b8b6f 100644 (file)
@@ -26,7 +26,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 #include "allobjects.h"
 #include "compile.h"
-#include "modsupport.h"
 
 static char new_im_doc[] =
 "Create a instance method object from (FUNCTION, INSTANCE, CLASS).";
index 0d95bcc98e84944b0d6e2957ed3ec44cf53d305c..1d2fe13a3b167ad300bf0e91e01e1b3686003706 100644 (file)
@@ -31,7 +31,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "graminit.h"
 #include "errcode.h"
 
-object *
+static object *
 node2tuple(n)
        node *n;
 {