add missing language specific preprocessor define where missing for some languages

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-12-29 23:56:03 +00:00
commit d2f69e6a34
6 changed files with 8 additions and 6 deletions

View file

@ -1520,6 +1520,7 @@ extern "C" Language *swig_allegrocl(void) {
void ALLEGROCL::main(int argc, char *argv[]) { void ALLEGROCL::main(int argc, char *argv[]) {
int i; int i;
Preprocessor_define("SWIGALLEGROCL 1", 0);
SWIG_library_directory("allegrocl"); SWIG_library_directory("allegrocl");
SWIG_config_file("allegrocl.swg"); SWIG_config_file("allegrocl.swg");
@ -1576,8 +1577,6 @@ void ALLEGROCL::main(int argc, char *argv[]) {
} }
Preprocessor_define("SWIGALLEGROCL 1", 0);
allow_overloading(); allow_overloading();
} }

View file

@ -67,6 +67,7 @@ private:
void CFFI::main(int argc, char *argv[]) { void CFFI::main(int argc, char *argv[]) {
int i; int i;
Preprocessor_define("SWIGCFFI 1", 0);
SWIG_library_directory("cffi"); SWIG_library_directory("cffi");
SWIG_config_file("cffi.swg"); SWIG_config_file("cffi.swg");
generate_typedef_flag = 0; generate_typedef_flag = 0;

View file

@ -36,6 +36,7 @@ private:
void CLISP::main(int argc, char *argv[]) { void CLISP::main(int argc, char *argv[]) {
int i; int i;
Preprocessor_define("SWIGCLISP 1", 0);
SWIG_library_directory("clisp"); SWIG_library_directory("clisp");
SWIG_config_file("clisp.swg"); SWIG_config_file("clisp.swg");
generate_typedef_flag = 0; generate_typedef_flag = 0;

View file

@ -2573,9 +2573,9 @@ String * R::runtimeCode() {
void R::main(int argc, char *argv[]) { void R::main(int argc, char *argv[]) {
bool cppcast = true; bool cppcast = true;
init(); init();
Preprocessor_define("SWIGR 1", 0);
SWIG_library_directory("r"); SWIG_library_directory("r");
SWIG_config_file("r.swg"); SWIG_config_file("r.swg");
Preprocessor_define("SWIGR 1", 0);
debugMode = false; debugMode = false;
copyStruct = true; copyStruct = true;
memoryProfile = false; memoryProfile = false;

View file

@ -29,6 +29,9 @@ public:
} }
virtual void main(int argc, char *argv[]) { virtual void main(int argc, char *argv[]) {
// Add a symbol to the parser for conditional compilation
Preprocessor_define("SWIGSEXP 1", 0);
SWIG_typemap_lang("sexp"); SWIG_typemap_lang("sexp");
for (int iX = 0; iX < argc; iX++) { for (int iX = 0; iX < argc; iX++) {
if (strcmp(argv[iX], "-typemaplang") == 0) { if (strcmp(argv[iX], "-typemaplang") == 0) {
@ -42,9 +45,6 @@ public:
fputs(usage, stdout); fputs(usage, stdout);
} }
} }
// Add a symbol to the parser for conditional compilation
Preprocessor_define("SWIGSEXP 1", 0);
} }
DOHHash *print_circle_hash; DOHHash *print_circle_hash;

View file

@ -180,6 +180,7 @@ static String *get_lisp_type(SwigType *ty, const String_or_char *name) {
void UFFI::main(int argc, char *argv[]) { void UFFI::main(int argc, char *argv[]) {
int i; int i;
Preprocessor_define("SWIGUFFI 1", 0);
SWIG_library_directory("uffi"); SWIG_library_directory("uffi");
SWIG_config_file("uffi.swg"); SWIG_config_file("uffi.swg");