Revert the "automatic -noproxy for C code" change (for now at least) - the
testsuite contains examples with proxy classes for C code, so it's not as obviously correct a change as I had thought. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9307 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fa0a9c74c1
commit
f4a08d4d44
2 changed files with 3 additions and 10 deletions
|
|
@ -124,7 +124,7 @@ static Hash *shadow_set_vars;
|
|||
static int native_constructor=0;
|
||||
static Hash *zend_types = 0;
|
||||
|
||||
static int shadow = 0; // Default set in PHP::main : 1 for C++; 0 for C.
|
||||
static int shadow = 1;
|
||||
|
||||
static bool class_has_ctor = false;
|
||||
static String * wrapping_member_constant = NULL;
|
||||
|
|
@ -240,14 +240,12 @@ public:
|
|||
/* ------------------------------------------------------------
|
||||
* main()
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
|
||||
virtual void main(int argc, char *argv[]) {
|
||||
int i;
|
||||
SWIG_library_directory("php4");
|
||||
SWIG_config_cppext("cpp");
|
||||
// Default to generating shadow classes for C++.
|
||||
shadow = CPlusPlus;
|
||||
|
||||
|
||||
for(i = 1; i < argc; i++) {
|
||||
if (argv[i]) {
|
||||
if(strcmp(argv[i], "-phpfull") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue