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:
William S Fulton 2003-12-28 21:48:39 +00:00
commit c00aaf0f5b
14 changed files with 57 additions and 108 deletions

View file

@ -56,10 +56,6 @@ public:
virtual int top(Node *n);
};
extern void Swig_contracts(Node *n);
extern void Swig_contract_mode_set(int flag);
extern int Swig_contract_mode_get();
static int Contract_Mode = 0; /* contract option */
static int InClass = 0; /* Parsing C++ or not */
static int InConstructor = 0;

View file

@ -16,8 +16,6 @@
char cvsroot_emit_cxx[] = "$Header$";
extern int Swig_contract_mode_get();
/* -----------------------------------------------------------------------------
* emit_args()
*

View file

@ -25,11 +25,7 @@ char cvsroot_main_cxx[] = "$Header$";
#endif
#include "swigwarn.h"
extern "C" {
#include "preprocessor.h"
}
#include "cparse.h"
#include <ctype.h>
// Global variables
@ -102,8 +98,7 @@ static String *outdir = 0;
// Checks the suffix of a file to see if we should emit extern declarations.
// -----------------------------------------------------------------------------
int
check_suffix(char *name) {
static int check_suffix(char *name) {
char *c;
if (!name) return 0;
c = Swig_file_suffix(name);
@ -123,8 +118,7 @@ check_suffix(char *name) {
// Install all command line options as preprocessor symbols
// -----------------------------------------------------------------------------
static void
install_opts(int argc, char *argv[]) {
static void install_opts(int argc, char *argv[]) {
int i;
int noopt = 0;
char *c;
@ -201,16 +195,6 @@ void SWIG_config_cppext(const char *ext) {
cpp_extension = (char *) ext;
}
extern "C" Node *Swig_cparse(File *);
extern "C" void Swig_cparse_cplusplus(int);
extern "C" void Swig_cparse_debug_templates(int);
extern void Wrapper_virtual_elimination_mode_set(int);
extern void Wrapper_director_protected_mode_set(int);
extern void Swig_contracts(Node *n);
extern void Swig_contract_mode_set(int flag);
extern int Swig_contract_mode_get();
int SWIG_main(int argc, char *argv[], Language *l) {
int i;
char *c;
@ -222,7 +206,6 @@ int SWIG_main(int argc, char *argv[], Language *l) {
int tm_debug = 0;
char *includefiles[256];
int includecount = 0;
extern int check_suffix(char *);
int dump_tags = 0;
int dump_tree = 0;
int browse = 0;
@ -232,13 +215,8 @@ int SWIG_main(int argc, char *argv[], Language *l) {
int depend = 0;
int memory_debug = 0;
int allkw = 0;
DOH *libfiles = 0;
DOH *cpps = 0 ;
extern void Swig_browser(Node *n, int);
extern void Swig_default_allocators(Node *n);
extern void Swig_process_types(Node *n);
/* Initialize the SWIG core */
Swig_init();

View file

@ -406,10 +406,7 @@ public:
};
extern "C"
{
Language * swig_sexp( void )
{
return new Sexp();
}
extern "C" Language *
swig_sexp( void ) {
return new Sexp();
}

View file

@ -21,11 +21,8 @@
#include <stdio.h>
#include <string.h>
extern "C" {
#include "swig.h"
Hash *Preprocessor_define(const String_or_char *str, int swigmacro);
}
#include "preprocessor.h"
#include "swigwarn.h"
#define NOT_VIRTUAL 0
@ -309,11 +306,27 @@ ModuleFactory Swig_find_module(const char *name);
/* Utilities */
extern int is_public(Node* n);
extern int is_private(Node* n);
extern int is_protected(Node* n);
extern int is_member_director(Node* parentnode, Node* member);
extern int is_member_director(Node* member);
int is_public(Node* n);
int is_private(Node* n);
int is_protected(Node* n);
int is_member_director(Node* parentnode, Node* member);
int is_member_director(Node* member);
void Wrapper_virtual_elimination_mode_set(int);
void Wrapper_director_protected_mode_set(int);
/* Contracts */
void Swig_contracts(Node *n);
void Swig_contract_mode_set(int flag);
int Swig_contract_mode_get();
/* Browser */
void Swig_browser(Node *n, int);
void Swig_default_allocators(Node *n);
void Swig_process_types(Node *n);
#endif

View file

@ -332,10 +332,7 @@ public:
};
extern "C"
{
Language * swig_xml( void )
{
return new XML();
}
extern "C" Language *
swig_xml( void ) {
return new XML();
}