Skip to content

Commit

Permalink
* ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,
Browse files Browse the repository at this point in the history
  pythonrun.c: added static forward declarations
* pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of
  static routines
  • Loading branch information
gvanrossum committed Nov 1, 1993
1 parent c7a2270 commit b73cc04
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 10 deletions.
1 change: 0 additions & 1 deletion Include/ceval.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ object *call_object PROTO((object *, object *));
object *getglobals PROTO((void));
object *getlocals PROTO((void));
object *getowner PROTO((void));
void mergelocals PROTO((void));

void printtraceback PROTO((object *));
void flushline PROTO((void));
Expand Down
1 change: 0 additions & 1 deletion Include/longobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ extern object *dnewlongobject PROTO((double));
extern long getlongvalue PROTO((object *));
extern double dgetlongvalue PROTO((object *));

object *long_format PROTO((object *, int));
object *long_scan PROTO((char *, int));

#ifdef __cplusplus
Expand Down
1 change: 0 additions & 1 deletion Include/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ extern void freetree PROTO((node *n));
#endif

extern void listtree PROTO((node *));
extern void listnode PROTO((FILE *, node *));

#ifdef __cplusplus
}
Expand Down
4 changes: 0 additions & 4 deletions Include/pythonrun.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,8 @@ int run_tty_loop PROTO((FILE *, char *));
int parse_string PROTO((char *, int, struct _node **));
int parse_file PROTO((FILE *, char *, int, struct _node **));

object *eval_node PROTO((struct _node *, char *, object *, object *));

object *run_string PROTO((char *, int, object *, object *));
object *run_file PROTO((FILE *, char *, int, object *, object *));
object *run_err_node PROTO((int, struct _node *, char *, object *, object *));
object *run_node PROTO((struct _node *, char *, object *, object *));

object *compile_string PROTO((char *, char *, int));

Expand Down
3 changes: 2 additions & 1 deletion Modules/arraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ extern 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));
extern int setarrayitem PROTO((object *, int, object *));
static int setarrayitem PROTO((object *, int, object *));
extern int insarrayitem PROTO((object *, int, object *));
extern int addarrayitem PROTO((object *, object *));

Expand Down
1 change: 1 addition & 0 deletions Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ static longobject *long_normalize PROTO((longobject *));
static longobject *mul1 PROTO((longobject *, wdigit));
static longobject *muladd1 PROTO((longobject *, wdigit, wdigit));
static longobject *divrem1 PROTO((longobject *, wdigit, digit *));
static object *long_format PROTO((object *aa, int base));

static int ticker; /* XXX Could be shared with ceval? */

Expand Down
2 changes: 1 addition & 1 deletion Objects/methodobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ typeobject Methodtype = {
meth_hash, /*tp_hash*/
};

object *listmethods PROTO((struct methodlist *)); /* Forward */
static object *listmethods PROTO((struct methodlist *)); /* Forward */

static object *
listmethods(ml)
Expand Down
1 change: 1 addition & 0 deletions Parser/listnode.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

/* Forward */
static void list1node PROTO((FILE *, node *));
static void listnode PROTO((FILE *, node *));

void
listtree(n)
Expand Down
1 change: 1 addition & 0 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ static void locals_2_fast PROTO((frameobject *, int));
static void fast_2_locals PROTO((frameobject *));
static int access_statement PROTO((object *, object *, frameobject *));
static int exec_statement PROTO((object *, object *, object *));
static void mergelocals PROTO(());


/* Pointer to current frame, used to link new frames to */
Expand Down
9 changes: 8 additions & 1 deletion Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ extern char *getpythonpath();

extern grammar gram; /* From graminit.c */

void initsigs(); /* Forward */
/* Forward */
static object *run_err_node PROTO((int err, node *n, char *filename,
object *globals, object *locals));
static object *run_node PROTO((node *n, char *filename,
object *globals, object *locals));
static object *eval_node PROTO((node *n, char *filename,
object *globals, object *locals));
void initsigs PROTO(());

int debugging; /* Needed by parser.c */
int verbose; /* Needed by import.c */
Expand Down

0 comments on commit b73cc04

Please sign in to comment.