diff options
author | Haoyu Bai <divinekid@gmail.com> | 2009-01-24 18:16:31 +0000 |
---|---|---|
committer | Haoyu Bai <divinekid@gmail.com> | 2009-01-24 18:16:31 +0000 |
commit | 0bccd314d9f2ec06e9ab1222636aae7b8fe3220d (patch) | |
tree | 88ad38d05973aec0404c13299bbd4d0f1ca71d4d | |
parent | 7eb91a32273fafbbd97631cf79b698e65f86e261 (diff) | |
download | swig-0bccd314d9f2ec06e9ab1222636aae7b8fe3220d.tar.gz |
Removed all extern "C" since all code is compiled under C++ compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/swig-2.0@11087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/CParse/cparse.h | 4 | ||||
-rw-r--r-- | Source/Modules/allocate.cxx | 4 | ||||
-rw-r--r-- | Source/Modules/chicken.cxx | 4 | ||||
-rw-r--r-- | Source/Modules/guile.cxx | 4 | ||||
-rw-r--r-- | Source/Modules/lang.cxx | 4 | ||||
-rw-r--r-- | Source/Modules/main.cxx | 4 | ||||
-rw-r--r-- | Source/Modules/swigmod.h | 4 | ||||
-rw-r--r-- | Source/Preprocessor/preprocessor.h | 4 | ||||
-rw-r--r-- | Source/Swig/swig.h | 4 |
9 files changed, 18 insertions, 18 deletions
diff --git a/Source/CParse/cparse.h b/Source/CParse/cparse.h index 9be41c60e..664449fef 100644 --- a/Source/CParse/cparse.h +++ b/Source/CParse/cparse.h @@ -15,7 +15,7 @@ #include "swig.h" #include "swigwarn.h" -#ifdef __cplusplus +#if 0 extern "C" { #endif @@ -61,7 +61,7 @@ extern "C" { extern Node *Swig_cparse_template_locate(String *name, ParmList *tparms, Symtab *tscope); extern void Swig_cparse_debug_templates(int); -#ifdef __cplusplus +#if 0 } #endif #define SWIG_WARN_NODE_BEGIN(Node) \ diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index e8397e6a6..05d47877b 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -26,7 +26,7 @@ void Wrapper_virtual_elimination_mode_set(int flag) { /* Helper function to assist with abstract class checking. This is a major hack. Sorry. */ -extern "C" { +/* extern "C" { */ static String *search_decl = 0; /* Declarator being searched */ static int check_implemented(Node *n) { String *decl; @@ -53,7 +53,7 @@ extern "C" { } return 0; } -} +/*}*/ class Allocate:public Dispatcher { Node *inclass; diff --git a/Source/Modules/chicken.cxx b/Source/Modules/chicken.cxx index d32fabb9e..84060e844 100644 --- a/Source/Modules/chicken.cxx +++ b/Source/Modules/chicken.cxx @@ -1276,7 +1276,7 @@ String *CHICKEN::buildClosFunctionCall(List *types, const_String_or_char_ptr clo return func_call; } -extern "C" { +/*extern "C" {*/ /* compares based on non-primitive names */ static int compareTypeListsHelper(const DOH *a, const DOH *b, int opt_equal) { @@ -1307,7 +1307,7 @@ extern "C" { static int compareTypeLists(const DOH *a, const DOH *b) { return compareTypeListsHelper(a, b, 0); } -} +/*}*/ void CHICKEN::dispatchFunction(Node *n) { /* Last node in overloaded chain */ diff --git a/Source/Modules/guile.cxx b/Source/Modules/guile.cxx index e3bf2f017..51d4accdc 100644 --- a/Source/Modules/guile.cxx +++ b/Source/Modules/guile.cxx @@ -107,11 +107,11 @@ static int primRenamer = 0; // if (use-modules ((...) :renamer ...) is exported static int exportprimitive = 0; // -exportprimitive argument static String *memberfunction_name = 0; -extern "C" { +/*extern "C" {*/ static int has_classname(Node *class_node) { return Getattr(class_node, "guile:goopsclassname") != NULL; } -} +/*}*/ class GUILE:public Language { public: diff --git a/Source/Modules/lang.cxx b/Source/Modules/lang.cxx index 39ede8243..c868a094e 100644 --- a/Source/Modules/lang.cxx +++ b/Source/Modules/lang.cxx @@ -36,7 +36,7 @@ void Wrapper_naturalvar_mode_set(int flag) { naturalvar_mode = flag; } -extern "C" { +/*extern "C" {*/ int Swig_director_mode() { return director_mode; } @@ -46,7 +46,7 @@ extern "C" { int Swig_all_protected_mode() { return all_protected_mode; } -} +/*}*/ /* Some status variables used during parsing */ static int InClass = 0; /* Parsing C++ or not */ diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx index 00596670d..27625bd08 100644 --- a/Source/Modules/main.cxx +++ b/Source/Modules/main.cxx @@ -45,9 +45,9 @@ int SwigRuntime = 0; // 0 = no option, 1 = -runtime, 2 = -noruntime */ #define EXTRA_WARNINGS "202,309,403,512,321,322" -extern "C" { +/*extern "C" {*/ extern String *ModuleName; -} +/*}*/ /* usage string split into multiple parts otherwise string is too big for some compilers */ /* naming conventions for commandline options - no underscores, no capital letters, join words together diff --git a/Source/Modules/swigmod.h b/Source/Modules/swigmod.h index 8dec8d0af..aef8f427c 100644 --- a/Source/Modules/swigmod.h +++ b/Source/Modules/swigmod.h @@ -344,10 +344,10 @@ String *Swig_director_declaration(Node *n); void Swig_director_emit_dynamic_cast(Node *n, Wrapper *f); /* directors.cxx end */ -extern "C" { +/* extern "C" { */ void SWIG_typemap_lang(const char *); typedef Language *(*ModuleFactory) (void); -} void Swig_register_module(const char *name, ModuleFactory fac); +/*}*/ void Swig_register_module(const char *name, ModuleFactory fac); ModuleFactory Swig_find_module(const char *name); /* Utilities */ diff --git a/Source/Preprocessor/preprocessor.h b/Source/Preprocessor/preprocessor.h index 3579eede2..3aa045619 100644 --- a/Source/Preprocessor/preprocessor.h +++ b/Source/Preprocessor/preprocessor.h @@ -14,7 +14,7 @@ #include "swigwarn.h" -#ifdef __cplusplus +#if 0 extern "C" { #endif extern int Preprocessor_expr(String *s, int *error); @@ -32,7 +32,7 @@ extern "C" { extern void Preprocessor_expr_init(void); extern void Preprocessor_expr_delete(void); -#ifdef __cplusplus +#if 0 } #endif #endif diff --git a/Source/Swig/swig.h b/Source/Swig/swig.h index 266864f49..10c33a319 100644 --- a/Source/Swig/swig.h +++ b/Source/Swig/swig.h @@ -21,7 +21,7 @@ #include <stdlib.h> #include <assert.h> -#ifdef __cplusplus +#if 0 extern "C" { #endif @@ -399,7 +399,7 @@ extern int ParmList_is_compactdefargs(ParmList *p); extern void SwigType_template_init(void); -#ifdef __cplusplus +#if 0 } #endif #endif |