William S Fulton
3932d02a2a
fix SWIG naming convention
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
William S Fulton
06c06f8742
remove redundant if not __cplusplus for directorin typemap - directors are always c++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 22:47:11 +00:00
Miklos Vajna
6f80e2f7a6
PHP: Add directorout typemap for primitive type const refs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 04:22:03 +00:00
William S Fulton
45359dc12c
Add SWIGTYPE *& typemaps for PHP
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11556 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:14:49 +00:00
Olly Betts
3675a7baf7
Add min and max as built-in functions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11555 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:00:36 +00:00
William S Fulton
cc43f20f6d
PHP fix const char\*\& typemaps and add in char_strings runtime test based on Java version
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11552 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 23:31:19 +00:00
William S Fulton
42d7f3bb10
add php typecheck typemaps for const reference for primitives
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11551 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 22:39:20 +00:00
William S Fulton
d2316a8189
PHP std::vector wrappers overhaul modelling on Java std_vector.i. Work around empty rename warning problem. Add capacity and reserve(). Remove need for specialize_std_vector macro.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11550 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 22:07:34 +00:00
William S Fulton
627d9faffd
Add PHP const ref typemaps for primitive types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 21:41:23 +00:00
Miklos Vajna
ac8f104d7b
PHP: Add more comments in SWIG_ZTS_SetPointerZval()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 22:53:32 +00:00
Miklos Vajna
e27c32d885
PHP: fix PHP 5.3 support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11502 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 09:26:25 +00:00
Olly Betts
110562d364
[PHP] Fix generated code to work with PHP 5.3.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 15:37:32 +00:00
Miklos Vajna
a9f9b7cbbf
PHP: fix for the li_math testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11496 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 10:32:25 +00:00
Olly Betts
1f01eb5d7d
[PHP] Fix memory leak in PHP OUTPUT typemaps. Reported by Hitoshi
...
Amano in SF#2826322.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-29 02:27:54 +00:00
Olly Betts
c321421bc5
[PHP] Update warnings about clashes between identifiers and PHP
...
keywords and automatic renaming to work with the PHP5 class
wrappers. Fixes SF#1613679.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-28 13:12:06 +00:00
Miklos Vajna
0249eea389
Merge https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-vmiklos/
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-22 11:08:29 +00:00
Olly Betts
949ea9b580
[PHP] Update the list of PHP keywords - "cfunction" is no longer a
...
keyword in PHP5 and PHP 5.3 added "goto", "namespace", "__DIR__",
and "__NAMESPACE__".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 05:40:50 +00:00
Olly Betts
9e919ef866
Removed unused struct tag.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11362 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-05 04:06:39 +00:00
Olly Betts
64843143f1
The default out typemap for char[ANY] now returns up to a zero byte, or the end
...
of the array if there is no zero byte. This is the same as Python does, and seems
more generally useful than the previous behaviour of returning the whole
contents of the array including any zero bytes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-30 02:22:14 +00:00
William S Fulton
06b2eca75e
remove last vestiges of php4 and encourage use of -php rather than -php5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-06 23:15:20 +00:00
Olly Betts
fccd1e294a
Fix indentation. Use %{ %} in a couple of typemaps to avoid adding needless
...
{ } to the generated code. Use memcpy() instead of memmove() where the
destination is freshly allocated so there's no possibility of overlap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-10-01 11:54:31 +00:00
Olly Betts
0f0c13204e
Fix non-standard indentation.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-10-01 05:28:45 +00:00
Olly Betts
7ef2b73a6d
[PHP5] Fill in typemaps for SWIGTYPE and void * (SF#2095186).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-25 07:11:36 +00:00
Olly Betts
03429576fc
[PHP5] Add typemaps for long long and unsigned long long.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-19 03:20:59 +00:00
Olly Betts
16c8749768
[PHP5] Change the default input typemap for char * to turn PHP
...
Null into C NULL (previously it was converted to an empty string).
The new behaviour is consistent with how the corresponding output
typemap works.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 14:02:15 +00:00
Olly Betts
b2cea3c42a
[PHP] For std_vector.i and std_map.i, rename empty() to is_empty()
...
since "empty" is a PHP reserved word. Based of patch from Mark Klein
in SF#1943417.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10650 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-04 01:22:11 +00:00
Olly Betts
1e6d6b2708
[PHP] The SWIG cdata.i library module is now supported.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 23:55:33 +00:00
Olly Betts
fbfda8f7d2
Make testcase li_typemaps work for PHP.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 06:05:34 +00:00
Olly Betts
30cdd1f71e
Make t_output_helper() static.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 06:04:24 +00:00
Olly Betts
3d3bc01a2f
Rename php4*.swg to php*.swg.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:37:38 +00:00
Olly Betts
7dfd9aae31
WARN_* constants are user visible, so keep existing WARN_PHP4_* for
...
backward compatibility, but add preferred forms WARN_PHP_* and use
these ourselves.
Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx.
Add typemaps for const reference so Examples/test-suite/apply_signed_char.i
works.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:09:56 +00:00