Commit Graph

290 Commits

Author SHA1 Message Date
William S Fulton 780e71e509 minor ruby cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11938 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-13 00:24:00 +00:00
William S Fulton 7af8eb954b add some missing nspace support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-10 22:00:14 +00:00
William S Fulton 1253657bb4 Add improved namespace support - the nspace feature, working for Java only at the moment.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-04 21:27:23 +00:00
William S Fulton cb64f65bae SWIG license change - Source moves to GPLv3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton 65f1e47cb2 remove some unnecessary casts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-11 21:59:16 +00:00
William S Fulton 83bd820285 Add typemaps used debugging option (-debug-tmused). Fix missing file/line numbers for typemap warnings and in the output from the -debug-tmsearch/-debug-tmused options
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-01-04 19:33:52 +00:00
William S Fulton 54b87bdd7d remove extra lookup of directorout typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-06-05 17:19:29 +00:00
William S Fulton 025d4c03c7 Fix #2676738 SWIG generated symbol name clashes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11150 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-03-12 20:41:56 +00:00
William S Fulton efa11dee52 add new %begin directive for inserting code at top of wrapper file
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-02-20 07:52:24 +00:00
Haoyu Bai 6d2aef67d9 Replaced all [const] String_or_char * to const_String_or_char_ptr, by the following command:
sed -i "s/\(const \)\?String_or_char \*/const_String_or_char_ptr /g" CParse/* Include/* Modules/* Preprocessor/* Swig/*

This is a preparation for moving to new DOH, since for strong typed objects we need the const_String_or_char_ptr class to implicit convert to and from String * or const char *.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-24 13:15:51 +00:00
William S Fulton 5ec2d8c166 All languages now define a macro in the generated C/C++ wrapper file indicating which language is being wrapped, eg #define SWIGJAVA
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 00:38:34 +00:00
William S Fulton 6fb0f48935 customised ccache support: read the CCACHE_OUTFILES env variable and if exists, the names of all generated files are written to the filename specified in the env variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 12:51:45 +00:00
William S Fulton 49675199f4 Remove some vc++ /W4 warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-21 15:23:02 +00:00
William S Fulton dfcb1640bf Remove old swig-1.1 Swig_typemap_lookup function. Rename Swig_typemap_lookup_new() to Swig_typemap_lookup()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10453 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-15 21:18:44 +00:00
William S Fulton 336b50b43d Add the optimal attribute to the out typemap for more optimal code generation when returning objects by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-14 22:12:31 +00:00
William S Fulton 46a0db50fe enforce consistency in wrap:action wrt line spacing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10411 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-01 21:47:23 +00:00
William S Fulton 2bef4d6b0c Set wrap:name for variables for use in special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 15:29:55 +00:00
William S Fulton b67e0a28a3 Fixes for $wrapname to work in %exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-25 22:07:28 +00:00
William S Fulton 300af7d484 remove some cruft possibly causing problems on old compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:49:56 +00:00
Gonzalo Garramuno a55e5f3b94 Removed useless VALUE parent = Qnil; which was
also leading to gcc warnings.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 11:47:40 +00:00
William S Fulton fa72166164 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-22 21:31:09 +00:00
William S Fulton fe042d2ebc Replace cvs $Header$ with svn $Id$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:42:11 +00:00
Olly Betts c1b5afa09b Remove bogus unused parameter from Printf call.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-23 15:15:24 +00:00
John Lenz fb51964d01 Fix a bunch of minor bugs found by Coverity scanner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 02:55:27 +00:00
Olly Betts 097ad60911 Re-add missing \n to deprecation warning for -feature, which got reverted
somehow.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9800 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:11:10 +00:00
Olly Betts baf892ed8f Fix unused parameters passed to Printf().
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9799 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:08:53 +00:00
Gonzalo Garramuno cc123a7d6d Changed -init_name to -initname per William's
request.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9798 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-09 01:03:31 +00:00
Olly Betts cecb0ff03b Add missing \n to deprecation warning for -feature, and fix terminology
"option" not "directive".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 18:09:39 +00:00
Gonzalo Garramuno 6acae8cb76 Applied Olly's patch for protoTypes, which could
previously segfault due to a wrong Printf.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9792 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-08 10:27:02 +00:00
Gonzalo Garramuno 4cd98d3865 Improved algorithm of renaming of methods with numbers at the end.
Fixed some const issues.
Improved report on overloaded function error.
Fixed some minor iterator potential problems.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9770 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-04 13:12:31 +00:00
Gonzalo Garramuno e90e28acfc Removed some bloat from repeated autodoc comments.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9769 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-04 00:37:08 +00:00
Gonzalo Garramuno 86258412fb Overloaded parameters printed for static functions
was incorrect. Fixed.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9768 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 22:55:38 +00:00
Gonzalo Garramuno 8e630bd57d Refactored the overloaded method error into
a simple auxiliary function in a .swg file.
This makes the resulting .cxx files a little
bit less bloated.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 22:45:13 +00:00
Gonzalo Garramuno f6f61e8328 Changed name of variable msg to swigMsg to avoid
potential name conflicts.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9766 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 22:20:13 +00:00
Gonzalo Garramuno 0e4b239b3e Fixed a minor issue in the test-suite regarding
trying to compile overloaded functions under C.
Fixed refcount test crashing due to autodoc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9765 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 22:08:32 +00:00
Gonzalo Garramuno 3d51df15be Improved overload method mismatch error with
printing of all available prototypes.  Similar
to a patch to python recently.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 21:01:19 +00:00
Gonzalo Garramuno 95a3ecf285 Made rdoc documentation spit the full name of
class/methods to avoid name clashes.
rdoc, unfortunately, needs patching to recognize
this properly.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9761 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 10:48:17 +00:00
Gonzalo Garramuno 7d570676f5 Better autodocs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9760 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 09:56:28 +00:00
Gonzalo Garramuno fe6df177db git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9758 626c5289-ae23-0410-ae9c-e8d60b6d4f22 2007-05-03 06:07:08 +00:00
Gonzalo Garramuno ccf65a1e56 Added support for inheritance in class description,
even if not recognized by rdoc yet.
Added autodoc flag to Makefile.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-03 00:18:15 +00:00
Gonzalo Garramuno c6ece2bb93 Made autodoc ignore numinputs=0.
Added more typemap(doc) for documenting STL
and standard ruby methods.
Added missing RUBY_SELF typemap.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 22:09:06 +00:00
Gonzalo Garramuno d3945a4d40 Improved autodoc documentation for standard ruby methods
and for STL containers, using %feature instead of
hard-coding the stuff in ruby.cxx.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9753 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 20:37:21 +00:00
Gonzalo Garramuno 75f1af27a5 Improvements to ruby's autodocumentation.
GC.start was failing when ruby was run without verbose warnings.  Fixed.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9752 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 19:39:53 +00:00
Gonzalo Garramuno ec4daa8b0e Improved rdoc generation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9751 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 13:32:18 +00:00
Gonzalo Garramuno 594483bbda STL stream support for Ruby.
docstring and autodoc support for Ruby.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-02 10:00:26 +00:00
Gonzalo Garramuno 1b349d4749 Fixed a bug with argout values being incorrectly
returned when the first argout/returned element
was an array.

Made std::pair and container returned elements be
frozen (like tuples in python).

Added the std_containers.i test from python and
created a ruby runme file for it.




git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9746 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-01 22:40:55 +00:00
Gonzalo Garramuno 806d9040c5 Updated CHANGES.current.
Fixed problems with insert() and unshift() functions in std::vector for ruby.
Updated Ruby documentation.
Improved swig_assert.rb.
Added "second" singleton to std_pair in ruby.
Modified two tests to follow the new STL stuff.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-30 09:45:10 +00:00
Gonzalo Garramuno 8931224836 Fixed incorrect outputing of free_* functions
when user had defined a new free function with
%freefunc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9706 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 19:44:23 +00:00
Gonzalo Garramuno 15393d5ead Updated "asvoid" to become "numoutputs" as documented.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-29 08:59:32 +00:00
Gonzalo Garramuno 4b8d11d0e2 Fixed ruby's newobject1 and newobject2 demos.
Added swig_assert.rb and started using it in some tests.
Added my patches to ruby.cxx, rubyrun.swg, rubystrings.swg
and rubytracking.swg [see: sourceforge]



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9691 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-28 04:20:28 +00:00
William S Fulton 5cd992dade %extend for static member varibles work in progress ... more consistent code across different language modules and memory leak fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9608 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:12:25 +00:00
William S Fulton 8c2b66a11d Fix director operator pointer casts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9536 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-09 22:32:28 +00:00
William S Fulton aa04c4c057 beautify/format source code with gnu indent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
William S Fulton 7d7a9a387e %ignore and virtual director methods fix - problem reported by Roy Sutton
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-21 23:40:28 +00:00
William S Fulton 37a08a2b03 remove unused variable in generated director code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9465 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-19 22:49:44 +00:00
Mark Gossage eedf0d5469 Removed #include <string> & <iostream> which stopped compilation under mingw
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9460 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-18 02:37:48 +00:00
William S Fulton aa47311a53 Fix #1505594 director objects not returned as director objects in %extend methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-12 19:42:21 +00:00
William S Fulton be89441352 Fix virtual conversion operators for directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9410 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 17:34:08 +00:00
William S Fulton 8d333d90f0 director error message fixes to correctly generate templated class names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-04 11:01:31 +00:00
William S Fulton 1abf0e32a6 Fix uncompileable code when overloaded methods are used with the director:except feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-03 22:52:15 +00:00
William S Fulton 95958855cf More %ignore director fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-27 21:24:44 +00:00
William S Fulton 0919c0de1e Remove debug. Fix #1505591 Throwing exceptions in extended directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-25 21:46:42 +00:00
Olly Betts 0d678283ad Replace "::" with "__" in the module name when using it for a C macro.
Fixes bug #1528354.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 22:10:03 +00:00
Olly Betts 7ae5628087 Only change _get and _set at the end of the method name (fixes bug #1545078)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-24 17:12:14 +00:00
William S Fulton f0d1d772fa - explicitcall feature removed.
- Instead of using the swig_up flag in each director method (Python, Ruby, Ocaml) to indicate
whether the explicit C++ call to the appropriate base class method or a normal
polymorphic C++ call should be made, the new approach makes one of these calls
directly from the wrapper method.
- Java/C# recursive director method calls fixed (no need for explicitcall feature to solve this now)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9275 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-13 20:55:24 +00:00
William S Fulton d9d1a7d5c4 ensure $symname is suitably expanded
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9199 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-05 21:26:10 +00:00
Olly Betts 810e52803e Fix warning from Intel C++ v9.0 on generated header file:
ruby/foo_wrap.h(14): warning #64: declaration does not declare anything
  class Swig::Director;
  ^


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-14 20:01:49 +00:00
William S Fulton 7f74b8e7a3 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus 3d6ad6e78d fix for directors, now the test-suite runs again using -directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-21 11:20:09 +00:00
Marcelo Matus 403e9ebc9e fix unused 'fail:' label warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8716 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-05 04:08:56 +00:00
Marcelo Matus 41beef4aba add fail: label for the get methods always, just in case someone write a 'varout' typemap that need it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-02 22:56:15 +00:00
Marcelo Matus 0f7b502a3b fix -external-runtime and warning arounds in subversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-01 08:37:53 +00:00
Marcelo Matus 0d6baa85ef fix -external-runtime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 00:02:58 +00:00
Marcelo Matus c198225f9d add missing goto fail when needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8587 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 04:14:57 +00:00
Marcelo Matus 3b866d286b implement the 'allowexcept' feature for global variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-28 02:36:13 +00:00
Marcelo Matus c249ad9291 fix for VC warns
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-22 00:49:43 +00:00
Marcelo Matus b29252b2b3 solve label warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-22 00:01:54 +00:00
Marcelo Matus 841b1e15bc allow to apply freearg ven when no in typemap is in place when numimputs=0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8461 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 18:01:11 +00:00
Charlie Savage 924a56a1aa Added support for Ruby bang methods. Bang methods end in exclamation points and indicate that the object being worked on will be modified in-place as opposed to being copied.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8441 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-15 00:25:48 +00:00
Charlie Savage ce83e5d091 Changed spelling mistake in autorename command line option text, also changed text a bit to be more descriptive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 22:31:20 +00:00
Marcelo Matus aadfeadad9 add the -autorename/-noautorename option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-14 21:22:32 +00:00
Charlie Savage f4d48d7bfc Moved constant renames from the c++ code to ruby.swg to reuse the new %rename functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8404 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-13 00:51:49 +00:00
Charlie Savage ee63d5276c Updated Ruby Exception handling. Classes that are specified in throws clauses, or are marked as %exceptionclass, are now inherited from rb_eRuntimeError. This allows instances of these classes to be returned to Ruby as exceptions. Thus if a C++ method throws an instance of MyException, the calling Ruby method will get back a MyException object. To see an example, look at ruby/examples/exception_class.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 19:19:19 +00:00
Charlie Savage 8c2edd7aa0 SWIG_RubyAddTracking and SWIG_RubyRemoveTracking were not being correctly generated since they were looking for featue:trackobjects on the constructor/destructor nodes as opposed to the class node.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-10 00:29:57 +00:00
Marcelo Matus 550958058d replace as needed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-09 17:41:32 +00:00
Charlie Savage 6c8dd53ee8 Reimplementation of tracking objects in Ruby. Instead of passing the $track flag to
the methods SWIG_Ruby_ConvertPtrAndOwn and SWIG_Ruby_NewPointerObj,
now tracking information is held on swig_class.  This change reduces
significantly reduces the amount of code needed in ruby.cxx, is more robust, and is
more cohesive.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8082 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-27 18:02:51 +00:00
Marcelo Matus 99f0122d0d fix for templates to avoid using the templatereduce mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-09 09:25:28 +00:00
Marcelo Matus 28df9d1049 fixes for 'typedef unsigned long size_t'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-07 07:38:09 +00:00
Marcelo Matus 3955965739 more memory leaks fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 01:16:57 +00:00
Marcelo Matus 645f95d633 fix many/many memory leaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-30 21:32:27 +00:00
Marcelo Matus f3c24eff33 fixes for directors + pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-21 21:01:35 +00:00
Marcelo Matus 14e50ff653 change director order back, bad fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 14:11:28 +00:00
Marcelo Matus 96c646da15 replace by SWIG_POINTER_OWN instead of '1'
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7737 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 09:40:29 +00:00
Marcelo Matus 520148071b fix compiler warnings and finishing transition to the option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7727 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-26 07:10:39 +00:00
Marcelo Matus 61e61a35ed uniform the name_get/name_set names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7715 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 13:18:43 +00:00
Marcelo Matus 4ae7998d58 make base director class virtual and eliminate compilation warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7712 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-25 09:33:42 +00:00
Marcelo Matus 3c65cea431 Perl added to the Unified typemap library, cleaner way to use the library, and 'normalized' macro names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7707 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-24 14:59:05 +00:00
Marcelo Matus a442049b77 exit properly when getting wrong number of args
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7700 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-21 10:45:32 +00:00
Marcelo Matus ba3efb0917 finishing the first stage of the typemap unification scheme, fixing issues with gcc and valgrind
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7692 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-20 09:47:56 +00:00
Marcelo Matus e5f50bd942 fix cleanup for ruby and make the process similar in python and tcl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7685 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 10:53:45 +00:00
Marcelo Matus 7e5e4fd1f9 massive typemap unification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7676 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-18 13:24:15 +00:00
William S Fulton 4f267297b5 remove spurious code generation (temp variables) in director code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-09 19:20:11 +00:00
William S Fulton adecc68977 Multiple inheritance warnings and ignored base classes fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 11:42:20 +00:00
William S Fulton a333a56da0 Modify following features to work as flags, so that they can be truely set and unset: kwargs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-04 20:30:41 +00:00
Charlie Savage 65a0a3b9f2 Fixed handling of constants. Previously if a %constant directive was defined before a #define it would not work correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7578 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-03 19:47:06 +00:00
William S Fulton ae1735485f Modify following features to work as flags, so that they can be truely set and unset:
predicate


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7576 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:51:11 +00:00
William S Fulton f0d9cfac38 Modify following features to work as flags, so that they can be truely set and unset:
ruby


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7574 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:46:15 +00:00
William S Fulton 32839df23b Modify following features to work as flags, so that they can be truely set and unset:
immutable


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 23:01:13 +00:00
William S Fulton 656cb7ab06 Modify following features to work as flags, so that they can be truely set and unset:
new


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-30 22:10:17 +00:00
Charlie Savage 883264b6e7 Added support for the new track objects functionality.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7497 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-23 18:05:24 +00:00
William S Fulton bed81d66d3 Better error message displayed when file cannot be opened
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +00:00
William S Fulton 509a391877 Implement support for SWIGTYPE* DISOWN typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-23 09:16:34 +00:00
William S Fulton 523d423595 minor type correction to remove unsigned/signed mismatch warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-08-17 20:35:53 +00:00
William S Fulton 815355b964 Uniform handling of SWIGEXPORT across SWIG.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-27 22:40:58 +00:00
William S Fulton f77bbe7be8 corrected directorout warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-29 20:52:53 +00:00
John Lenz 67b49825cb Add support for the -external-runtime argument and update all language modules to use it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-23 22:40:51 +00:00
William S Fulton f149a9f3d1 swig -help prints to stdout not stderr now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:04:10 +00:00
William S Fulton 07748b6b52 Fix so the following produces compileable code like it does in other language modules:
struct XYZ{};
%{ struct XYZ{}; %}


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 20:59:43 +00:00
John Lenz c3338b1a16 - Improve the runtime type sytesm
- Update all languages to new type system
- Add DohSortList function
- Fix mzscheme Examples/Makefile


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
William S Fulton 2c9b275568 Sun Workshop compiler fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 22:41:13 +00:00
Marcelo Matus b644501be6 add support for template_extmode, ie, the emitonlychildren feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6804 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-01 00:50:06 +00:00
Marcelo Matus 7ab02d3a54 support/ignore multi-inheritance directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-15 22:52:38 +00:00
Marcelo Matus 41a0b2dd59 fix def args + director + constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-08 05:31:27 +00:00
Marcelo Matus 8aaf75a78e missing fixes for nodirector methods, already fixed in python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-03 08:04:17 +00:00
William S Fulton dc12af75b6 various fixes to remove warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:10:06 +00:00
Marcelo Matus c599db0cd6 add patch 1025861 for director + exceptions, fix director + enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-30 10:58:16 +00:00
Marcelo Matus 114c703acd fix director + abstract + constructors, reported by Brian Kelley
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6478 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-22 07:25:42 +00:00
William S Fulton cd22d76972 fixes for directors and default arguments in the constructor
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6468 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-21 18:16:21 +00:00
William S Fulton 74f9ab820b compact default arguments feature (original default argument wrapping mode)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 20:59:33 +00:00
John Lenz 75e462baa8 Removed ability to share type information by C linking
All type sharing happens through a global variable in the target language.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
William S Fulton c6496845ab Fixes for director code with exception specifications on the destructor (director_exception.i testcase)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-07 19:46:04 +00:00
William S Fulton bbb97f8e6d fixes for the new default argument wrapping in director constructors and virtual methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-06 21:10:24 +00:00
Lyle Johnson 922fc2b77a Pass "false" as the value for the "disown" argument of director-wrapped
constructors (instead of 0) to disambiguate it from pointer arguments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-01 02:49:23 +00:00
Lyle Johnson ae29b50240 Corrections for Ruby 1.6 compatibility.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6190 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-01 02:37:54 +00:00
Lyle Johnson f5ae188494 Corrected a bug which caused Ruby exceptions to not be correctly
converted into C++ exceptions for director classes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-27 02:20:26 +00:00
Lyle Johnson 6b6f802ccb Committed Kou's patch for the Ruby module (for the -prefix command line
option). Also updated the Ruby docs accordingly.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-11 18:32:43 +00:00
William S Fulton bd9e48e922 -ldflags option removed for removed prebuilt runtime library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6025 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-10 16:42:54 +00:00
Lyle Johnson fea32002a2 Incorporated Kou's patch for the Ruby module's %import directive, so
that nested module names are imported correctly.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:52:43 +00:00
Marcelo Matus 553698d489 fix dirprot mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 12:20:04 +00:00
Marcelo Matus 1f6fdafc65 add support for 'throw' declarations in director classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-24 00:28:54 +00:00
William S Fulton 11561b2499 Eric Sunshine patch - Mods to work on NextStep
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 22:42:18 +00:00
Marcelo Matus 805e68d53d simple in fix the %new cleanup and the destructor handler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 08:00:49 +00:00
William S Fulton e810800783 forte warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-21 21:27:43 +00:00
Logan Johnson 42fd4b9c42 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5586 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-22 17:23:02 +00:00
Logan Johnson 944e1a77d2 Fix for virtual_poly.i test case.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5585 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-22 17:12:06 +00:00
Marcelo Matus f7e02f46fc fixed the problem with 'using' and protected mebers. now it seems to be safe to generate the protected members as protected again. all the test are running and the director_protected_runme.rb now test for the right access control
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 23:46:39 +00:00
Logan Johnson 1d86fe950b Fixed RUBY::create_command() so that we never define an instance method
by calling rb_define_protected_method(), even if the corresponding C++
member function is declared protected. The "protected" access modifier
has different interpretations in C++ and Ruby, and this was causing the
using_protected runtime test for Ruby to break.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5516 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 18:11:26 +00:00
Marcelo Matus ae75ec65dd emitting and testing protected methods for director protected members
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5512 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 10:38:34 +00:00
Marcelo Matus 634b973f31 The dirprot feature is now disabled by default. Added dirprot option and ruby runtime examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5510 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 02:52:08 +00:00
William S Fulton ed5a4bbb63 Director fix for #include "xxxx_wrap.h". Was incorrectly adding a directory in some situations. See #848335.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5438 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-28 23:08:14 +00:00