aboutsummaryrefslogtreecommitdiff
path: root/Lib
AgeCommit message (Collapse)Author
2013-11-21Fixes for c_delete and c_delete_function testsWilliam S Fulton
2013-11-11Add array function PHP keywordsWilliam S Fulton
2013-11-09Merge branch 'master' of https://github.com/BrantKyser/swigWilliam S Fulton
- Remove using directives from the generated C# code and fully qualify the use of all .NET framework types in order to minimize potential name collisions from input files defining types, namespace, etc with the same name as .NET framework members. - Globally qualify the use of .NET framework types in the System namespace - Remove .NET 1.1 support, .NET 2 is the minimum for the C# module Closes #79 * 'master' of https://github.com/BrantKyser/swig: Correct spelling of compatibility. Update documentation to reflect fully qualifying the use of .NET types in the generated code. Add support for SWIG2_CSHARP macro to create SWIG 2 backwards compatability mode. Remove using directives from the generated C# code and fully qualify the use of all .NET framework types in order to minimize potential name collisions from input files defining types, namespace, etc with the same name as .NET framework members. Since SWIG 3.0 removes support for .NET 1.1, cleanup the C# library by removing the use of the SWIG_DOTNET_1 macro. Globablly qualify the use of types from the .NET framework's System namespace in the C# module and library. Add test case to demonstrate the name collision that occurs in the generated C# code when a namespace is named System.
2013-11-07Rework the director.swg changes for director exception handlingWilliam S Fulton
- More robust implementation. - Fix some bugs to give better exception messages when a user uses the director utility exception functions and classes. - Replace unnecessarily shortened variable names for easier reading of code.
2013-11-07Cosmetics/code style conformance in newly added Java director exception handlingWilliam S Fulton
2013-10-23Minor improvements to Java director:except patchWilliam S Fulton
2013-10-22Add feature director:except for improved director exception handling in JavaMarvin Greenberg
Closes #91
2013-10-22Correct spelling of compatibility.Brant K. Kyser
2013-10-21Add support for SWIG2_CSHARP macro to create SWIG 2 backwards compatability ↵Brant K. Kyser
mode.
2013-10-18Remove a couple of unused variable warnings in generated codeWilliam S Fulton
2013-10-18Fix some gcc -Wall unused warnings in the Ruby wrappersWilliam S Fulton
Fixes SF bug 1333.
2013-10-18Fix unused variable warning in Ruby wrappers when using gcc -WallWilliam S Fulton
2013-10-17Fix Visual Studio compile error in C++ wrappers due to #include <exception> ↵William S Fulton
within extern "C" block. Fixes SF #1340
2013-10-17Remove using directives from the generated C# code and fully qualify the use ↵Brant K. Kyser
of all .NET framework types in order to minimize potential name collisions from input files defining types, namespace, etc with the same name as .NET framework members.
2013-10-17Since SWIG 3.0 removes support for .NET 1.1, cleanup the C# library by ↵Brant K. Kyser
removing the use of the SWIG_DOTNET_1 macro.
2013-10-17Add missing #include <stddef.h> for offsetof when using -builtin.William S Fulton
Fixes SF #1345
2013-10-17Globablly qualify the use of types from the .NET framework's System ↵Brant K. Kyser
namespace in the C# module and library.
2013-10-12Lua: Fix void return for non-void functionsAtri
Commit #c3f3880d caused the functions SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) and SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) to return void when int returns were expected resulting in the build failures for plplot's lua bindings for example. This commit fixes the issue. Closes #92
2013-10-11Minor cleanup prior to merging to masterWilliam S Fulton
2013-10-10Merge branch 'master' into gsoc2009-matevzWilliam S Fulton
Conflicts: Examples/Makefile.in Examples/guile/Makefile.in Lib/php/php.swg Makefile.in Source/CParse/parser.y configure.ac
2013-09-25Fix typosOlly Betts
2013-09-20Fixed a memory leak for java STRING_ARRAYGavin Kinsey
The allocation loop uses size, so the free loop should do the same, not size-1.
2013-09-18Remove X11 detection during configureWilliam S Fulton
X11 is not used anywhere.
2013-09-15Guile OUTPUT typemap fixWilliam S Fulton
Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
2013-09-13Remove trailing spaces in the generated code.Sylvestre Ledru
No functional changes
2013-09-12Lua static member access improvements.Artem Serebriyskiy
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-12Infinity is now by default an acceptable value for type 'float'.William S Fulton
This fix makes the handling of type 'float' and 'double' the same. The implementation requires the C99 isfinite() macro, or otherwise some platform dependent equivalents, to be available.
2013-08-30Include Lua error locus in SWIG error messagesMiles Bader
This is standard information in Lua error messages, and makes it much easier to find bugs.
2013-08-30Add Lua runtime helper functions for error-handlingMiles Bader
Add two helper functions to the Lua runtime, "SWIG_Lua_pusherrstring" and "SWIG_Lua_pushferrstring". These are like the standard Lua functions lua_pushstring and lua_pushfstring respectively, except that the strings are prefixed with the location of the innermost Lua call-point (as generated by luaL_where).
2013-08-29Add support for std::map<> comparator template argument for C#.Vadim Zeitlin
Allow exporting maps using non-default comparison function. Closes #77
2013-08-28%implicitconv will now accept None where the implicit conversion takes a ↵William S Fulton
C/C++ pointer. Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230.
2013-08-07Remove SwigPyObject_print and SwigPyObject_str, and make the generated ↵Kris Thielemans
wrapper use the default python implementations, which will fall back to repr (for -builtin option). Advantages: - it avoids the swig user having to jump through hoops to get print to work as expected when redefining repr/str slots. - typing the name of a variable on the python prompt now prints the result of a (possibly redefined) repr, without the swig user having to do any extra work. - when redefining repr, the swig user doesn't necessarily have to redefine str as it will call the redefined repr - the behaviour is exactly the same as without the -builtin option while requiring no extra work by the user (aside from adding the %feature("python:slot...) statements of course) - the patch simplifies pyrun.swg a tiny bit. Disadvantage: - default str() will give different (but clearer?) output on swigged classes compared to unpatched swig SF Bug #326
2013-08-06Fix for missing C++ code in std::multimap wrappers.William S Fulton
%template for a std::multimap generated uncompilable code unless a %template for a std::map of the same template types was also coded up. This patch is needed in conjunction with previous commit - 5f1fff1849285f46cfaffadff0352cf976ea4c52 Closes #64 Closes #65
2013-07-25Copied std::pair<> fragment from Lib/std/std_map.i into ↵Andrew Simmons
Lib/std/std_multimap.i. This fixes an error when a std::multimap template is wrapped by itself.
2013-07-14change to allow file SEXP return valuesjoequant
2013-07-05Add %pythonbegin directive.William S Fulton
For adding code at the beginning of the generated .py file.
2013-07-02SWIG_AsWCharPtrAndSize improper operation if cptr NULLWilliam S Fulton
SF bug #1327 This doesn't have any noticeable effect with the usage of SWIG_AsWCharPtrAndSize as shipped by SWIG, but could be a problem if a user is using this function with cptr equal to zero and psize is non-zero - the length would be incorrectly set due to the call to PyUnicode_GetSize failing.
2013-07-02Fix comment typo (interpeters)Olly Betts
2013-07-01Uninitialized variable fix in SWIG_Python_NonDynamicSetAttr when using -builtin.William S Fulton
SF patch #340
2013-07-01Add SF patch #342 fix some director classes crashing on object deletion when ↵William S Fulton
using -builtin. Fixes SF bug #1301 and python test cases director_basic and director_classic seg faulting when used with -builtin. Patch from Christian Delbaere.
2013-06-13Octave: add SWIGRUNTIMEINLINE to SWIG_Octave_SetConstant()Karl Wette
2013-06-11Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => ↵William S Fulton
SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11Add SWIG_PYTHON_NO_DEBUG macro for building Debug wrappers against the ↵William S Fulton
Python Debug dll
2013-06-07Fix Ruby regression with missing rb_complex_new function.William S Fulton
Affects Ruby versions prior to 1.9 using std::complex wrappers if just using std::complex as an output type. Also fix the Complex helper functions external visibility (to static by default). Closes #52
2013-06-04[PHP] Fix SWIG_ZTS_ConvertResourcePtr() not to dereference NULLOlly Betts
if the type lookup fails.
2013-05-25Fix Python 3 inconsistency handling -ve numbers for unsigned C types.William S Fulton
An OverFlow error is now consistently thrown instead of a TypeError. Fixes primitive_types testcase for Python 3
2013-05-25Add test case for attributes with moderately complex templatesArtem Serebriyskiy
* New test case tests that %attribute macros correctly supports passing template with multiple parameters as class name or attribute type name * Some further changes were made to %attribute macros - now AttributeType is protected with %arg as well. This allows you to have attributes of type e.g. std::pair<int,int> etc Update CHANGES file for %attribute template fixes Closes #48
2013-05-25Fix %arg in Lib/attribute.iArtem Serebriyskiy
2013-05-25Fix all attributes macrosesArtem Serebriyskiy
2013-05-16Simplify and improve Guile FILE * in typemapWilliam S Fulton
Fix incorrect special variable $name and remove unnecessary temporary variable.