Eric Sunshine patch - Mods to work on NextStep

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-01-22 22:42:18 +00:00
commit 238e948bbe
20 changed files with 70 additions and 88 deletions

View file

@ -17,10 +17,6 @@ char cvsroot_php4_cxx[] = "$Header$";
#include "swigmod.h"
#ifndef MACSWIG
#include "swigconfig.h"
#endif
#include <ctype.h>
@ -894,7 +890,7 @@ public:
*/
void create_command(char *cname, char *iname) {
// char *lower_cname = strdup(cname);
// char *lower_cname = Swig_copy_string(cname);
// char *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);
}
extern "C" Language *
swig_php(void) {
static Language * new_swig_php() {
maininstance=new PHP4();
if (! r_prevtracefunc) {
r_prevtracefunc=SwigType_remember_trace(typetrace);
@ -2126,4 +2121,6 @@ swig_php(void) {
}
return maininstance;
}
extern "C" Language * swig_php(void) {
return new_swig_php();
}