]> git.pld-linux.org Git - packages/swig.git/blob - swig-php-freearg.patch
- up to 2.0.10
[packages/swig.git] / swig-php-freearg.patch
1 --- swig-1.3.30/Source/Modules/php.cxx.orig     2006-11-02 00:54:52.000000000 +0100
2 +++ swig-1.3.30/Source/Modules/php.cxx  2006-11-18 20:49:44.639530500 +0100
3 @@ -1172,6 +1172,8 @@
4  
5      /* Insert cleanup code */
6      for (i = 0, p = l; p; i++) {
7 +      if(i>= (num_required))
8 +       Printf(cleanup,"\tif(arg_count > %d) {\n", i);
9        if ((tm = Getattr(p, "tmap:freearg"))) {
10         Replaceall(tm, "$source", Getattr(p, "lname"));
11         Printv(cleanup, tm, "\n", NIL);
12 @@ -1179,6 +1181,8 @@
13        } else {
14         p = nextSibling(p);
15        }
16 +      if (i >= num_required)
17 +        Printf(cleanup,"}\n");
18      }
19  
20      /* Insert argument output code */
This page took 0.036291 seconds and 3 git commands to generate.