]> git.pld-linux.org Git - packages/swig.git/commitdiff
- memfault patch
authorggodlewski <ggodlewski@pld-linux.org>
Tue, 7 Oct 2003 20:13:21 +0000 (20:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    swig-php-freearg.patch -> 1.1

swig-php-freearg.patch [new file with mode: 0644]

diff --git a/swig-php-freearg.patch b/swig-php-freearg.patch
new file mode 100644 (file)
index 0000000..bf38606
--- /dev/null
@@ -0,0 +1,20 @@
+--- SWIG/Source/Modules/php4.cxx.orig  2003-10-07 22:11:59.308330872 +0200
++++ SWIG/Source/Modules/php4.cxx       2003-10-07 22:11:33.000000000 +0200
+@@ -1149,6 +1149,8 @@
+     /* Insert cleanup code */
+     for (i = 0, p = l; p; i++) {
++      if(i>= (num_required))
++      Printf(cleanup,"\tif(arg_count > %d) {\n", i);
+       if ((tm = Getattr(p,"tmap:freearg"))) {
+       Replaceall(tm,"$source",Getattr(p,"lname"));
+       Printv(cleanup,tm,"\n",NIL);
+@@ -1156,6 +1158,8 @@
+       } else {
+       p = nextSibling(p);
+       }
++      if (i >= num_required)
++        Printf(cleanup,"}\n");
+     }
+     
+     /* Insert argument output code */
This page took 0.089465 seconds and 4 git commands to generate.