| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Detected by compiling with GCC flags `-flto -Wodr`.
|
|
|
|
|
|
|
|
| |
These were officially deprecated in 2001, and attempts to use them have
resulted in a warning (including a pointer to what to update them to)
for most if not all of that time.
Fixes #1984
|
|
|
|
|
|
|
|
|
| |
The macros for casting function pointers are now fully described and also
clarify why the macros act transparently for C even before Ruby 2.7.
In addition, an "if (CPlusPlus)" was removed in the code generator for
global variables in order to keep the distinction between C and C++ in
one place, which is at the definition of said macros.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit fixes the signatures of various callback methods
and cleans up the macro definitions used for casting callbacks.
Note that the transparent version of the macro RUBY_METHOD_FUNC
is currently masked behind RUBY_DEVEL, see commit
https://github.com/ruby/ruby/commit/1d91feaf13e0ffe04b2dabc6e77e4101b6d0bb07
In order to still support strict signature checking and prevent
nasty deprecation warnings, the use of RUBY_METHOD_FUNC had to
be replaced with VALUEFUNC.
|
|
|
|
|
|
| |
This commit fixes swig#1653 by creating a Ruby virtual variable
for a C/c++ global variable when SWIG is invoked with the
-globalmodule option.
|
|
|
|
|
|
|
|
| |
Backport changes to Python version of make_autodocParmList() to Ruby and
Octave modules, which use similar code.
In particular, this improves handling of parameters clashing with the
language keywords/reserved words for these languages as well.
|
|
|
|
|
|
|
|
|
|
|
|
| |
The docstring was not encapsulated within /* */ comments.
The implementation had code for autodoc strings being either single or
multi-line and then adding extra newlines. However, in practice only multi-line
autodoc string are ever generated, so this bit of code handling was removed.
The docstring feature does not attempt to add newlines depending on the
existence of newlines in the docstring.
Closes #538
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The -cppcast option is still turned on by default. The -nocppcast option
to turn off the use of c++ casts (const_cast, static_cast etc) has been
removed. However, defining SWIG_NO_CPLUSPLUS_CAST will still generate C casts
instead of C++ casts for C++ wrappers.
This a revert of commit fc79264a48f186f8bbd367e91fa9dbf9758aa092:
"Revert "Remove -cppcast and -nocppcast command line options""
The Scilab and Javascript casting problems are now fixed, so -cppcast
is now switched on as default.
|
|
|
|
|
|
| |
This reverts commit c06f2b4497bffeb185dbf0e65dc925514537ef37.
More work to be done as it breaks Scilab and Javascript tests.
|
|
|
|
|
|
|
| |
The -cppcast option is still turned on by default. The -nocppcast option
to turn off the use of c++ casts (const_cast, static_cast etc) has been
removed. However, defining SWIG_NO_CPLUSPLUS_CAST will still generate C casts
instead of C++ casts for C++ wrappers.
|
|
|
| |
found via `codespell` and `grep`
|
|\
| |
| |
| |
| | |
* goatshriek-ruby-alias:
Fix ruby %alias directive for native c functions
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Using the %alias directive on native C functions causes swig to segfault due to
a dereference of klass (which is NULL for native C functions) in the
defineAliases function of the Ruby module. This commit adds support for an alias
of native C functions for both separate module as well as global functions, as
well as three test cases for the %alias directive of the Ruby module.
Fixes:
mod.i
%module ruby_alias
%alias get_my_name "nickname,fullname";
%inline %{
const char *get_my_name(){
return "Chester Tester";
}
%}
$ swig -ruby mod.i
Segmentation fault
Signed-off-by: Joel Anderson <joelanderson333@gmail.com>
|
|/
|
|
|
| |
This silences GCC -Wconversion-null warning (on by default with recent
GCC).
|
|
|
|
|
|
|
| |
- Fixes generation of director method declarations containing C++11 ref-qualifiers.
- Fixes generation of director method declarations returning more complex types such
as const ref pointers.
- Rewrite Swig_method_call to use more up to date code in the core.
|
|
|
|
|
|
|
|
|
| |
The directorin typemaps will now generate a temporary variable
(specified after the type), such as:
%typemap(directorin) MyType (MyType *temp) { ... use temp ... }
The shared_ptr director typemaps have been fixed for use in functions
that take more than one parameter.
|
| |
|
| |
|
|
|
|
| |
From -Wimplicit-fallthrough which is now enabled by -W.
|
| |
|
|
|
|
| |
This seems to be from some left over Python kwargs / unfinished kwargs support
|
|\
| |
| |
| |
| |
| | |
* tamuratak-master:
Revert introduction of minor memory leak in Ruby wrappers
ruby: use nodeType attribute to determine whether functions are constructors. get return type each time.
|
| | |
|
| |
| |
| |
| | |
get return type each time.
|
|\ \
| |/
|/|
| |
| |
| | |
* ruby-module-docstring:
Ruby module docstring avoid memory leak
Ruby add support for docstring option in %module()
|
| | |
|
| |
| |
| |
| | |
This was already documented but not actually implemented.
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Declare function taking void * parameter to be more flexible for upcoming
smart pointer support.
|
|
|
|
|
|
|
|
| |
Suppresses warning:
error: control may reach end of non-void function [-Werror,-Wreturn-type]
The UNUSED macro is not expanded in ruby.h for rb_exc_raise for clang when
it ought to be.
For patch #512
|
| |
|
| |
|
|
|
|
|
| |
Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for
all languages with director support, not just Python and PHP.
|
|
|
|
|
|
|
|
| |
don't support kwargs.
Affects all languages except Python and Ruby.
Closes #242
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
Examples/Makefile.in
Examples/guile/Makefile.in
Lib/php/php.swg
Makefile.in
Source/CParse/parser.y
configure.ac
|
| |
| |
| |
| |
| |
| |
| |
| | |
using the unary scope operator (::) (global scope) in a template type.
Affects Python, Ruby, Ocaml.
Based on SF patch #341.
|
| |
| |
| |
| | |
FALSE->False.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
parser.y still to be fixed up
Conflicts:
Doc/Devel/engineering.html
Examples/Makefile.in
Lib/allegrocl/allegrocl.swg
Lib/csharp/csharp.swg
Lib/csharp/enums.swg
Lib/csharp/enumsimple.swg
Lib/csharp/enumtypesafe.swg
Lib/java/java.swg
Lib/python/pydocs.swg
Lib/r/rtype.swg
Source/Include/swigwarn.h
Source/Modules/octave.cxx
Source/Modules/python.cxx
Source/Modules/ruby.cxx
Source/Swig/scanner.c
Source/Swig/stype.c
Source/Swig/swig.h
configure.ac
|
| | |
|
| |
| |
| |
| | |
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
|
| |
| |
| |
| | |
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
|