Anonymous avatar Anonymous committed 448435b

Made some more things static, and other cleanup for new naming scheme

Comments (0)

Files changed (5)

Modules/_tkinter.c

     {
       PyObject *v;
 
-      v = strobject (value);
+      v = PyObject_Str (value);
       PyList_Append (tmp, v);
       Py_DECREF (v);
       return PyString_AsString (v);

Modules/arraymodule.c

 #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)

Modules/audioop.c

 #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.
 #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;
     {
     return newintobject(val);
 }
 
-double _sum2(a, b, len)
+static double _sum2(a, b, len)
     short *a;
     short *b;
     int len;

Modules/newmodule.c

 
 #include "allobjects.h"
 #include "compile.h"
-#include "modsupport.h"
 
 static char new_im_doc[] =
 "Create a instance method object from (FUNCTION, INSTANCE, CLASS).";

Modules/parsermodule.c

 #include "graminit.h"
 #include "errcode.h"
 
-object *
+static object *
 node2tuple(n)
 	node *n;
 {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.