Commit graph

72 commits

Author SHA1 Message Date
Joseph C Wang
fe39ef5fae suppress warning for ExternalReference print 2015-07-04 13:22:55 +08:00
William S Fulton
5fb344e0e6 R - fix duplicate generation of 'self' parameter.
Fixes director_keywords test case.
2015-06-12 20:25:00 +01:00
William S Fulton
1891b82e00 R - Call to SWIG_createNewRef in copyToC was incorrectly named.
Closes #430
2015-06-12 20:23:56 +01:00
William S Fulton
ede1e9544c Fix R Lib files and testcase failing due to new preprocessor checks
Fixes unknown preprocessor directive error introduced in #217
commit 255c929c56
These were probably intended as script comments using # when C/C++
comments using // or /* */ should have been used.
2014-10-29 23:11:09 +00:00
William S Fulton
8da4d6712d Fix Visual Studio compile error in C++ wrappers due to #include <exception> within extern "C" block.
Fixes SF #1340
2013-10-17 21:54:58 +01:00
William S Fulton
bcb7aee022 Merge branch 'master' into gsoc2009-matevz
Conflicts:
	Examples/Makefile.in
	Examples/guile/Makefile.in
	Lib/php/php.swg
	Makefile.in
	Source/CParse/parser.y
	configure.ac
2013-10-10 07:26:09 +01:00
William S Fulton
0431664b18 Guile OUTPUT typemap fix
Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
2013-09-15 10:43:49 +01:00
joequant
93b63969f9 change to allow file SEXP return values 2013-07-14 20:28:17 +08:00
William S Fulton
e805d5f925 Merge branch 'master' into gsoc2009-matevz
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
2013-01-28 07:01:37 +00:00
William S Fulton
ac74c90fb0 Add rvalue reference typemaps 2013-01-24 20:27:29 +00:00
joequant
beb40008b1 add boost_shared_ptr for R 2013-01-07 06:03:37 +08:00
joequant
308b5dab3f r changes to handle external pointers 2013-01-06 19:42:12 +08:00
William S Fulton
2c74c90430 Fix for gcc warning -Wunused-value without triggering -Wunused-parameter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13735 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-09-07 06:06:00 +00:00
Joseph Wang
33bb317b61 make ExternalReference slot ref to contain reference
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13721 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-26 03:35:04 +00:00
William S Fulton
be1c4d2e68 Revert r13601 as it breaks older versions of R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-20 21:20:19 +00:00
Joseph Wang
fad95da7f5 change R components so that pointers are visible through ref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-12 15:21:39 +00:00
Joseph Wang
c8b8d4f50d add pair to stl.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13562 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-08 14:13:37 +00:00
William S Fulton
e4a3a004ae Move contributor names to where they belong
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-11 18:05:56 +00:00
Joseph Wang
cf16f43e51 add std_vector items`
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-06-10 13:54:27 +00:00
Joseph Wang
068358da2f remove spurtious printf
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-15 12:25:50 +00:00
William S Fulton
c3fdc9fc5e Add back in %traits_enum removed in rev 12961 and probably fix iterating through std::vector wrappers of enumerations for R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-14 23:30:22 +00:00
Joseph Wang
800e00c9be check in R-swig changes that implement vector conversions to and
from std::vector


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-29 16:32:51 +00:00
Olly Betts
7e6638ab61 Fix comment typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-27 03:56:19 +00:00
Joseph Wang
a18af913fb fix typo in int definition
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-25 12:01:46 +00:00
Joseph Wang
77a353a6ba don't free if the pointer is marked as output
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-25 12:00:24 +00:00
Olly Betts
31ae30515f Remove trailing semicolon from do { ... } while(0) idiom
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-24 03:38:54 +00:00
Joseph Wang
e459c14e55 change to make funcptr.ctest work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-23 18:05:30 +00:00
Joseph Wang
5a0269c3bf fix typos and add more typecheck
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-21 15:44:01 +00:00
William S Fulton
347f2782d2 Fix missing stddef.h when %import of STL containers. Was causing compile failures witht g++-4.6.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-20 20:07:56 +00:00
Joseph Wang
efa5edbe5b use type checks to order r outputs
add noreturn exception handler


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-18 10:48:48 +00:00
Joseph Wang
7461134b80 add list to R backend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-18 09:33:53 +00:00
William S Fulton
50693941c6 Fix #3475492 - iterating through std::vector wrappers of enumerations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-03-13 07:10:24 +00:00
William S Fulton
ff8ba43ff6 R tidy up removing C++ comments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-11-30 20:09:46 +00:00
William S Fulton
e2fcd71e0c Apply patch #3239076 from Marie White fixing strings for R >= 2.7.0
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-03-29 20:14:59 +00:00
Joseph Wang
3d5d3a5bdb change call for R to use mkCharLen where it exists (R versions >=
2.7.0).  This is necessary because later versions of R (>= 2.8.0)
depreciate creation of strings through vectors because this does not
allow R to use character caches


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-09 15:39:31 +00:00
William S Fulton
f76fcb4eb4 Memory leak fix handling const std::string & inputs, reported by Will Nolan.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-05-05 05:01:22 +00:00
William S Fulton
2535297efb minor formatting change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11995 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-23 06:44:47 +00:00
William S Fulton
bdb136d611 Change typemap matching rules for the default type (SWIGTYPE) to follow template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-04-01 18:26:37 +00:00
Joseph Wang
b279cd3dde add std_map
fix compact mode


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11731 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-10 02:32:29 +00:00
Joseph Wang
e351dfceaf first pass at making fcompact work with R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11722 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-11-04 03:48:17 +00:00
Joseph Wang
809bbb89e3 put in integer fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-12 08:57:16 +00:00
Joseph Wang
4b5c817793 Fix integer handling in r. unsigned values where getting handled
incorrected as reals leading to crashes


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11052 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-11 00:08:37 +00:00
William S Fulton
6d564eb55d remove duplicate SWIGR macro
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-30 10:46:41 +00:00
Joseph Wang
67e2785cb7 change as(...,"integer") to as.integer to force conversion into integers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-12-29 22:25:55 +00:00
William S Fulton
93f0390322 UTL - Fix some incorrect acceptance of types in the STL, eg a double * element passed into a vector<int *> constructor would be accepted, but the ensuing behaviour was undefined. Now the type conversion correctly raises an exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-28 23:35:46 +00:00
Joseph Wang
553135885c change Rf_warning to warning. Looks like a typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-08-31 16:07:43 +00:00
William S Fulton
1d85e46697 add complete list of R reserved words
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 21:15:48 +00:00
William S Fulton
9c323f4a70 Add R keyword support. Rename keywords for successful compilation of Java and C# code. More consistent keyword warnings across the different languages.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-06-19 20:02:13 +00:00
Joseph Wang
43a6695de0 Fix problem that was causing breakage in pre-2.7 R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10471 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-20 02:26:01 +00:00
Joseph Wang
ebf910f755 remove numerical conversion in corecions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10425 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-05-08 02:39:52 +00:00