Removed ability to share type information by C linking

All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2004-10-16 18:23:59 +00:00
commit 75e462baa8
50 changed files with 204 additions and 1162 deletions

View file

@ -244,10 +244,6 @@ class CSHARP : public Language {
Swig_banner(f_runtime); // Print the SWIG banner message
if (NoInclude) {
Printf(f_runtime,"#define SWIG_NOINCLUDE\n");
}
String *wrapper_name = NewString("");
Printf(wrapper_name, "CSharp_%%f", imclass_name);

View file

@ -359,10 +359,6 @@ public:
/* Write out directives and declarations */
if (NoInclude) {
Printf(f_runtime, "#define SWIG_NOINCLUDE\n");
}
module = Swig_copy_string(Char(Getattr(n,"name")));
if (CPlusPlus) {

View file

@ -350,10 +350,6 @@ class JAVA : public Language {
Swig_banner(f_runtime); // Print the SWIG banner message
if (NoInclude) {
Printf(f_runtime,"#define SWIG_NOINCLUDE\n");
}
if (directorsEnabled()) {
Printf(f_runtime,"#define SWIG_DIRECTORS\n");

View file

@ -34,7 +34,6 @@ char cvsroot_main_cxx[] = "$Header$";
int ForceExtern = 0; // Force extern mode
int GenerateDefault = 1; // Generate default constructors
char *Config = 0;
int NoInclude = 0;
int Verbose = 0;
int NoExtern = 0;
int NoExcept = 0;
@ -79,10 +78,8 @@ static const char *usage2 = (const char*)"\
-nodirprot - Do not wrap director protected members\n\
-noexcept - Do not wrap exception specifiers\n\
-noextern - Do not generate extern declarations\n\
-noruntime - Do not include SWIG runtime code\n\
-o <outfile> - Set name of the output file to <outfile>\n\
-outdir <dir> - Set language specific files output directory\n\
-runtime - Make the runtime support code globally visible.\n\
-small - Compile in virtual elimination & compact mode\n\
-swiglib - Report location of SWIG library and exit\n\
-v - Run in verbose mode\n\
@ -312,16 +309,11 @@ void SWIG_getoptions(int argc, char *argv[])
Wrapper_compact_print_mode_set(1);
Wrapper_virtual_elimination_mode_set(1);
Swig_mark_arg(i);
} else if ((strcmp(argv[i],"-noruntime") == 0) || (strcmp(argv[i],"-c") == 0)) {
NoInclude=1;
Preprocessor_define((DOH *) "SWIG_NOINCLUDE 1", 0);
} else if ((strcmp(argv[i],"-noruntime") == 0) ||
(strcmp(argv[i],"-c") == 0) ||
(strcmp(argv[i], "-runtime") == 0)) {
Swig_mark_arg(i);
if (strcmp(argv[i],"-c") == 0) {
Swig_warning(WARN_DEPRECATED_OPTC, "SWIG",1, "-c command line option is deprecated. Use -noruntime instead.\n");
}
} else if ((strcmp(argv[i],"-runtime") == 0)) {
Preprocessor_define((String *) "SWIG_RUNTIME_MODE 1", 0);
Swig_mark_arg(i);
Swig_warning(WARN_DEPRECATED_OPTC, "SWIG",1, "-c, -runtime, -noruntime command line options are deprecated.\n");
} else if ((strcmp(argv[i],"-make_default") == 0) || (strcmp(argv[i],"-makedefault") == 0)) {
GenerateDefault = 1;
Swig_mark_arg(i);

View file

@ -1016,10 +1016,6 @@ MODULA3 ():
Swig_banner (f_runtime); // Print the SWIG banner message
if (NoInclude) {
Printf (f_runtime, "#define SWIG_NOINCLUDE\n");
}
String *wrapper_name = NewString ("");
Printf (wrapper_name, "Modula3_%%f", m3raw_name);

View file

@ -279,10 +279,6 @@ public:
Swig_insert_file("director.swg", f_directors_h);
}
if (NoInclude) {
Printf(f_runtime, "#define SWIG_NOINCLUDE\n");
}
/* Produce the enum_to_int and int_to_enum functions */
Printf(f_enumtypes_type,"type c_enum_type = [ \n `unknown\n" );

View file

@ -214,10 +214,6 @@ public:
Swig_banner(f_runtime);
if (NoInclude) {
Printf(f_runtime,"#define SWIG_NOINCLUDE\n");
}
module = Copy(Getattr(n,"name"));
/* If we're in blessed mode, change the package name to "packagec" */

View file

@ -135,9 +135,6 @@ public:
/* Standard stuff for the SWIG runtime section */
Swig_banner(f_runtime);
if (NoInclude) {
Printf(f_runtime, "#define SWIG_NOINCLUDE\n");
}
Printf(f_header, "#define SWIG_init pike_module_init\n");
Printf(f_header, "#define SWIG_name \"%s\"\n\n", module);

View file

@ -221,8 +221,6 @@ public:
Swig_banner(f_runtime);
Printf(f_runtime,"#define SWIGPYTHON\n");
if (NoInclude)
Printf(f_runtime,"#define SWIG_NOINCLUDE\n");
if (directorsEnabled()) {
Printf(f_runtime,"#define SWIG_DIRECTORS\n");

View file

@ -397,10 +397,6 @@ public:
Swig_banner(f_runtime);
if (NoInclude) {
Printf(f_runtime, "#define SWIG_NOINCLUDE\n");
}
if (directorsEnabled()) {
Printf(f_runtime,"#define SWIG_DIRECTORS\n");
}

View file

@ -40,7 +40,6 @@ extern int line_number;
extern int start_line;
extern int CPlusPlus; // C++ mode
extern int Extend; // Extend mode
extern int NoInclude; // NoInclude flag
extern int Verbose;
extern int IsVirtual;
extern int ImportMode;

View file

@ -158,11 +158,6 @@ public:
Swig_banner(f_runtime);
/* Include a Tcl configuration file */
if (NoInclude) {
Printf(f_runtime,"#define SWIG_NOINCLUDE\n");
}
/* Set the module name, namespace, and prefix */
module = NewStringf("%(lower)s", Getattr(n,"name"));