Updated examples to function correctly with new php4 module. Added

some supplemental examples for cpointer, overloading and references using
proxies.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Kevin Ruland 2005-08-24 16:32:41 +00:00
commit 501bd53c4b
44 changed files with 506 additions and 131 deletions

View file

@ -27,7 +27,7 @@ $c = addv($a,$b);
print " a+b =". Vector_print($c)."\n";
# Note: Unless we free the result, a memory leak will occur
delete_Vector($c);
$c = None;
# ----- Create a vector array -----
@ -52,7 +52,7 @@ VectorArray_set($va,2,addv($a,$b));
$c = addv($a,$b);
VectorArray_set($va,3,$c);
delete_Vector($c);
$c = None;
# Get some values from the array
@ -71,8 +71,8 @@ print "do $i\n";
# ----- Clean up -----
print "Cleaning up\n";
# wants fixing FIXME
#delete_VectorArray($va);
delete_Vector($a);
delete_Vector($b);
$va = None;
$a = None;
$b = None;
?>