Karl Wette
d5b765d388
Whitespace cleanup of all Makefiles*
...
- some of the %.clean rules in the test-suite Makefiles were using a single tab
as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
William S Fulton
87963d2e68
Java/C# smart pointer tests: Give GC more time to collect objects
2014-03-16 00:44:30 +00:00
Vladimir Kalinin
e18044185e
fixes for director class naming when nested classes are used
2014-03-13 18:58:29 +04:00
William S Fulton
4f3c77051f
Slight wording change when running test-suite
...
Should be easier to parse 'by eye'
2014-02-22 20:51:27 +00:00
William S Fulton
0e4f2dad0f
C# examples to use debug flags when using mono interpreter
2014-02-16 15:20:14 +00:00
William S Fulton
0383d08444
Add new swigtype_inout.i library containing SWIGTYPE *& OUTPUT typemaps.
2014-02-04 06:54:22 +00:00
Vladimir Kalinin
865408874f
fixed %template declared within class, next to template declaration
...
added a few tests for C# nested classes support
2013-12-16 11:43:28 +04:00
Vadim Zeitlin
ed28725a15
Add std_auto_ptr.i defining typemaps for returning std::auto_ptr<>.
...
These typemaps are currently defined for C#, Java and Python only and the
tests are provided only for these languages.
Also add a brief description of the new header to the documentation.
2013-12-03 23:45:20 +01:00
Brant K. Kyser
5f53503b7d
Correct spelling of compatibility.
2013-10-22 14:08:47 -05:00
Brant K. Kyser
3720b48847
Add support for SWIG2_CSHARP macro to create SWIG 2 backwards compatability mode.
2013-10-21 13:13:47 -05:00
Brant K. Kyser
cb2df12630
Since SWIG 3.0 removes support for .NET 1.1, cleanup the C# library by removing the use of the SWIG_DOTNET_1 macro.
2013-10-17 13:58:32 -05:00
Brant K. Kyser
0f1e73fd26
Add test case to demonstrate the name collision that occurs in the generated C# code when a namespace is named System.
2013-10-15 13:55:35 -05:00
Vadim Zeitlin
72afb74f47
Add support for case conversion characters in regex substitutions.
...
Allow using Perl-like \l, \L, \u, \U and \E escape sequences in the
substitution string used with %rename("%(regex:/pattern/subst/)s").
This is useful for e.g. title casing all string after removing some prefix.
Closes #82
2013-10-15 07:17:56 +01:00
William S Fulton
439a353a36
Document patch #33 from previous commit and complete run time tests
2013-04-18 23:20:48 +01:00
Brant K. Kyser
25eaee49f3
Add check for smart pointer type in generated code for director connection. This fixes a crash in the generated code caused by the dynamic_cast returning 0 because the specified types are incorrect for smart pointer types.
...
Add runtime test to the C# test suite's director smartptr test that demonstrates crash in generated code when directors are used with smart pointer types.
Closes #34
2013-04-17 21:55:11 +01:00
William S Fulton
079165abe2
Convert to unix fileformat
2013-01-12 16:54:45 +00:00
William S Fulton
13d9e19cdb
Fix spacing in generated code for csdirectorin 'pre', 'post' and 'terminator' attributes. Add some more tests for these attributes.
2013-01-11 19:47:10 +00:00
Vladimir Kalinin
2b407f4b27
SF Patch#268 - Add 'pre', 'post' and 'terminator' attributes to the csdirectorin typemap
...
"csdirectorin" "pre:" and "post" code attributes in C# module. Without them it is
not trivial to marshal strings and smart-pointers back and forth
between user callback code and native code. (especially by reference)
Also fixes 2 minor issues in director code generation that are
difficult to come by until "csdirectorin" attribute is extended.
The first is that "ref" types used in directors lead to invalid
signature generation (the type array used to match methods possibly
overloaded by user). typeof(ref T) is used instead of
typeof().MakeByRefType()
The second is that ignored director methods are not completely ignored
- if there was a %typemap(imtype, "directorinattributes") it is not
skipped for ignored method.
2013-01-09 00:11:41 +00:00
William S Fulton
3e2c6bb03d
director_nspace fixes for C# for previous commit
2013-01-03 20:49:10 +00:00
William S Fulton
6f819d1cd1
Detect mono C# compiler on newer linux distributions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-12-15 23:41:01 +00:00
William S Fulton
73b0431fbc
Fix C enum forward declarations in some target languages (notably Java)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13030 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-01 18:44:22 +00:00
William S Fulton
50693941c6
Fix #3475492 - iterating through std::vector wrappers of enumerations.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-13 07:10:24 +00:00
William S Fulton
11185e66b1
Add support for %nspace when using directors - C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-07 22:09:28 +00:00
William S Fulton
2aeed2fd48
Add missing intrusive_ptr csvarout typemaps for C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-09-13 22:35:14 +00:00
William S Fulton
f24d1b99b1
Add in missing wrappers for friend functions for some target languages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 23:06:40 +00:00
William S Fulton
12e1ce4d1a
Better debugging info for C# test cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-04-01 22:56:58 +00:00
William S Fulton
b13ec94386
SF bug #3195112 - fix wrapping of enums that are type char
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-26 15:28:31 +00:00
William S Fulton
5f1c242f1a
Apply patch #3212624 fixing std::map Keys property.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-15 07:30:18 +00:00
David Nadlinger
ce6516fb4c
[D] nspace support.
...
As for C# and Java, this doesn't work for free functions/variables yet.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12534 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-13 00:32:26 +00:00
William S Fulton
a5837dd7e6
[C#] SF #3085906 - Possible fix running test-suite on Mac OSX.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-05 12:58:29 +00:00
William S Fulton
f4c74bc500
R - SF #3168676 Fix %rename not working for member variables and methods. Add new simple rename testcase with runtime tests for C# and R
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-04 23:42:06 +00:00
William S Fulton
4a73d986dd
Any 'using' statements in the protected section of a class were previously ignored with dirprot mode, certainly with Java and C#. Also directors - a call to a method being defined in the base class, not overridden in a subcalss, but again overridden in a class derived from the first subclass was not being dispatched correcly to the most derived class - affecting non-scripting languages. Fix for C# is based on recent fix for D.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12419 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-02-01 07:02:50 +00:00
William S Fulton
640cce2c50
Fix typecheck typemaps for SWIGTYPE *const&
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-30 00:42:27 +00:00
William S Fulton
7f4283f684
Fix special variable not being expanded for csvarin typemaps when used for global variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-23 20:27:34 +00:00
Vadim Zeitlin
f6cab0170a
Ignore non-matching regex renames when searching renames list.
...
Skip over %renames with non-matching %(regex)s expansion when looking for the
one to apply to the given name. This allows to have multiple anonymous renames
using regex as now the first _matching_ one will be used instead of always
using the first one and ignoring all the rest of them.
Extend unit tests to verify that applying two anonymous %renames does work as
expected.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12293 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-16 14:09:39 +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
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
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
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
d25121a0ed
Fix SWIG_STD_VECTOR_ENHANCED macro used in C# std::vector to work with commas
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-06-01 23:10:22 +00:00
William S Fulton
e2ce97f397
Add the ability for special variable macros to call other special variable macros. Also added additional diagnostics when using -debug-tmsearch. Add tests for std::vector of shared_ptr.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-26 23:22:49 +00:00
William S Fulton
eef9044477
More string tests: char const*const
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-01 10:01:26 +00:00
William S Fulton
7ed1528349
nspace fixes and adding in missing symbols in language symbol tables for Java and C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11937 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-13 00:05:31 +00:00
William S Fulton
96f9879511
Fixes for nspace and derived classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-09 21:15:34 +00:00
William S Fulton
deafe98dc4
Test %extend and nspace feature
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-08 23:02:53 +00:00
William S Fulton
9dd30264f6
fix last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-08 22:26:17 +00:00
William S Fulton
83391b135d
.netmodule files are generated in the subdirectories again
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-08 20:46:21 +00:00
William S Fulton
978dd1f48f
Windows portability fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-08 07:35:06 +00:00
William S Fulton
b6b99bb148
Add nspace feature for C# and add documentation on nspace
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-06 19:11:32 +00:00