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
William S Fulton
439a353a36
Document patch #33 from previous commit and complete run time tests
2013-04-18 23:20:48 +01:00
Jesus Lopez
9be3235988
Support $descriptor() macro in fragments
...
Closes #36
2013-04-18 23:04:07 +01:00
William S Fulton
857e447654
Fix syntax error when preprocessor macros are defined inside of enum lists
...
Fixes SF Bug 428, Patch 333
2013-04-18 22:48:42 +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
William S Fulton
fdea8a8f51
More useless code removal as detected by scan-build (LLVM/Clang)
...
using scan-build ./configure && scan-build make
2013-03-08 22:19:07 +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
cfd8497f3e
Cosmetic changes in SwigType_add_qualifier
2013-02-21 07:00:25 +00:00
Karl Wette
ee2b46abe0
Fix SWIG's handling of qualified (e.g. const) variables of array type
2013-02-19 20:05:46 +00:00
Karl Wette
9d330a9970
Fix qualifier parsing in SwigType_add_qualifier()
...
- use list to ensure qualifiers are unique and sorted
- now allows 'qual' to contain multiple qualifiers
2013-02-19 20:05:45 +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
Karl Wette
70cd52f44d
Use "(void)" instead of "()" when wrapping no-argument extension functions.
2013-02-18 22:39:39 +00:00
William S Fulton
b80f4dc5e2
Restrict the name used in %extend to be just the struct/class name and not a typedef to a class/struct. Typedefs were only partially working anyway. Anonymous struct typedefs excluded. Deprecate with a warning for now.
2013-02-18 19:53:37 +00:00
William S Fulton
9193b3ed77
Remove unnecessary file/line setting in parser
2013-02-04 20:10:02 +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
William S Fulton
d172e3d0ed
Apply patch SF #334 - Fix Python default value conversions TRUE->True, FALSE->False.
2013-01-29 07:31:11 +00:00
William S Fulton
38f37ef5ae
Apply patch SF #335 - Truly ignore constructors in directors with %ignore and correct testcase that tests this
2013-01-29 06:55:22 +00: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
0e6af5c0ea
Fix cstype typemap lookup for member variables so that a fully qualified variable name matches
2013-01-15 06:45:47 +00:00
William S Fulton
7841a0d097
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
William S Fulton
5889d7bfdd
Merge branch 'SFbug1299' of https://github.com/BrantKyser/swig into BrantKyser-SFbug1299
2013-01-11 23:12:06 +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
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
6cb5b5487f
Use NSPACE_SEPARATOR rather than liter string for package seperator.
2013-01-08 21:28:13 -06: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
Olly Betts
f9566ad2df
Fix assorted typos.
...
From https://sourceforge.net/p/swig/patches/332/ and some others too.
2013-01-08 18:47:40 +13:00
Olly Betts
0dd11cdd8d
Fix to work with a ZTS build of PHP (broken in 2.0.7)
2013-01-08 18:33:47 +13:00
William S Fulton
3f1d77ee0f
Merge branch 'SFbug1296' of https://github.com/ptomulik/swig into ptomulik-SFbug1296
2013-01-05 20:13:19 +00:00
Brant K. Kyser
c62cd63f71
Patch for SourceForge Bug #1299 broke D and C#. Update C# module to reflect these changes.
2013-01-05 05:25:33 -06:00
Brant K. Kyser
b005c68009
Patch for SourceForge Bug #1299 broke D and C#. Update D module to reflect these changes
...
NOTE: There are several test failures in the D test suite, so it is difficult to be entirely sure this does not break something.
2013-01-05 04:54:02 -06:00
Brant K. Kyser
3c12306b21
Remove extra underscore from generated director names to maintain prevent breaking languages that do not support nspace.
2013-01-05 03:40:06 -06:00