Vincent Couvert
9a0ac2fa59
Add a test for library existence
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12365 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-04 15:52:24 +00:00
Vincent Couvert
8febd3e62b
Update example
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-03 12:31:21 +00:00
Vincent Couvert
a8452f0a1a
Add test for Scilab typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12314 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 16:46:00 +00:00
Vincent Couvert
c786f2f980
Add test for Scilab typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 16:44:59 +00:00
Vincent Couvert
002a35fab3
Fix typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12311 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 16:43:29 +00:00
Vincent Couvert
8814075a59
Fix typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-26 16:42:54 +00:00
Sylvestre Ledru
2aa7a9fbc9
Fix a mistake in the test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-15 08:18:40 +00:00
Sylvestre Ledru
5bd8d9c134
Test arrays_global added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12280 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-15 08:01:54 +00:00
Vincent Couvert
6da4c4d006
Nested structs test added.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12276 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 15:45:49 +00:00
Vincent Couvert
5001e6e479
Exit from Scilab when the loader fails
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 15:45:16 +00:00
Sylvestre Ledru
43b91f43ca
The empty test
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 15:18:32 +00:00
Vincent Couvert
35cd4a1023
Update since .i has changed (merged from trunk)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 15:11:52 +00:00
Vincent Couvert
57a14d7459
New Scilab tests/examples
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 15:10:21 +00:00
Sylvestre Ledru
2e69d7a7d1
When failing, returns the name of the script
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12271 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 14:57:56 +00:00
Sylvestre Ledru
1842244c93
Merge from trunk
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 14:15:42 +00:00
Vincent Couvert
64bb416577
Add new test and make it work
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 12:38:34 +00:00
Vincent Couvert
f7d5a8cccc
Improve Scilab test suite with start/quit scripts + remove useless display.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-14 09:15:59 +00:00
William S Fulton
c9ede7e622
Fix unary scope operator (::) (global scope) regression introduced in 2.0.0. The mangled symbol names were incorrect, sometimes resulting in types being incorrectly treated as opaque types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-13 05:48:59 +00:00
Vincent Couvert
2625a29a96
Add lines(0) to avoid execution stopped by Scilab (Do you want to continue?)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12263 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-12 15:29:47 +00:00
Vincent Couvert
d33006076f
Fix typo + test write access
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-12 06:50:15 +00:00
William S Fulton
61e9073e07
Add missing return value in testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 20:47:45 +00:00
William S Fulton
c7b4336a6c
add missing return to testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 16:47:30 +00:00
William S Fulton
378ce60b49
Lua warning fix since previous commit changed max to maximum
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 15:08:03 +00:00
William S Fulton
70c9dc5dcc
Fix warning running under Go
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 15:01:24 +00:00
William S Fulton
3219746776
Apply patch #3066958 from Mikael Johansson to fix default smart pointer handling when the smart pointer contains both a const and non-const operator->.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-10-03 13:12:00 +00:00
William S Fulton
5ff6553319
testcase warning suppression
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-28 17:37:33 +00:00
William S Fulton
31af118c41
Move Swig_locator from scanner.c to cscanner.c. Fix file and line error/warning reporting fixes where SWIG macros are used within {} braces (where the preprocessor expands macros), for example macros within %inline {...} and %fragment(...) {...} and nested structs. Basically anything that results ina call to skip_balanced() in the parser/preprocessor.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12227 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-24 22:13:13 +00:00
William S Fulton
b01277a19b
Various inherited class warning/error line number fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-18 01:14:21 +00:00
Vadim Zeitlin
f89181d4c8
Fix the rename_pcre_encoder unit test for Python.
...
Due to a bug in the way %rename() directives without a name currently work,
the second %rename in rename_pcre_encoder.i overrides the first one and the
function wxDoSomething() is not renamed to DoSomething() any more. Remove the
test for this renaming that doesn't work to at least let the rest of the test
to pass.
Also test that SetXXX() functions from the .i file really are renamed to
putXXX() as expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12217 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-11 11:44:26 +00:00
William S Fulton
efb9090a87
Fix correct line number reporting in errors/warnings when a macro definition ends with '/' and it is not the end of a C comment - swig.swg has some of these macro definitions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-11 11:02:18 +00:00
William S Fulton
f82811dbcd
Fix incorrect line number reporting in errors/warnings after parsing macro invocations with parameters given over more than one line.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12214 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-10 23:44:27 +00:00
William S Fulton
4435fe4f4a
Update expected error/warning results since last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12213 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-10 23:39:03 +00:00
William S Fulton
e3092a6150
Remove java specifics from testcase
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-10 06:40:42 +00:00
William S Fulton
122bc852f9
Fix #2149523 - Incorrect line number reporting in errors after parsing macros. Remove extraneous extra line in preprocessed output which would sometimes lead to error/warning messages two lines after the end of the file
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-10 06:08:45 +00:00
Olly Betts
f6cd7912e3
Revert change inadvertently included in previous commit.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-08 02:45:23 +00:00
Olly Betts
52819796ca
Fix a couple of typos
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-08 02:43:32 +00:00
Olly Betts
a25ccbf58b
[PHP] Fix handling of OUTPUT typemaps (Patch from Ryan in SF#3058394).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-08 02:40:56 +00:00
William S Fulton
b2e2cb8f66
Add test for line number reporting for multiple macro expansions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12205 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-06 18:25:22 +00:00
William S Fulton
46bd4a26c6
Add expected error/warning messages log
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-06 18:12:13 +00:00
William S Fulton
b0609c3be2
Add some more preprocessor tests
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-06 18:10:43 +00:00
William S Fulton
04c3e6b7d3
Fix line numbering for 'Unterminated call invoking macro' error
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12202 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-06 17:30:18 +00:00
William S Fulton
45601f24b4
Fix line numbers in error and warning messages for preprocessor messages within %inline. Also fixes __LINE__ within %inline
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12200 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-03 17:47:12 +00:00
William S Fulton
1e6ed0843f
minor clarification in test comment
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12198 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-01 21:11:09 +00:00
William S Fulton
aa728ece67
Fix __LINE__ and __FILE__ expansion in macros with no arguments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12197 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-01 21:06:10 +00:00
William S Fulton
5a6443ebcf
Fix some more instances of __LINE__ and __FILE__ numbering
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-29 22:11:03 +00:00
William S Fulton
13d18e4c3f
Fix test for non Java langs
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-26 18:18:11 +00:00
William S Fulton
69af82caa4
Fix __LINE__ and __FILE__ expansion. Mostly this did not work at all.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-26 18:06:02 +00:00
Vadim Zeitlin
024ed6ce2a
Fix bug in applying regex replacement to non-matching strings.
...
We didn't handle pcre_exec() return code properly and so the replacement could
be still done even if there was no match if the replacement part contained
anything else than back-references (in this, the only tested so far, case the
replacement was still done but the result turned out to be empty and the
calling code assumed the regex didn't match).
Do check for PCRE_ERROR_NOMATCH now and also give an error message if another
error unexpectedly occurred.
Add a test case for the bug that was fixed.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12187 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-14 14:12:23 +00:00
William S Fulton
70b4d12317
Restore in source and out of source builds for the test-suite. Note that configure must be invoked using a relative path for out of source builds
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-28 05:53:17 +00:00
Vadim Zeitlin
587d843521
Remove old experimental rxspencer encoder and rxsmatch function.
...
They are replaced with the new, officially supported PCRE-based regex and
regexmatch.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:02:35 +00:00