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
Vadim Zeitlin
70c5bb5a47
Add support for "[not]regexmatch" and "regextarget" to %rename.
...
"regexmatch" and "notregexmatch" can be used with anonymous %renames in the
same way as "match" and "notmatch" while "regextarget" specifies that the
argument of a non-anonymous %rename should be interpreted as a regular
expression.
Document the new functions.
Also add a new unit test for %regex also testing regexmatch &c and provide
test code for C# and Java verifying that it works as intended.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:02:10 +00:00
Vadim Zeitlin
48a2e0bdea
Correct top_{src,build}dir definitions in csharp and java test suite.
...
The ".." artificially appended to these variables was enough to make the build
work in the source directory but broke down when the build directory was
different from the source one. Remove this hack and use absolute path to the
build directory instead to ensure that it's still valid even when csharp/java
makefiles invoke swig_and_compile_{c,cpp} macros from a subdirectory.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12173 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:01:36 +00:00
Vadim Zeitlin
0b2561f300
Add a test case for the regex encoder inside %rename.
...
Simple unit test checking that %rename("%(regex:...)") works as expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 17:00:59 +00:00
Vadim Zeitlin
1f939323a4
Fix PYTHONPATH value when running Python tests outside source directory.
...
PYTHONPATH needs to include the current directory and not (just) the source
directory as the SWIG-generated files are produced here and not under the
source directory when the top build directory is different from it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12166 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 16:59:08 +00:00
William S Fulton
7338f39936
Fix out of source builds for the test-suite which broke in 1.3.37
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-18 00:06:40 +00:00
William S Fulton
53ad9822f5
Fix for languages that don't have %shared_ptr macro
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12158 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-17 14:48:13 +00:00
William S Fulton
568607c5ea
Fix wrapping of function pointers and member function pointers when the function returns by reference
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12157 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-16 18:45:22 +00:00
William S Fulton
2d8b51684d
remove svn:executable property
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12156 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-16 17:39:11 +00:00
William S Fulton
cca92f4188
Fix #3024875 - shared_ptr of classes with non-public destructors. This also fixes the 'unref' feature when used on classes with non-public destructors.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-07 18:19:01 +00:00
William S Fulton
49fb2f8550
Missing changes for rev 12123 to fix 'make partialcheck' for go
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-17 23:54:21 +00:00
Ian Lance Taylor
2970f53c21
Remove the -rename option in the Go language support. Do a much
...
better job of checking for name conflicts. Ignore conflicting names
with a warning. Adjust the testsuite accordingly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-17 18:59:26 +00:00
Ian Lance Taylor
683dafb6d3
Update the instructions to say that you also need to compile the code
...
itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-16 15:47:15 +00:00
Ian Lance Taylor
da5e02f81c
Rename "go" typemap to "gotype".
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-15 19:40:34 +00:00
Ian Lance Taylor
0d80b4011d
Add run test for li_std_vector_ptr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-15 18:06:18 +00:00
William S Fulton
96d86b0fec
Fix 'make partialcheck' for go
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-14 19:08:11 +00:00
William S Fulton
688db4ee29
Fix std::map warning keyword hack in Go
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12121 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-11 22:36:58 +00:00
William S Fulton
7e7bd74ff2
Remove Go director hack just to please the SWIG test-suite
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-11 19:05:30 +00:00
William S Fulton
92f5c379b8
Fix 6g/8g detection
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-11 06:29:32 +00:00
William S Fulton
1a317ff3db
Add C# example showing how to modify the underlying enum type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-10 06:06:12 +00:00
Ian Lance Taylor
5af2978f77
Add support for the Go programming language.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-10 01:13:31 +00:00