Moved non static function declarations from source files into header files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
379bff84e4
commit
c00aaf0f5b
14 changed files with 57 additions and 108 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
char cvsroot_parser_y[] = "$Header$";
|
||||
|
||||
#include "swig.h"
|
||||
#include "cparse.h"
|
||||
#include "preprocessor.h"
|
||||
#include <ctype.h>
|
||||
|
|
@ -31,28 +32,10 @@ char cvsroot_parser_y[] = "$Header$";
|
|||
* Externals
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
extern int yylex();
|
||||
extern void yyerror (const char *e);
|
||||
|
||||
/* scanner.cxx */
|
||||
|
||||
extern int cparse_line;
|
||||
extern int cparse_start_line;
|
||||
extern void skip_balanced(int startchar, int endchar);
|
||||
extern void skip_decl(void);
|
||||
extern void scanner_check_typedef(void);
|
||||
extern void scanner_ignore_typedef(void);
|
||||
extern void scanner_last_id(int);
|
||||
extern void scanner_clear_rename(void);
|
||||
extern void start_inline(char *, int);
|
||||
extern String *scanner_ccode;
|
||||
extern int Swig_cparse_template_expand(Node *n, String *rname, ParmList *tparms);
|
||||
extern Node *Swig_cparse_template_locate(String *name, ParmList *tparms);
|
||||
int yyparse();
|
||||
|
||||
/* NEW Variables */
|
||||
|
||||
extern void generate_all(Node *);
|
||||
|
||||
static Node *top = 0; /* Top of the generated parse tree */
|
||||
static int unnamed = 0; /* Unnamed datatype counter */
|
||||
static Hash *extendhash = 0; /* Hash table of added methods */
|
||||
|
|
@ -75,7 +58,7 @@ static int dirprot_mode = 0;
|
|||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
/* Called by the parser (yyparse) when an error is found.*/
|
||||
void yyerror (const char *e) {
|
||||
static void yyerror (const char *e) {
|
||||
}
|
||||
|
||||
static Node *new_node(const String_or_char *tag) {
|
||||
|
|
@ -302,9 +285,6 @@ static String *name_warning(String *name,SwigType *decl) {
|
|||
/* Add declaration list to symbol table */
|
||||
static int add_only_one = 0;
|
||||
|
||||
extern void cparse_normalize_void(Node *);
|
||||
extern int need_protected(Node *n, int dirprot_mode);
|
||||
|
||||
static void add_symbols(Node *n) {
|
||||
String *decl;
|
||||
String *wrn = 0;
|
||||
|
|
@ -791,8 +771,6 @@ static Node *dump_nested(char *parent) {
|
|||
}
|
||||
|
||||
Node *Swig_cparse(File *f) {
|
||||
extern void scanner_file(File *);
|
||||
extern int yyparse();
|
||||
scanner_file(f);
|
||||
top = 0;
|
||||
yyparse();
|
||||
|
|
@ -4778,9 +4756,6 @@ empty : ;
|
|||
|
||||
SwigType *Swig_cparse_type(String *s) {
|
||||
String *ns;
|
||||
extern void scanner_file(File *);
|
||||
extern int yyparse();
|
||||
extern void scanner_next_token(int);
|
||||
ns = NewStringf("%s;",s);
|
||||
Seek(ns,0,SEEK_SET);
|
||||
scanner_file(ns);
|
||||
|
|
@ -4794,9 +4769,6 @@ SwigType *Swig_cparse_type(String *s) {
|
|||
|
||||
Parm *Swig_cparse_parm(String *s) {
|
||||
String *ns;
|
||||
extern void scanner_file(File *);
|
||||
extern int yyparse();
|
||||
extern void scanner_next_token(int);
|
||||
ns = NewStringf("%s;",s);
|
||||
Seek(ns,0,SEEK_SET);
|
||||
scanner_file(ns);
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@
|
|||
char cvsroot_util_c[] = "$Header$";
|
||||
|
||||
#include "swig.h"
|
||||
|
||||
extern SwigType *Swig_cparse_type(String *);
|
||||
#include "cparse.h"
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Swig_cparse_replace_descriptor()
|
||||
|
|
@ -94,7 +93,6 @@ void cparse_normalize_void(Node *n) {
|
|||
* Detects when we need to fully register the protected member.
|
||||
*
|
||||
* ----------------------------------------------------------------------------- */
|
||||
extern int Swig_need_protected();
|
||||
|
||||
int need_protected(Node* n, int dirprot_mode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue