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
ec1d5a5be1
Correct guile help for -Linkage.
...
-linkage does not work (it clashes with the generic -l option).
2013-10-21 21:36:07 +01:00
William S Fulton
d15220cba4
Remove a couple of unused variable warnings in generated code
2013-10-18 19:10:42 +01:00
William S Fulton
9c7d014389
T_STRING is now const char * instead of char *
...
Fixes Guile constant wrappers removing -Wwrite-strings g++ warning.
2013-10-17 18:36:59 +01:00
Nikhil Shetty
aad30cf4de
BUGFIX: superclass name not lispy
...
The superclass names were not lispified correctly and so the class was inheriting
from erroneous class symbols.
Closes #96 .
2013-10-12 14:32:50 +01:00
William S Fulton
bcb7aee022
Merge branch 'master' into gsoc2009-matevz
...
Conflicts:
Examples/Makefile.in
Examples/guile/Makefile.in
Lib/php/php.swg
Makefile.in
Source/CParse/parser.y
configure.ac
2013-10-10 07:26:09 +01:00
William S Fulton
3fcbb40af9
Remove incorrectly and newly introduced assert
...
Was failing in li_boost_shared_ptr.i for some languages. A similar
testcase has been added into naturalvar_more.i.
2013-10-05 02:16:02 +01:00
William S Fulton
e186d2176a
Fix %naturalvar and templated methods using enums
...
%naturalvar was not being picked up - use the symbol table instead for
looking up the feature.
use_naturalvar_mode() has been moved to Language class (not strictly necessary though)
2013-10-04 23:08:33 +01:00
William S Fulton
c4d40c7b64
PHP directors - generate call_user_function on one line
2013-10-01 22:13:57 +01:00
Olly Betts
12708c9241
Fix typos
2013-09-25 17:29:33 +12:00
Artem Serebriyskiy
c3f3880d0c
Lua static member access improvements.
...
1) Static members and static functions inside class can be accessed as ModuleName.ClassName.FunctionName (MemberName respectively). Old way aka ModuleName.ClassName_FunctionName still works.
2) Same goes for enums inside classes: ModuleName.ClassName.EnumValue1 etc.
3) More 'runme' tests for lua + modifications to existing tests to test new changes.
Code is loosely based upon python implemenation of the same thing.
Patch #62 .
2013-09-12 21:32:26 +01:00
William S Fulton
67659773cc
Remove some Java references from C# module
2013-09-02 19:14:20 +01:00
Miles Bader
c746ae7a0f
Include Lua error locus in SWIG error messages
...
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
William S Fulton
b58dabced9
%implicitconv is improved for overloaded functions.
...
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
Olly Betts
628b4710e5
[Python] Fix clang++ warning in generated wrapper code.
2013-08-24 08:40:08 +12:00
Olly Betts
b477cb66be
Use offsetof() rather than icky homemade equivalent
2013-08-24 08:34:50 +12:00
William S Fulton
d0af4f50d3
Add %pythonbegin directive.
...
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
779dc402b6
Fix a const_cast in generated code that was generating a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
...
Affects Python, Ruby, Ocaml.
Based on SF patch #341 .
2013-07-01 20:00:12 +01:00
Karl Wette
0d05b2a2d1
Octave: make texinfo strings static (internal linkage)
2013-06-13 17:46:34 +02:00
William S Fulton
0f1e3da5de
Fix the high passed to PyTuple_GetSlice in varargs wrappers.
...
Harmless bug as slices can take any size larger than the actual size for
the high value. Reported in SF Bug 1326.
2013-05-23 21:25:41 +01:00
William S Fulton
3f9d7ed416
Minor fixes after Coverity analysis
2013-05-16 08:13:56 +01:00
William S Fulton
9203c6d5c6
Remove deprecated Guile options from help.
...
Also use wording for deprecated options warning which is consistent with
elsewhere.
2013-04-29 08:02:18 +01:00
Geert Janssens
ce14abaf61
guile: emit warning when -gh or -scm option are used
2013-04-28 22:06:28 +02:00
Geert Janssens
b819d2a91e
Drop guilegh interface
...
All of guile's interface files now use the scm interface.
This should not affect any users. Swig generated code
using the scm interface can be mixed with gh interface
using user code.
It does simplify maintenance of the guile swig code though.
2013-04-28 22:06:24 +02:00
William S Fulton
99231457db
Fixes for warnings issued by clang
2013-04-28 17:59:40 +01:00
Yung Lee
6e06b50adf
Remove non-ascii characters at a comment line in d.cxx that trouble VC++
2013-04-22 18:28:26 +01:00
William S Fulton
695de9ee0e
Tcl: change differently named constructors behaviour.
...
Where overloaded constructors are given different names, a class is constructed by calling
the name of the first constructor wrapper parsed rather than the last one parsed.
Behaviour is not perfect as either name could be used, it is just consistent with Python.
Fixes Examples/tcl/operator example - broken in 0e57357472
2013-04-19 22:47:27 +01:00
Karl Wette
2a3e687c19
Octave: fix bugs in output of cleanup code
...
Closes #35
2013-04-17 22:23:27 +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
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
Karl Wette
611acbf944
Add -MP option for generating phony targets for all dependencies
...
- Modelled on similar option in GCC
2013-04-15 22:17:48 +02:00
Olly Betts
24ff00690f
Use ZVAL_STRINGL instead of ZVAL_STRING to set funcname as we know the length at swig-time
2013-04-14 08:03:46 +12:00
Olly Betts
a16dc29046
Removed unused Printf parameter
2013-04-14 06:14:47 +12: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
9d0b20916f
Add ability to suppress some director warnings by their method name, not just the containing class name
2013-03-19 19:50:43 +00:00
Karl Wette
52c754a22d
Minor fix to Octave autodoc generation for functions returning structs
...
Patch #27
- see also git commit 72ffdb930d
2013-03-09 00:10:41 +00:00
Sylvestre Ledru
e0b14786d6
Fix some useless code detected by scan-build (LLVM/Clang)
2013-03-08 20:53:18 +00:00
William S Fulton
d1b40b468b
Fix C code where a typedef name was used for constructor and destructor names in %extend. Deprecate use of typedef names for constructor and destructor names going forwards.
2013-02-18 22:40:42 +00:00
William S Fulton
e44656cfe5
Add support for extern "C" thread_local
2013-02-08 18:45:29 +00:00
William S Fulton
7fcfdeee08
Fixes detecting if a variable is extern when using 'extern thread_local'
2013-02-08 07:38:10 +00:00
William S Fulton
b725625e6f
Add support for thread_local when specified with other legitimate storage class specifiers - extern and static
2013-02-08 06:36:39 +00:00
William S Fulton
6399428a62
Add lambda functions to the symbol tables and add ability to suppress lambda warnings.
2013-02-04 20:05:34 +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