Eric Sunshine patch - Mods to work on NextStep
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
25f7d19348
commit
11561b2499
20 changed files with 70 additions and 88 deletions
|
|
@ -1030,7 +1030,9 @@ int DohStrncmp(const DOHString_or_char *s1, const DOHString_or_char *s2, int n)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *DohStrstr(const DOHString_or_char *s1, const DOHString_or_char *s2) {
|
char *DohStrstr(const DOHString_or_char *s1, const DOHString_or_char *s2) {
|
||||||
return strstr(Char(s1),Char(s2));
|
char* p1 = Char(s1);
|
||||||
|
char* p2 = Char(s2);
|
||||||
|
return p2 == 0 || *p2 == '\0' ? p1 : strstr(p1,p2);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *DohStrchr(const DOHString_or_char *s1, int ch) {
|
char *DohStrchr(const DOHString_or_char *s1, int ch) {
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,6 @@
|
||||||
|
|
||||||
char cvsroot_browser_cxx[] = "$Header$";
|
char cvsroot_browser_cxx[] = "$Header$";
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifdef SWIG_SWILL
|
#ifdef SWIG_SWILL
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,6 @@ char cvsroot_chicken_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
static const char *chicken_usage = (char*)"\
|
static const char *chicken_usage = (char*)"\
|
||||||
|
|
@ -134,10 +130,12 @@ protected:
|
||||||
* swig_chicken() - Instantiate module
|
* swig_chicken() - Instantiate module
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_chicken() {
|
||||||
swig_chicken(void) {
|
|
||||||
return new CHICKEN();
|
return new CHICKEN();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_chicken(void) {
|
||||||
|
return new_swig_chicken();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
CHICKEN::main(int argc, char *argv[])
|
CHICKEN::main(int argc, char *argv[])
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,6 @@ char cvsroot_csharp_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include <limits.h> // for INT_MAX
|
#include <limits.h> // for INT_MAX
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
class CSHARP : public Language {
|
class CSHARP : public Language {
|
||||||
|
|
@ -2021,10 +2018,12 @@ class CSHARP : public Language {
|
||||||
* swig_csharp() - Instantiate module
|
* swig_csharp() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_csharp() {
|
||||||
swig_csharp(void) {
|
|
||||||
return new CSHARP();
|
return new CSHARP();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_csharp(void) {
|
||||||
|
return new_swig_csharp();
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Static member variables
|
* Static member variables
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,6 @@ char cvsroot_guile_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
// Note string broken in half for compilers that can't handle long strings
|
// Note string broken in half for compilers that can't handle long strings
|
||||||
|
|
@ -1766,7 +1763,9 @@ public:
|
||||||
* swig_guile() - Instantiate module
|
* swig_guile() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_guile() {
|
||||||
swig_guile(void) {
|
|
||||||
return new GUILE();
|
return new GUILE();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_guile(void) {
|
||||||
|
return new_swig_guile();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,6 @@ char cvsroot_java_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include <limits.h> // for INT_MAX
|
#include <limits.h> // for INT_MAX
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
/* Hash type used for JNI upcall data */
|
/* Hash type used for JNI upcall data */
|
||||||
|
|
@ -3281,10 +3278,12 @@ class JAVA : public Language {
|
||||||
* swig_java() - Instantiate module
|
* swig_java() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_java() {
|
||||||
swig_java(void) {
|
|
||||||
return new JAVA();
|
return new JAVA();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_java(void) {
|
||||||
|
return new_swig_java();
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Static member variables
|
* Static member variables
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,6 @@ char cvsroot_main_cxx[] = "$Header$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "swigwarn.h"
|
#include "swigwarn.h"
|
||||||
#include "cparse.h"
|
#include "cparse.h"
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,6 @@ char cvsroot_mzscheme_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
static const char *usage = (char*)"\
|
static const char *usage = (char*)"\
|
||||||
|
|
@ -690,9 +686,11 @@ public:
|
||||||
* swig_mzscheme() - Instantiate module
|
* swig_mzscheme() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_mzscheme() {
|
||||||
swig_mzscheme(void) {
|
|
||||||
return new MZSCHEME();
|
return new MZSCHEME();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_mzscheme(void) {
|
||||||
|
return new_swig_mzscheme();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,6 @@ char cvsroot_ocaml_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
static const char *usage = (char*)
|
static const char *usage = (char*)
|
||||||
|
|
@ -1898,8 +1894,10 @@ public:
|
||||||
* swig_ocaml() - Instantiate module
|
* swig_ocaml() - Instantiate module
|
||||||
* ------------------------------------------------------------------------- */
|
* ------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_ocaml() {
|
||||||
swig_ocaml(void) {
|
|
||||||
return new OCAML();
|
return new OCAML();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_ocaml(void) {
|
||||||
|
return new_swig_ocaml();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,6 @@ char cvsroot_perl5_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static const char *usage = (char*)"\
|
static const char *usage = (char*)"\
|
||||||
Perl5 Options (available with -perl5)\n\
|
Perl5 Options (available with -perl5)\n\
|
||||||
-ldflags - Print runtime libraries to link with\n\
|
-ldflags - Print runtime libraries to link with\n\
|
||||||
|
|
@ -1436,7 +1432,9 @@ public:
|
||||||
* swig_perl5() - Instantiate module
|
* swig_perl5() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_perl5() {
|
||||||
swig_perl5(void) {
|
|
||||||
return new PERL5();
|
return new PERL5();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_perl5(void) {
|
||||||
|
return new_swig_perl5();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,6 @@ char cvsroot_php4_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -894,7 +890,7 @@ public:
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void create_command(char *cname, char *iname) {
|
void create_command(char *cname, char *iname) {
|
||||||
// char *lower_cname = strdup(cname);
|
// char *lower_cname = Swig_copy_string(cname);
|
||||||
// char *c;
|
// char *c;
|
||||||
|
|
||||||
// for(c = lower_cname; *c != '\0'; c++) {
|
// for(c = lower_cname; *c != '\0'; c++) {
|
||||||
|
|
@ -2115,8 +2111,7 @@ void typetrace(SwigType *ty, String *mangled, String *clientdata) {
|
||||||
if (r_prevtracefunc) (*r_prevtracefunc)(ty, mangled, (String *) clientdata);
|
if (r_prevtracefunc) (*r_prevtracefunc)(ty, mangled, (String *) clientdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_php() {
|
||||||
swig_php(void) {
|
|
||||||
maininstance=new PHP4();
|
maininstance=new PHP4();
|
||||||
if (! r_prevtracefunc) {
|
if (! r_prevtracefunc) {
|
||||||
r_prevtracefunc=SwigType_remember_trace(typetrace);
|
r_prevtracefunc=SwigType_remember_trace(typetrace);
|
||||||
|
|
@ -2126,4 +2121,6 @@ swig_php(void) {
|
||||||
}
|
}
|
||||||
return maininstance;
|
return maininstance;
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_php(void) {
|
||||||
|
return new_swig_php();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,6 @@
|
||||||
char cvsroot_pike_cxx[] = "$Header$";
|
char cvsroot_pike_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h> // for isalnum()
|
#include <ctype.h> // for isalnum()
|
||||||
|
|
||||||
|
|
@ -880,7 +877,9 @@ public:
|
||||||
* swig_pike() - Instantiate module
|
* swig_pike() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_pike() {
|
||||||
swig_pike(void) {
|
|
||||||
return new PIKE();
|
return new PIKE();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_pike(void) {
|
||||||
|
return new_swig_pike();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,6 @@ char cvsroot_python_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#define PYSHADOW_MEMBER 0x2
|
#define PYSHADOW_MEMBER 0x2
|
||||||
|
|
@ -2187,7 +2183,9 @@ public:
|
||||||
* swig_python() - Instantiate module
|
* swig_python() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_python() {
|
||||||
swig_python(void) {
|
|
||||||
return new PYTHON();
|
return new PYTHON();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_python(void) {
|
||||||
|
return new_swig_python();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,6 @@ char cvsroot_ruby_cxx[] = "$Header$";
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
#define SWIG_PROTECTED_TARGET_METHODS 1
|
#define SWIG_PROTECTED_TARGET_METHODS 1
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h> /* for INT_MAX */
|
#include <limits.h> /* for INT_MAX */
|
||||||
|
|
@ -2357,10 +2353,12 @@ public:
|
||||||
* swig_ruby() - Instantiate module
|
* swig_ruby() - Instantiate module
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_ruby() {
|
||||||
swig_ruby(void) {
|
|
||||||
return new RUBY();
|
return new RUBY();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_ruby(void) {
|
||||||
|
return new_swig_ruby();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,9 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_sexp() {
|
||||||
swig_sexp( void ) {
|
|
||||||
return new Sexp();
|
return new Sexp();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_sexp( void ) {
|
||||||
|
return new_swig_sexp();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,6 @@
|
||||||
|
|
||||||
char cvsroot_swigmain_cxx[] = "$Header$";
|
char cvsroot_swigmain_cxx[] = "$Header$";
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
/* Module factories. These functions are used to instantiate
|
/* Module factories. These functions are used to instantiate
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,6 @@ char cvsroot_tcl8_cxx[] = "$Header$";
|
||||||
|
|
||||||
#include "swigmod.h"
|
#include "swigmod.h"
|
||||||
|
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static const char *usage = (char*)"\
|
static const char *usage = (char*)"\
|
||||||
Tcl 8 Options (available with -tcl)\n\
|
Tcl 8 Options (available with -tcl)\n\
|
||||||
-itcl - Enable ITcl support\n\
|
-itcl - Enable ITcl support\n\
|
||||||
|
|
@ -1220,10 +1216,12 @@ public:
|
||||||
* swig_tcl() - Instantiate module
|
* swig_tcl() - Instantiate module
|
||||||
* ---------------------------------------------------------------------- */
|
* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_tcl() {
|
||||||
swig_tcl(void) {
|
|
||||||
return new TCL8();
|
return new TCL8();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_tcl(void) {
|
||||||
|
return new_swig_tcl();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -332,7 +332,9 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
extern "C" Language *
|
static Language * new_swig_xml() {
|
||||||
swig_xml( void ) {
|
|
||||||
return new XML();
|
return new XML();
|
||||||
}
|
}
|
||||||
|
extern "C" Language * swig_xml( void ) {
|
||||||
|
return new_swig_xml();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,9 +12,6 @@
|
||||||
char cvsroot_misc_c[] = "$Header$";
|
char cvsroot_misc_c[] = "$Header$";
|
||||||
|
|
||||||
#include "swig.h"
|
#include "swig.h"
|
||||||
#ifndef MACSWIG
|
|
||||||
#include "swigconfig.h"
|
|
||||||
#endif
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,16 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MACSWIG
|
||||||
|
#include "swigconfig.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__cplusplus) && !defined(HAVE_BOOL)
|
||||||
|
typedef int bool;
|
||||||
|
#define true ((bool)1)
|
||||||
|
#define false ((bool)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "doh.h"
|
#include "doh.h"
|
||||||
|
|
||||||
/* Status codes */
|
/* Status codes */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue