Commit graph

3,247 commits

Author SHA1 Message Date
William S Fulton
aae63efcfe Remove unnecessary blank lines from Javascript examples 2014-04-19 17:59:49 +01:00
William S Fulton
efc5af04e0 Detect node-gyp at configure time and show version in javascript_version target 2014-04-19 16:44:21 +01:00
William S Fulton
0e0f65aead Tidy up Example makefile for Javascript 2014-04-10 08:13:06 +01:00
William S Fulton
921189415a Remove junk files 2014-04-10 07:58:02 +01:00
Oliver Buchtala
a8c3f85378 Insert a workaround for c_delete and c_delete_function for v8. 2014-03-31 02:59:33 +02:00
Oliver Buchtala
158c8b6732 Merge branch 'master' into devel
Conflicts:
	.travis.yml
	Examples/test-suite/common.mk
2014-03-30 23:07:56 +02: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
15f4b3b19d Correct messages displayed when running Java test-suite 2014-03-28 07:48:40 +00:00
Artem Serebriyskiy
f2c410a8c0 Fixing issue 152 2014-03-23 14:05:05 +04:00
William S Fulton
91c817b475 Fix C++11 extern template test 2014-03-21 18:36:21 +00:00
William S Fulton
abd31397fa Always use debug flags for Mono to get decent stacktraces on error. 2014-03-20 19:12:44 +00:00
William S Fulton
f999c4864e Fix errors test-suite on Mac OSX 2014-03-16 15:20:13 +00: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
William S Fulton
b59feff9f9 Test case compiler warning fix 2014-03-15 21:00:25 +00:00
William S Fulton
e2b6de8a03 Compiler warning fixes in testcases 2014-03-15 18:24:01 +00:00
William S Fulton
13aac0dca9 Portability fixes for errors test-suite 2014-03-15 18:23:02 +00:00
William S Fulton
300ade57e8 Add missing return statements in testcase 2014-03-15 00:23:55 +00:00
William S Fulton
8f967f3341 Add missing return for testcase 2014-03-14 23:26:23 +00:00
William S Fulton
eabdb13115 Fix warning suppression in testcase 2014-03-14 16:53:09 +00:00
William S Fulton
3d230ea253 Fix Guile li_std_string testcase which requires a UTF-8 locale set
This was failing on Mac OSX and is a further fix to
43c8f2351c to fix #139
2014-03-14 14:18:42 +00:00
William S Fulton
bf8eb05dbb Merge pull request #146 from v-for-vandal/class_p1_fixes2
Class p1 fixes2 - Lua enums and NSpace

Disable old-names generation for enums in class in namespace
Getattribute->GetFlag
Partially disabling old names generation for classes with nspace
Working around some of the SWIG internal issues with enums
2014-03-14 09:01:15 +00:00
William S Fulton
e5f928e97a Add metaprogramming type_traits example in C++11 documentation 2014-03-14 01:57:16 +00:00
William S Fulton
01ce992f5d C++11 result_of testcase 2014-03-14 01:57:16 +00:00
William S Fulton
a542c5277d C++11 std::reference_wrapper example - no support 2014-03-14 01:57:16 +00:00
William S Fulton
fd5f4c25aa C++11 alignof alignas testcase and further C++11 doc updates 2014-03-14 01:57:16 +00:00
William S Fulton
9a45a09aec C++11 conversion operator example and docs added 2014-03-14 01:57:15 +00:00
William S Fulton
adc3cfeb57 More C++11 doc and test improvements 2014-03-14 01:57:15 +00:00
William S Fulton
3fb973644e More C++11 doc tweaks 2014-03-14 01:57:15 +00:00
William S Fulton
e186dc13b7 C++11 constexpr variables support added 2014-03-14 01:57:14 +00:00
William S Fulton
348caba6e5 Add note about cplusplusout for nested_struct testcase 2014-03-14 01:57:14 +00:00
Vladimir Kalinin
e18044185e fixes for director class naming when nested classes are used 2014-03-13 18:58:29 +04:00
Artem Serebriyskiy
ddbf439db9 Working around some of the SWIG internal issues with enums 2014-03-12 18:00:15 +04:00
William S Fulton
504c2030bb Change in default behaviour wrapping C++ bool for Python.
Only a Python True or False will now work for C++ bool parameters.
This fixes overloading bool with other types.
2014-03-08 12:04:19 +00:00
William S Fulton
7f45cbd178 Reorganise broken C++11 testcases 2014-03-08 12:02:08 +00:00
William S Fulton
dbf44fc181 Fix std::map and smart pointers.
Fixes problem with method overloading when some methods are added by %extend
and others are real methods and using template default parameters with smart pointers.
This is noticeable as a regression since 2.0.12 when using the default smart pointer
handling for some languages when the smart pointer wraps std::map and other STL containers.

Fixes SF Bug 1363
2014-03-06 19:52:03 +00:00
Artem Serebriyskiy
3028b16cee Partially disabling old names generation for classes with nspace 2014-03-06 15:24:17 +04:00
Oliver Buchtala
b5aa1df72b Generalized smoke test configuration. 2014-03-06 06:30:36 +01:00
Oliver Buchtala
57491eaa81 Add 'version' target for javascript. 2014-03-06 06:29:00 +01:00
Oliver Buchtala
a234542543 Merge branch 'master' into tmp
Conflicts:
	.travis.yml
	Examples/Makefile.in
	Examples/test-suite/director_nspace.i
	Examples/test-suite/nspace.i
	Examples/test-suite/nspace_extend.i
	Source/Modules/lang.cxx
	configure.ac
2014-03-05 01:09:26 +01:00
William S Fulton
c99417ab13 Lua documentation tweaks and make nspace example more concise. 2014-03-04 07:54:37 +00:00
William S Fulton
8b75b90b2f Merge branch 'class_p1_fixes' of github.com:v-for-vandal/swig into v-for-vandal-class_p1_fixes
Lua changes tweaks.

* 'class_p1_fixes' of github.com:v-for-vandal/swig:
  Removing all TODO:REMOVE
  Fixing enums
  __Static -> SwigStatig, __Module -> SwigModule
  Setattr -> SetFlag
  Backward compatibility -> Compatibility Note
  Fixing documentation. Adding an example.
2014-03-03 19:16:18 +00:00
Artem Serebriyskiy
1898099620 Fixing enums 2014-03-03 09:54:13 +04:00
Artem Serebriyskiy
6b18d20979 Fixing documentation. Adding an example. 2014-03-02 19:10:11 +04:00
William S Fulton
7a96fba836 Correct exception thrown attempting to access a non-existent C/C++ global variable on the 'cvar' object.
The exception thrown used to be a NameError. However, as this access is
via a primary, an AttributeError is more correct and so the exception
thrown now is an AttributeError. Reference:
http://docs.python.org/2/reference/expressions.html#attribute-references

SF Patch #346.
2014-03-02 01:31:36 +00:00
William S Fulton
4fb940d913 Further fixes when using type() when using -builtin to include module name
Using type() on a builtin type should include the package and module
name, see http://docs.python.org/2/c-api/typeobj.html
2014-03-01 23:26:27 +00:00
William S Fulton
a3a0535229 Add testcase and info on python -builtin missing argument count check 2014-03-01 16:44:01 +00:00
William S Fulton
09cfc53bdf Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
William S Fulton
736c6b953e C# project files update
- Update project files to use Visual Studio 2005 (minimum supported .NET
  is now 2.0 which is what VS 2005 supports).
- Add project files for arrays example (requires /unsafe)
- Fix support so that the project files work straight out the box on 64
  bit systems (32 bit compile is the default).
- Fix support for 64 bit builds - use the x64 platform.
2014-03-01 04:35:00 -08:00
William S Fulton
52c106d27f Revert unnecessary changes in keyword_rename test 2014-02-27 20:23:32 +00:00
William S Fulton
c36800713b Use unix fileformat 2014-02-27 20:12:53 +00:00