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
Joseph Wang
5993327dc0
remove numeric coercion which seems to be unnecessary
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 19:40:07 +00:00
Joseph Wang
25f30ff1b1
Add R 2.7 calls
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 07:12:26 +00:00
Joseph Wang
fd6be0ba40
Put in ifdef for 2.7
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 06:33:08 +00:00
Joseph Wang
7b37f04c7a
change CHAR method since mkCharEnc doesn't do what I thought it did in 2.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 05:50:13 +00:00
Joseph Wang
9dde51fcf3
Set S4 flag which should fix the problem in R 2.6 that some S4 methods
...
are not working.
Remove 2.6 warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-12 06:16:20 +00:00
William S Fulton
a91e4906b5
Add newmemory parameter for SWIG_TypeCast
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 00:35:11 +00:00
William S Fulton
22126ca549
Fix off by 1 memory allocation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:30:01 +00:00
William S Fulton
06e014fdbe
Fix C errors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:47:44 +00:00
William S Fulton
68f9f87e8d
Fix C errors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:47:11 +00:00
William S Fulton
7b82429333
Use STRICT_R_HEADERS to remove macro conflicts with windows header files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:46:16 +00:00
William S Fulton
0362693bd2
Go back to extern C around R headers as per recommendation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:21:11 +00:00
William S Fulton
9bc992c0e4
Replace strdup - it is not portable. VC++ warning fixes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:14:51 +00:00