summaryrefslogtreecommitdiff
path: root/Examples/ruby
Commit message (Collapse)AuthorAgeFilesLines
* Use https for swig.org linksOlly Betts2022-10-061-1/+1
|
* Improve #include guard macrosOlly Betts2022-07-192-6/+6
| | | | | | | Avoid using reserved identifiers such as `_DOHINT_H` (fixes #1989), fix cases where the name doesn't match the filename, and make the naming more consistent and less likely to collide with include guards in other headers.
* Fix various typosluz paz2022-04-111-1/+1
| | | Found via `codespell -q 3 -L ans,anumber,ba,bae,chello,clos,cmo,coo,dout,fo,funktion,goin,inout,methid,nd,nin,nnumber,object,objekt,od,ois,packag,parm,parms,pres,statics,strack,struc,tempdate,te,thru,uint,upto,writen`
* Remove use of std::bind2nd which is removed in C++17William S Fulton2019-06-271-3/+2
|
* Misc. documentation and source comment typo fixesluz.paz2019-05-281-1/+1
| | | | | | Found via `codespell -q 3 -L uint,od,objext,ba,cmo,bae,ans,struc,fo,clos,goin,upto,thru` Revert changes in previous commit
* Misc. typosluz.paz2018-05-171-1/+1
| | | found via `codespell` and `grep`
* Examples update to support C++17: exception specification throw removalWilliam S Fulton2018-05-042-21/+2
|
* [Ruby] Pass Qnil instead of NULL to rb_funcall()Olly Betts2018-04-031-2/+2
| | | | | This silences GCC -Wconversion-null warning (on by default with recent GCC).
* Do not abort when unlinking non-data ruby objectsCyrille Faucheux2017-12-271-1/+5
| | | | | | | | | Fixes issue #1168. Remove a call to abort() (introduced by commit 0e725b5d9bd534964ae606852453df46d04037ee) made when SWIG_RubyUnlinkObjects() is called on non T_DATA objects. It can happen when the destruction of T_DATA objects is deferred: the Ruby GC first turn them to T_ZOMBIE, then calls their free method (SWIG_RubyUnlinkObjects()).
* Remove GCJ supportOlly Betts2017-10-095-81/+0
| | | | | | GCC7 dropped GCJ. Closes https://sourceforge.net/p/swig/bugs/823/
* Give same name to common exampleWilliam S Fulton2017-02-064-0/+0
|
* Warning fixes for gcc-7William S Fulton2017-02-061-0/+14
| | | | warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
* Ruby mark_function example and docs fixesWilliam S Fulton2015-09-051-2/+2
| | | | Relates to Ruby trackings hash bug #225
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-2123-80/+152
| | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
* Eliminate trivial differences between the reference examplesOlly Betts2014-11-072-11/+3
|
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-243-4/+4
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-1123-97/+97
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* Fix {python|perl5|ruby|tcl}/java examplesKarl Wette2014-05-021-4/+4
| | | | | | | | | | - in Lib/gcj/cni.i: remove JvAllocObject(), change JvCreateJavaVM() argument from void* to JvVMInitArgs* - in Examples/{python|perl5|ruby|tcl}/java/Makefile: pass full class name to gcjh, add Example.h as dependency, do not override CXX for compiling C++ sources - in Examples/python/java/example.i: add destructor to class to prevent memory loss complaint
* Whitespace cleanup of Example MakefilesKarl Wette2014-04-169-14/+13
|
* Further cleaning up of class examplesOlly Betts2014-02-242-3/+2
|
* Improve the class example for several languages.Olly Betts2014-02-234-72/+28
| | | | | Fix numerous inaccuracies in index.html (where it exists) and eliminate unnecessary differences between the example code being wrapped.
* Fix assorted comment and documentation typosOlly Betts2014-02-231-1/+1
|
* Executable bits and shebang fixesWilliam S Fulton2014-02-164-0/+0
|
* Fix gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* Disable Ruby free_function test for now.William S Fulton2013-04-211-1/+1
| | | | | | It is failing in Travis builds with 'ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]' but okay with 'ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]'. Relying on timely Garbage collection is probably flawed anyway.
* Ruby 1.9 fixes: use ruby -I in Makefile and workaround clash with 1.9 ↵William S Fulton2013-04-211-3/+3
| | | | builtin Complex numbers in the operator example.
* Ruby examples makefiles and use RUNPIPE and tidyupWilliam S Fulton2013-04-1923-117/+136
|
* Ruby example not working when run - needs fixing/checkingWilliam S Fulton2013-04-191-1/+2
|
* Fix Visual Studio examples to work when SWIG is unzipped into a directory ↵William S Fulton2013-01-159-18/+18
| | | | containing spaces.
* Ruby: Replace all occurences of STR2CSTR macro with calls to StringValuePtrKlaus Kämpf2012-12-142-4/+4
| | | | | | | | STR2CSTR was deprecated in Ruby since years and got finally removed in Ruby 1.9 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Compile fixes for ruby-1.9.xWilliam S Fulton2010-02-131-3/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fix SWIG naming conventionWilliam S Fulton2009-08-211-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* invoke using swig.exe instead of just swig in Visual Studio project filesWilliam S Fulton2009-03-209-18/+18
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11166 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Apply small documentation fix - patch #2579863William S Fulton2009-03-201-2/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11165 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove svn:executable property where applied incorrectlyWilliam S Fulton2008-11-262-0/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* fix runtime problem in Ruby std_vector exampleWilliam S Fulton2008-09-011-4/+4
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10805 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* various warning fixesWilliam S Fulton2008-06-211-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10549 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix Ruby C++ example dependencies in dsp filesWilliam S Fulton2008-06-217-14/+14
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10546 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* shadow->proxy terminlogy updateWilliam S Fulton2008-04-291-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* 64 bit portability fixesWilliam S Fulton2007-10-291-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* eol-style set to CRLFWilliam S Fulton2007-10-189-1346/+1346
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* eol-style set to CRLFWilliam S Fulton2007-10-181-65/+65
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10010 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove cvs $Header$William S Fulton2007-10-1710-21/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove obscure mpointer example and replace with member_pointer.i testcase ↵William S Fulton2007-08-096-179/+0
| | | | | | and runtime examples git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* calling the callback functions directly added to the exampleWilliam S Fulton2007-08-021-0/+4
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove cvsignore files: this is stored on svn:igonre property nowJohn Lenz2006-12-0323-235/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* use $self special variable instead of self in %extendWilliam S Fulton2006-11-083-5/+5
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Correct some commentsWilliam S Fulton2006-07-043-3/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9185 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove sprintf deprecated messageWilliam S Fulton2006-03-052-0/+10
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix for Visual Studio Express 2005 without database support installed - no ↵William S Fulton2006-02-079-36/+36
| | | | | | need to link against database libs git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8742 626c5289-ae23-0410-ae9c-e8d60b6d4f22