Commit graph

2,258 commits

Author SHA1 Message Date
William S Fulton
55170f0f88 Add Ruby missing methods for vector<bool> specialization
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-15 00:17:21 +00:00
Olly Betts
1b42d9dde1 [PHP] Update the PHP "class" example to work with PHP5 and use
modern wrapping features.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 09:01:31 +00:00
Olly Betts
84215444eb Rename max() to maximum() as max() is a built-in function in PHP.
Testcases overload_template and overload_template_fast now pass for PHP.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 01:33:23 +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
1f55c29eee Zap extra blank line after ?> which appears in testsuite output
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-14 00:15:23 +00:00
William S Fulton
d1a6d960eb Add non-const char *& runtime tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 23:37:05 +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
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
Olly Betts
4297c7de33 Just disable SWIGWARN_PARSE_KEYWORD for li_math.i under PHP.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 14:58:27 +00:00
Olly Betts
dd96b09e68 Fix the list of classes expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 04:13:35 +00:00
Olly Betts
d3809285a4 Change class names in test code which clash with PHP reserved words
(Interface, Class, and Function - these are case insensitive reserved
words in PHP).

Fix lists of expected methods in rename_scope_runme.php to match those
which we expect with PHP5.  With this and the change above, this testcase
now passes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11545 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 03:58:09 +00:00
Olly Betts
54018f66a2 Correct the human-readable messages in 3 assertions.
Remove meaningless comment.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11544 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 03:35:48 +00:00
Olly Betts
ce3d4db364 Update the list of expected methods for smart_pointer_rename for PHP5 so this
testcase now passes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-13 03:31:38 +00:00
Olly Betts
abcff1089d Fix 2 of the 3 warnings under PHP (the remaining one doesn't seem to respond
to %warnfilter as I'd expect...)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-11 13:56:50 +00:00
Miklos Vajna
451f71d7b1 remove unnecessary extra semicolons in the tesuite
Basically just style cleanup, "fi;" or "fi; \" -> "fi".

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11523 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:52:08 +00:00
William S Fulton
56c5b52c1d remove unnecessary extra shells being spawned in the test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 22:39:51 +00:00
Miklos Vajna
d5e546f07f PHP: Run testcase.php if testcase_runme.php is not found in the testsuite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11521 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 14:51:22 +00:00
Miklos Vajna
e2f2a7c128 Avoid dereferencing a NULL pointer in the constant_pointers testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11520 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-09 13:13:21 +00:00
Miklos Vajna
9d5b0d7bf4 Python: cleanup in the template_typedef_import testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-06 19:57:55 +00:00
Miklos Vajna
09b20003fb PHP: fix for the overload_rename testcase
Previously we just had two __construct function which resulted in a
parse error. Now we create a new factory method for the renamed ctor.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-06 12:27:03 +00:00
William S Fulton
77096c878b add a new testcase testing combinations of STL types... just vector and pair at the moment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11509 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 22:19:04 +00:00
William S Fulton
b9ff3b0fae only display debug info when debug flag set
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 21:47:46 +00:00
William S Fulton
41d3c98993 fix $typemap() when the type contains template parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 21:40:49 +00:00
Miklos Vajna
5161a12868 PHP: detect if a non-object is passed to check::classname() in the testsuite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-05 12:37:56 +00:00
William S Fulton
40ea6e5da4 use so that macros are no longer needed for std::map wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 17:58:17 +00:00
Miklos Vajna
88a934d7f0 PHP: fix for the wrapmacro testcase
'max' is a built-in function in PHP, so let's rename it to 'maximum'
instead.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11495 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-04 09:32:12 +00:00
William S Fulton
31ad548c6b Deprecate SWIG_STD_VECTOR_SPECIALIZE_MINIMUM. Deprecate SWIG_STD_VECTOR_SPECIALIZE and replace with SWIG_STD_VECTOR_ENHANCED
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11493 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-03 18:17:14 +00:00
Miklos Vajna
9444f2cebe PHP: fix for the import_nomodule testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11490 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-03 13:52:25 +00:00
William S Fulton
bbcfa0b089 () for multi-argument typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11481 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 17:42:18 +00:00
William S Fulton
75aa67b99c rename special_variable_functions testcase to special_variable_macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11475 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 06:15:50 +00:00
William S Fulton
bf0ee4471c (method, typelist) special variable macro fixed/enhanced and made official
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-29 20:50:39 +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
0fa227ea83 PHP: fix for the director_using testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-28 11:47:36 +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
Xavier Delacour
68d0177d6c more fixes for octave 3.2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-12 21:09:50 +00:00
Xavier Delacour
cdc9de8210 small fixes to make octave module compatible with octave 3.2
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-12 20:23:19 +00:00
William S Fulton
0576ffcde7 add test for %extend on member variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-09 19:56:47 +00:00
Olly Betts
531e341309 Fix rename_scope testcase to pass
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-06 06:48:37 +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
William S Fulton
31d43ea8c0 Move custom commandline option overrides to new common section used in all other makefiles
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 23:32:14 +00:00
William S Fulton
4851213163 Improved way of overriding commandline options for the multicpptests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 23:16:08 +00:00
William S Fulton
144944dd8b rename custom_wallkw to wallkw - custom commandline tests needn't start with custom_
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 22:28:07 +00:00
William S Fulton
9064b08651 better way to provide custom commandline options for individual tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 22:23:43 +00:00
William S Fulton
092073588d add missed out test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-03 21:23:34 +00:00
William S Fulton
ea34de223f fix typo in custom_wallkw testcase name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 22:42:45 +00:00
William S Fulton
9fe205d0f1 reverse merge last commit - 11348
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 22:40:49 +00:00
William S Fulton
1adaae5780 rename custom testcases with a custom_ prefix (intermediary_classname.i and lib_arrays.i). Also some typo fixes for custom testcases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 21:59:29 +00:00
William S Fulton
134610e55d Add a test for the -Wallkw commandline option. Also refine general framework for using custom commandline options for individual test cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 21:35:41 +00:00
William S Fulton
7db0c01af0 rename byreference testcase to li_reference to follow normal test naming conventions of library files. Remove ability to add testcases into subdirectories (again) - not wanted
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-02 20:32:51 +00:00