Vadim Zeitlin
302955a152
Another merge with master.
...
Updated Doxygen error numbers yet again, as Python errors got added in the
meanwhile, pushing the Doxygen ones further off.
And re-merged PEP8/whitespace-related conflicts in autodoc_runme.py once again
(if anybody is looking for a motivating example about why significant
whitespace is bad, here is a great use case).
2015-07-20 00:44:26 +02:00
Anbiru Shouta
977240b3f4
Clearer variable name in Java director generated code
...
Closes #463
2015-07-17 22:34:08 +01:00
Asi Bross
ce7f269f9c
Missing smart pointer handling in Java director extra methods implementation.
...
Added proper smart pointer casting to the generated *change_ownership method.
Fixing issue #370 .
2015-05-11 09:34:31 +03:00
William S Fulton
775afd3579
Refactor Java director swig_override array code
...
Remove code duplication: Use new Swig::BoolArray to replace multiple
instances of ZeroedBoolArray.
Refactors #403 and #413 .
2015-05-10 11:40:42 +01:00
Lindley French
8f19d77fec
Don't include an STL header in SWIG.
2015-05-07 11:29:47 -07:00
Lindley French
159b3c7958
Use a bitset which is automatically initialized to 0, instead of a bool array which is not.
2015-05-06 11:33:28 -07:00
Lindley French
5f0181bfdd
Too hard to conditionally define the memset....instead just make sure the array is defined even if it's unused.
2015-05-01 12:40:07 -07:00
Lindley French
e8ca8fb2e6
Only output memset if the array exists.
2015-04-30 23:14:48 -07:00
Lindley French
8acca78953
Zero-initialize swig_override in the director constructor.
2015-04-30 21:16:30 -07:00
Olly Betts
2c08e33099
Correct java warning to save javabase not csbase
2015-03-27 12:30:19 +13:00
Olly Betts
7ba0652677
Create director_common.swg for language-indep code
...
Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for
all languages with director support, not just Python and PHP.
2015-03-12 19:51:11 +13:00
Vadim Zeitlin
300ccce46c
Another merge with master.
...
Change Doxygen error codes to start at 740 instead of at 720 as the latter was
taken by Scilab in the meanwhile.
Resolve conflicts in autodoc_runme.py once again.
2015-02-16 23:46:39 +01:00
William S Fulton
2e01533b23
Partial support for %constant and structs
...
Test case is slightly modified from the test case in issue #250
Use of constant objects does not seem to work in Python - the type is
SwigPyObject instead of constant_directive.Type1.
2014-12-18 07:01:08 +00:00
Vadim Zeitlin
9b857e6cf1
Merge latest master into doxygen branch.
2014-12-15 02:55:26 +01:00
William S Fulton
0664ecdeb7
Fix strongly typed enums for Java when using simple enum wrappers
2014-11-24 07:04:54 +00:00
William S Fulton
fcef37d682
Fix incorrect symbol clash error in C# and Java when using %rename for enums
...
When using using 'simple enum' wrappers
2014-11-21 19:50:23 +00:00
William S Fulton
ede58b8744
Cosmetic formatting
2014-11-21 18:58:08 +00:00
William S Fulton
296d45aec5
Merge branch 'alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java'
...
* alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java:
Enhance cpp11_strongly_typed_enumerations testcase and turn it on
Simplify/improve strongly typed enum implementation for Java
Rewrite some Java director nested class support code for strongly typed enums
Expand director_nested_class test to test more than one level of nesting
Add director_nested_class testcase
Removed useless code (it does not affect output, at least on our testcases)
Java/Fix: swig_connect_director used not-fully-qualified classname (proper)
Java/Fix: swig_connect_director used not-fully-qualified classname
Java: fix generation of ProxyName when JNI descriptor is requested - for inner classes '$' should be used as separator instead of '/'
Java: fix invalid director 'self' variable type name (wasn't fully qualified)
Clean-up test suite and fix issue with nspace, as well as keep the fix for Class::Struct::EnumClass being JNI-referenced as Struct_EnumClass
C++11 strongly-typed enums fix for Java only (proper)
Revert "C++11 strongly-typed enums fix for Java only"
Additional test cases for C++11 strongly-typed enums
C++11 strongly-typed enums fix for Java only
2014-11-21 07:34:12 +00:00
William S Fulton
77b338151e
Simplify/improve strongly typed enum implementation for Java
2014-11-21 07:32:15 +00:00
William S Fulton
089865ba57
Rewrite some Java director nested class support code for strongly typed enums
2014-11-20 07:26:09 +00:00
Alexey Pelykh
837d2bfd04
Removed useless code (it does not affect output, at least on our testcases)
2014-11-03 12:10:10 +02:00
William S Fulton
6029b2f7d8
Fix for 'self' being used as a parameter name
2014-10-30 07:22:59 +00:00
William S Fulton
36ae32e941
Merge remote-tracking branch 'vadz/py-args'
...
* vadz/py-args:
Allow using enum elements as default values for Python functions.
Don't always use "*args" for all Python wrapper functions.
No real changes, just make PYTHON::check_kwargs() const.
Refactor: move makeParameterName() to common Language base class.
Remove long line wrapping from Python parameter list generation code.
2014-10-27 20:02:59 +00:00
William S Fulton
b57a675d00
Cosmetic comment changes
...
Note: copyrights are in the COPYRIGHT file
2014-10-21 07:34:51 +01:00
Alexey Pelykh
afbb47dc8f
Java/Fix: swig_connect_director used not-fully-qualified classname (proper)
2014-09-04 12:22:56 +03:00
Alexey Pelykh
8a69da7d82
Java/Fix: swig_connect_director used not-fully-qualified classname
2014-09-04 12:05:23 +03:00
Alexey Pelykh
e7db081d5e
Java: fix generation of ProxyName when JNI descriptor is requested - for inner classes '$' should be used as separator instead of '/'
2014-09-03 09:37:25 +03:00
Alexey Pelykh
7b9027db89
Java: fix invalid director 'self' variable type name (wasn't fully qualified)
2014-08-31 19:26:31 +03:00
Alexey Pelykh
abb888cfdd
Clean-up test suite and fix issue with nspace, as well as keep the fix for Class::Struct::EnumClass being JNI-referenced as Struct_EnumClass
2014-08-31 12:14:29 +03:00
Alexey Pelykh
d318f03efe
C++11 strongly-typed enums fix for Java only (proper)
2014-08-30 11:58:52 +03:00
Alexey Pelykh
fd926cf284
Revert "C++11 strongly-typed enums fix for Java only"
...
This reverts commit cf139a90db
.
2014-08-30 09:15:25 +03:00
Alexey Pelykh
cf139a90db
C++11 strongly-typed enums fix for Java only
2014-08-29 19:39:39 +03:00
Vadim Zeitlin
8c76270619
Refactor: move makeParameterName() to common Language base class.
...
This method was duplicated more or less identically for 4 languages and will
be needed for another one soon, so put it in the base class from which it can
be simply reused instead.
No changes in the program behaviour whatsoever.
2014-08-22 17:45:23 +02:00
Vadim Zeitlin
9f1af8921f
Refactor: move makeParameterName() to common Language base class.
...
This method was duplicated more or less identically for 4 languages and will
be needed for another one soon, so put it in the base class from which it can
be simply reused instead.
No changes in the program behaviour whatsoever.
2014-08-16 13:11:22 +02:00
Vadim Zeitlin
f684242467
Replace DoxygenTranslator debug parameters with a single flags one.
...
This makes the code more readable and more extensible as more flags are easier
to add in the future than more boolean parameters.
No user-visible changes.
2014-08-13 16:11:30 +02:00
Vadim Zeitlin
4f032332c9
Work around apparent clang bug.
...
Clang seems to be confused by "tm" being the name both of a local variable and
a struct tm from the standard <time.h> header, included indirectly in the
doxygen branch from java.cxx via "swig.h" and <stdlin.h>.
Just removing the unnecessary cast helps to clear the confusion.
2014-05-15 01:01:31 +02:00
Vadim Zeitlin
984d5fa299
Initialize doxygenTranslator pointer to NULL when it is unused.
...
No real changes, but avoid having pointer with junk contents, even if it's
unused.
This also avoid the need for checking whether it's used before deleting it.
2014-05-07 18:46:30 +02:00
Vadim Zeitlin
1ebd2334b8
Merge branch 'master' into doxygen
...
Merge with ~3.0.1 sources from master.
2014-04-30 18:37:57 +02:00
Olly Betts
36be36d618
Eliminate needless casting away const from string constants
2014-04-30 12:00:23 +12:00
William S Fulton
dc8428889e
Ignored enum fixes.
...
C#/Java - Enums which have been ignored via %ignore and are subsequently
used are handled slightly differently. Type wrapper classes are now generated
which are effectively a wrapper of an empty enum. Previously in Java uncompilable
code was generated and in C# an int was used.
2014-04-08 23:25:27 +01:00
William S Fulton
cd2085aae7
Fixes for C enums used in an API and the definition of the enum has not been parsed.
...
For D, this fixes a segfault in SWIG.
Java, C#, D, Go now produce code that compiles, although the definition of the
enum is needed in order to use the enum properly from the target language.
2014-03-28 07:54:03 +00:00
William S Fulton
bbd8f85de4
Forward null fix for Coverity analysis
2014-03-20 19:14:53 +00:00
Vladimir Kalinin
2f3d93e93a
Nested classes support is diversified, depending on the language capability. If the language cannot support nested classes, they will be unconditionally moved to the global namespace. If language module does not override Language::nestedClassesSupport() function, nested classes will be ignored, unless "feature:flatnested" is used.
2014-02-02 22:38:13 +04:00
Vladimir Kalinin
715e254e05
fixed enums & enum values language symbol table namespace
...
fixed skipping of %templates in %extend if they are in the wrong scope
2013-12-20 07:37:49 +04:00
Vladimir Kalinin
b4fef06c42
fixed %template within %extend, test added
...
fixed language symbol table nested classes name separator, test added
fixed %feature "flatnested" working with %extend
fixed Swig_offset_string for empty string
added simple template to save/restore values in current scope (readability reasons)
2013-12-19 02:11:22 +04:00
William S Fulton
7103a06849
Swig_offset_string moved to misc.c
2013-12-05 20:59:09 +00:00
Vladimir Kalinin
e1a4e11bea
fixed out-of-scope nested class definitions, added a test
...
enabled nested C structs assignment (still disabled for Octave), added Java runtime test
fixed nested_private test case for Java & C#
2013-12-04 01:53:42 +04:00
William S Fulton
44a883a057
Cosmetics/code beautification of nested class support
2013-11-29 07:29:58 +00:00
Vladimir Kalinin
b63c4839fe
Nested classes support
...
Closes #89
Squash merge branch 'master' of https://github.com/wkalinin/swig into wkalinin-nested
By Vladimir Kalinin
* 'master' of https://github.com/wkalinin/swig :
CPlusPlusOut mode for Octave
nested class illustration
fixed "Abstract" flag for nested classes added an example enabled anonymous nested structs runtime test
porting
warnings disabled
porting fixes
java runtime tests ported
nested class closing bracket offset fixed
removed double nested template (not supported by %template parsing)
template_nested test extended
parent field made public
property access fixed
replaced tabs with spaces
warning W-reorder
deprecated warnings removed, derived_nested runtime test added
optimized string indenting
Nested classes indenting
nested classes docs
fixed the order in which flattened inner classes are added after the outer
Private nested classes were getting into the type table.
Java getProxyName() fix for nested classes fixes the case when nested classes is forward declared
Fix for a case when a nested class inherits from the same base as the outer. (Base class constructor declaration is found first in this case)
merge fix
nested C struct first immediate declaration incorrectly renamed sample fixed
tests updated to reflect nested classes support
Java nested classes support (1)
flattening should remove the link to the outer class
access mode correctly set/restored for nested classes
nested templates should be skipped while flattening (template nodes themselves, not expanded versions) also non-public nested classes should be ignored
If nested classes are not supported, default behaviour is flattening, not ignoring flag "nested" is preserved, so, the nested classes can be ignored by user
nested workaround test updated
template instantiated within a class is marked as nested for ignoring purposes
%ignore not applied to the nested classed, because "nested" flag is set too late
typedef name takes precedence over the real name (reason?)
unnamed structs should be processed for all the languages
nested C struct instances are wrapped as "immutable"
tree building
typedef declaration for unnamed C structures fixed
nested classes "flattening"
fixed %ignoring nested classes
renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface
renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface
tree iteration fix
dirclassname variable names unified memory issue fixed
merge error
ignore unnamed structs for C++
unnamed nested C structs naming & unnesting
class added to classes hash under typedef name
private nested classes skipped
test updated due to nested templates support
anonymous structs with inheritance fixed nested_class test to allow anonymous structs w/o declarator
tests updated: nested workaround removed from namespace_class.i propagated nested template declaration to the C++ file
injected members scope
nested tempplates fixes, nested structures in "C" mode parsing added utility function "appendSibling" (like "appendChild")
nested unnamed structures parsing fixes, access mode restored on nested class end, tdname is properly patched with outer class name prefix
memory management fixes
nested templates (1)
Nested unnamed structs
Nested class support (1)
Nested class support (1)
2013-11-29 07:02:34 +00:00
William S Fulton
e717ed3056
Improve directorthrows patch
...
Separate $packagepath substitution from non-director code (as
documented). Some of the directorthrows code has been rewritten
so that fewer code changes are present compared to before the patch.
canonicalizeJNIDescriptor() refactored so it can be used for general
code, not just the directorin:descriptor typemap attribute.
Better implementation for substituting '$packagepath/$javaclassname' -
fixes some quirks in '$packagepath/$javaclassname' descriptor substitutions
if a dot was present in the descriptor string.
2013-10-31 23:16:09 +00:00
William S Fulton
cf4f5e8118
More conventional variable naming in directorExceptHandling
2013-10-24 08:03:33 +01:00
William S Fulton
fc13a24ecb
directorthrows warning fixes
...
- Fix line number display - now the usual simpler warning message can be displayed
for WARN_TYPEMAP_DIRECTORTHROWS_UNDEF - it still points to the problem method.
- Use macro names for warning suppression in test.
2013-10-24 07:45:56 +01:00
William S Fulton
88678ed492
director:except tweaks Recode whitespace handling, remove unnecessary comments in generated code.
2013-10-24 07:06:55 +01:00
William S Fulton
f55e0092ef
Remove pointless code from Java director:except patch
2013-10-23 18:43:36 +01:00
William S Fulton
97fd20a58d
Minor improvements to Java director:except patch
2013-10-23 18:43:13 +01:00
William S Fulton
9237c4553c
Code style conforming channges for Java director:except patch
2013-10-23 18:26:41 +01:00
Marvin Greenberg
6736e74127
Add feature director:except for improved director exception handling in Java
...
Closes #91
2013-10-22 20:44:35 +01:00
William S Fulton
67659773cc
Remove some Java references from C# module
2013-09-02 19:14:20 +01:00
Vladimir Kalinin
77bb7673ed
interface inheritance (2)
2013-05-22 18:47:45 +04:00
Vladimir Kalinin
5ccf08e3ec
interface inheritance (1)
2013-05-22 00:20:58 +04:00
Vladimir Kalinin
766d55255b
feature:interface ported to Java
2013-05-21 20:05:54 +04:00
William S Fulton
3f9d7ed416
Minor fixes after Coverity analysis
2013-05-16 08:13:56 +01:00
William S Fulton
296498c159
Cosmetic tidyup in smartptr feature code and document smartptr fix in previous commit
2013-04-17 21:56:23 +01:00
William S Fulton
e182b4844c
Fix seg fault in SWIG using directors when class and virtual method names are the same except being in different namespaces when the %nspace feature is not being used.
2013-03-19 19:50:44 +00:00
William S Fulton
397409fbb1
Ensure 'javapackage' typemap is used as it stopped working from version 2.0.5
2013-01-30 22:18:13 +00:00
Marko Klopcic
d52de0f36f
fixed comments for enum types in Java - they were missing before
2013-01-26 22:52:34 +01:00
Brant K. Kyser
3654031d4f
Repair typo from previous commit.
2013-01-19 01:27:34 +00:00
William S Fulton
bd3e93ae61
Tidy up last few commits for Java new jniclasspackage pragma
2013-01-19 00:58:56 +00:00
William S Fulton
36ce54da8d
Whitespace fixup
2013-01-19 00:34:05 +00:00
Brant K. Kyser
9318ece01f
Use NSPACE_SEPARATOR rather than literal.
2013-01-17 08:13:05 +00:00
Brant K. Kyser
f7e27ec7a9
Fix issue with using directors with the nspace feature without the -package commandline argument.
2013-01-17 08:13:05 +00:00
Brant K. Kyser
ace33bbf41
Fix issue with using directors with the nspace feature without the -package commandline argument.
2013-01-17 08:13:04 +00:00
Brant K. Kyser
7104b20d0d
imclass_class_package variable names seems to have class in it one too many times... renamed to imclass_package.
2013-01-17 08:13:04 +00:00
Brant K. Kyser
862d27f05a
Fix issue of package directory not being created when using jniclasspackage pragma. General cleanup of implementation.
2013-01-17 08:13:04 +00:00
Brant K. Kyser
3bdcb14117
Add jniclasspackage pragma & change error regarding use of nspace without -package to warning.
2013-01-17 08:13:03 +00:00
William S Fulton
7841a0d097
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
Brant K. Kyser
e1a59ae2c7
Clean up local variable name that store the director class's name to prevent confusion with the class name.
2013-01-08 21:38:57 -06:00
Brant K. Kyser
54b576d8b2
Merge in upstream changes
2013-01-05 02:26:15 -06:00
William S Fulton
328d6d01bb
Cosmetic whitespace change
2013-01-04 20:35:13 +00:00
Brant K. Kyser
d5d7655544
Merge branch 'master' into SFbug1299
2013-01-03 21:26:47 -06:00
Brant K. Kyser
f6ce5f089f
Qualify generated SwigDirector class names with namespaces
2013-01-03 21:26:08 -06:00
Brant K. Kyser
540ede0dd3
Fix for SourceForge Bug #1283 .
...
* Change the name of the memory own variable for base java director classes to match that expected by the director code
* Add conditional to appropriately dynamically cast director classes wrapped in smart pointers.
2013-01-04 00:31:55 +00:00
Brant K. Kyser
3e70da14c9
Fix for SourceForge Bug #1283 .
...
* Change the name of the memory own variable for base java director classes to match that expected by the director code
* Add conditional to appropriately dynamically cast director classes wrapped in smart pointers.
2013-01-03 14:54:06 -06:00
Brant K. Kyser
7ff0dfe426
Fix for SourceForge Bug #1278
...
* Modify test-suite to test Java directors with multi-level namespaces.
* Path java module to correctly generate method descriptors when multilevel namespaces are used.
2013-01-02 15:07:56 -06:00
William S Fulton
d93dc0f8e2
Distinguish between an "abstract" attribute on a class containing a list of abstract members and an "abstract" flag on pure virtual methods - renamed former to "abstracts"
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-24 14:13:58 +00:00
William S Fulton
0d2c459046
Remove some unused code and pointless variable assignments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-23 07:38:00 +00:00
William S Fulton
660b15ea5a
Correctly handle errors if language symbol already exists
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-19 19:46:21 +00:00
William S Fulton
e0967f3e13
Fix unnecessary and inconsistent null pointer checks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-19 19:44:48 +00:00
William S Fulton
d918bddfc0
Fix segfaults when using filename paths greater than 1024 characters in length - use String * and heap instead of fixed size static char array buffers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-18 00:45:18 +00:00
William S Fulton
fd24b188e2
Fix Coverity 'Uninitialized pointer fields' - member variables are now initialized
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:17:28 +00:00
William S Fulton
46d2486115
Resource leak fixes (or hiding them from Coverity static analysis tool by using String instead of char *)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:16:54 +00:00
William S Fulton
5a1e82a2f4
Remove DohClose (Close) and replace with calls to DohDelete (Delete) to fix some minor memory leaks in most uses of NewFile.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-14 22:16:07 +00:00
William S Fulton
421139a5fe
Fix some subtle named output typemap lookup misses, the fully qualified name was not always being in all cases such as member variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-13 22:16:28 +00:00
William S Fulton
b1ee062d2a
Cosmetic variable renaming for consistency across language modules
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-27 17:38:05 +00:00
William S Fulton
f6229d4b73
Fix director typemap searching so that a typemap specified with a name will be correctly matched. Previously the name was ignored during the typemap search. Implemented by ensuring the 'type' attribute in the Node is set up correctly and using the usual Swig_typemap_lookup on the Node.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-10-27 17:37:34 +00:00
William S Fulton
009c191430
Add assumeoverride feature option for Java directors to improve performance when it can be assumed that all methods are overridden by the Java derived classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 21:41:08 +00:00
Dmitry Kabak
c592e0db51
Made doxygen parsing switched off by default
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-13 09:09:25 +00:00
William S Fulton
315dc5a879
Fix some memory issues - use of deleted memory highlighted by DOH_DEBUG_MEMORY_POOLS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-05 22:17:32 +00:00
Dmitry Kabak
9d3446d803
Fixed critical bug with doxygen comments, containing % symbol
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13487 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-03 18:44:47 +00:00
Dmitry Kabak
3fbe45f0c6
Added nice doxygen debug switching (-debug-doxygen-parser and -debug-doxygen-translator)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-29 13:48:03 +00:00
Dmitry Kabak
46feb36cfb
Another fix for enums_simple case, now emitting comment
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-01 18:42:43 +00:00
Dmitry Kabak
304e232dbc
Fixed enum comments generation in java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-29 19:28:21 +00:00
Dmitry Kabak
4289b8e273
Refactored comment translator class, implemented result caching
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-25 15:47:36 +00:00
Dmitry Kabak
b88de2aa89
Fixed enum comments generation, added testcases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13184 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-18 19:13:23 +00:00
William S Fulton
af1c6ac3c3
Merge trunk (up to just after swig 2.0.5 release - rev 13009) to gsoc2008-cherylfoil
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@13017 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-27 18:55:37 +00:00
William S Fulton
debd5e9246
Add support for %nspace when using directors - Java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-06 18:57:25 +00:00
William S Fulton
de5a78c781
Expand symname special variable in director typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-23 16:27:15 +00:00
William S Fulton
468ca084fc
Correct special variables in 'directorargout' typemap. This change will break any 'directorargout' typemaps you may have written. Please change: to and to \n Also fix the named 'directorargout' DIRECTOROUT typemaps for these languages which didn't previously compile and add in , etc expansion.\n [C#, Go, Java, D] Add support for the 'directorargout' typemap.\n [Java] Add (char *STRING, size_t LENGTH) director typemaps.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-20 20:50:36 +00:00
William S Fulton
24133bacd7
Remove numerous hard coded 'result' variable name in generated c/c++ wrappers. The variable name is now defined in just one place, making it possible to change the name easily if a target language so wishes - see cwrap.c.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-10-30 21:51:50 +00:00
William S Fulton
e71624749a
Apply #3289851 to fix memory leak in directors when checking for pending exceptions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-17 19:15:50 +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
a63d456f8a
Remove redundant code highlighted by warnings in gcc-4.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-14 07:22:08 +00:00
William S Fulton
b69b793d8e
Better consistency in usage display
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-09 21:42:38 +00:00
David Nadlinger
91523f7510
[C#, D, Java] Check for collision of parameter names with target language keywords when generating the director glue code.
...
The situation in which the generated could would previously be invalid is illustrated in the new 'director_keywords' test case.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-12-30 15:40:17 +00:00
William S Fulton
e1ddf0ea3a
Apply SF patch #3075150 - Java directors using static variables in named namespace
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-25 17:08:13 +00:00
William S Fulton
6c094629cb
File and line number corrections for warnings WARN_JAVA_MULTIPLE_INHERITANCE WARN_MODULA3_MULTIPLE_INHERITANCE WARN_CSHARP_MULTIPLE_INHERITANCE and errors 'The javabase typemap for proxy' 'No methodname attribute...' 'No methodmodifiers attribute...' 'The csbase typemap for proxy...'
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-20 19:11:55 +00:00
William S Fulton
45f20c7363
Fix constants wrapper warnings for visual c++
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12064 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-28 22:24:11 +00:00
William S Fulton
7b2c6b477a
Fix segfault attempting illegal javaclassname and csclassname special variable substitution
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-26 19:01:12 +00:00
William S Fulton
12cfc251e4
Fix #2408232 . Improve shared_ptr and intrusive_ptr wrappers for classes in an inheritance hierarchy. No special treatment is needed for derived classes, the SWIG_SHARED_PTR_DERIVED macro is deprecated.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-22 22:49:47 +00:00
Olly Betts
bf1d3f0714
Remove superfluous semicolons.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-21 07:10:12 +00:00
William S Fulton
76bbd7373d
Fix wrapping of C++ enum boolean values when using %javaconst(1)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-14 19:03:01 +00:00
William S Fulton
cd317b3f1c
Java/C# constants fix after last nspace commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-13 23:39:46 +00:00
William S Fulton
e81bfb86c0
Correct file and line number display for some error messages, these now also result in exiting with an error.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-13 23:08:02 +00:00
William S Fulton
bbf225ef63
Minor changes to error message for Java when -package is missing with nspace
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-13 09:54:07 +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
7af8eb954b
add some missing nspace support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-10 22:00:14 +00:00
William S Fulton
4853346745
remove duplicate special variable replacement
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-10 08:07:39 +00:00
William S Fulton
8d227bce62
Slightly efficiency improvements for packages/namespaces/
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-10 07:50:32 +00:00
William S Fulton
bce282fa0c
Minor tweaks
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-10 07:29:16 +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
51d433ee0a
fix nspace error message for Java
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-06 19:09:10 +00:00
William S Fulton
2b1f0a14bc
merge revisions 11872:11876 from trunk to gsoc2008-cherylfoil branch - license changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@11900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-05 23:43:39 +00:00
William S Fulton
1253657bb4
Add improved namespace support - the nspace feature, working for Java only at the moment.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-04 21:27:23 +00:00
William S Fulton
cb64f65bae
SWIG license change - Source moves to GPLv3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton
4bf5049397
Improve target language symbol tables for Java and C#, using different scopes for the constants interface, module class and intermediary class rather than incorrectly putting all the symbols into one scope
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11857 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-13 00:42:09 +00:00
William S Fulton
65f1e47cb2
remove some unnecessary casts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-11 21:59:16 +00:00
William S Fulton
83bd820285
Add typemaps used debugging option (-debug-tmused). Fix missing file/line numbers for typemap warnings and in the output from the -debug-tmsearch/-debug-tmused options
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-04 19:33:52 +00:00
William S Fulton
6dad327ed3
Fix for %%javaexception and directors so that all the appropriate throws clauses are generated
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11797 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-12-23 01:05:17 +00:00
William S Fulton
bf8ba3bf55
Fix generated quoting when using %javaconst(1)/%csconst(1) for static const char member variables.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-29 01:29:26 +00:00
William S Fulton
1dd50f5ea8
Fix %javaconst(1)/%csconst(1) for static const member variables to use the actual constant value if available
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11758 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-26 19:20:31 +00:00
William S Fulton
06269a50a5
Apply modified patch 2879724 from Marko Klopcic
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@11716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-01 22:05:01 +00:00
William S Fulton
45518cd0d1
apply doxygen-svndiff.patch from #2763155
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-cherylfoil@11697 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-10-13 21:27:09 +00:00
William S Fulton
4ebb9b0db2
minor rewrite of enum value handling
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11690 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-09-13 20:20:11 +00:00
William S Fulton
c7b7078dd0
Fix classes not being added into Java method's throws clause when %catches is used
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-16 00:04:29 +00:00
William S Fulton
7f0e632ddd
typemap method name: use consistent terminology in code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11473 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-30 06:06:49 +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
William S Fulton
224c83ef09
Typemap API changes to facilitate more uniform typemap handling across language modules - in particular some typemaps usage did not respect the warning attribute and other warning handling and $typemap special variable (which will be refined in future commit) as well as local typemap variable handling:
...
- remove Swig_typemap_search, Swig_typemap_search_multi and Swig_typemap_attach_kwargs from access outside of typemaps.c (made static)
- all static methods in typemap.c renamed dropping Swig_ prefix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-07-08 12:17:45 +00:00
William S Fulton
c7d90e58d8
improve some director warning messages
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-25 06:01:11 +00:00
William S Fulton
0a1c7c91b1
fix Java and C# enums when one of the enum items is ignored
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-16 19:29:08 +00:00
William S Fulton
7e8d19cec0
Add the 'notderived' attribute to the javabase and csbase typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11196 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-04-29 17:58:32 +00:00