[Rcpp-commits] r4481 - in pkg/Rcpp: . inst/include/Rcpp/traits

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Sep 14 13:57:22 CEST 2013


Author: edd
Date: 2013-09-14 13:57:22 +0200 (Sat, 14 Sep 2013)
New Revision: 4481

Modified:
   pkg/Rcpp/ChangeLog
   pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h
   pkg/Rcpp/inst/include/Rcpp/traits/r_type_traits.h
Log:
trivial fill-in-the-gap for const double
emacs whitespace adjustment for changelog


Modified: pkg/Rcpp/ChangeLog
===================================================================
--- pkg/Rcpp/ChangeLog	2013-09-13 16:35:05 UTC (rev 4480)
+++ pkg/Rcpp/ChangeLog	2013-09-14 11:57:22 UTC (rev 4481)
@@ -1,26 +1,28 @@
-2013-09-13 Romain Francois <romain at r-enthusiasts.com>
+2013-09-13  Romain Francois <romain at r-enthusiasts.com>
 
-	* src/api.cpp : added "long long" to the capabilities function. 
-	* include/Rcpp/platform/compiler.h : demangling is definitely available
-	on all mac versions using gcc. No point is testing for OSX version. 
-	* include/Rcpp/InputParameter.h : extra layer of abstraction to allow for
-	custom handling of references etc ... used in RcppArmadillo
+	* src/api.cpp : added "long long" to the capabilities function.
+	* include/Rcpp/platform/compiler.h : demangling is definitely
+	available on all mac versions using gcc. No point is testing for OSX
+	version.
+	* include/Rcpp/InputParameter.h : extra layer of abstraction to allow
+	for custom handling of references etc ... used in RcppArmadillo
 	* src/attributes.cpp : using InputParameter
 	* DESCRIPTION: bump to 0.10.4.4
-	
-2013-09-12 Romain Francois <romain at r-enthusiasts.com>
 
-	* include/Rcpp/platform/compiler.h : patch submitted by Murray for better
-	support of long long type. 
-	* include/Rcpp/platform/compiler.h : gcc 4.2.1 has tr1/unordered_map 
-	and tr1/unordered_set. Previous test was for gcc 4.4.0 for some reason
+2013-09-12  Romain Francois <romain at r-enthusiasts.com>
 
+	* include/Rcpp/platform/compiler.h : patch submitted by Murray for
+	better support of long long type.
+	* include/Rcpp/platform/compiler.h : gcc 4.2.1 has tr1/unordered_map
+	and tr1/unordered_set. Previous test was for gcc 4.4.0 for some
+	reason
+
 2013-08-31  Dirk Eddelbuettel  <edd at debian.org>
 
 	* inst/doc/*: Moved all vignettes to vignettes/*
 	* vignettes/*: Minor updates to some vignettes
 
-2013-08-22 Romain Francois <romain at r-enthusiasts.com>
+2013-08-22  Romain Francois <romain at r-enthusiasts.com>
 
         * include/Rcpp/traits/is_primitive.h : new trait to identify if a
 	type is primitive, this is a shortcut of using r_type_traits and
@@ -42,7 +44,7 @@
 	where T is not a primitive
         * include/Rcpp/api/meat/export.h : implementation in meat because it needs as
 
-2013-08-01 Romain Francois <romain at r-enthusiasts.com>
+2013-08-01  Romain Francois <romain at r-enthusiasts.com>
 
         * unitTests/cpp/wstring.cpp: fix to re-enable wstring test suite.
         * unitTests/runit.wstring.R: re-enable the wstring test suite.

Modified: pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h	2013-09-13 16:35:05 UTC (rev 4480)
+++ pkg/Rcpp/inst/include/Rcpp/traits/r_sexptype_traits.h	2013-09-14 11:57:22 UTC (rev 4481)
@@ -34,6 +34,7 @@
 template<> struct r_sexptype_traits<int>{ enum{ rtype = INTSXP } ; } ;
 template<> struct r_sexptype_traits<const int>{ enum{ rtype = INTSXP } ; } ;
 template<> struct r_sexptype_traits<double>{ enum{ rtype = REALSXP } ; } ;
+template<> struct r_sexptype_traits<const double>{ enum{ rtype = REALSXP } ; } ;
 template<> struct r_sexptype_traits<bool>{ enum{ rtype = LGLSXP } ; } ;
 template<> struct r_sexptype_traits<std::string>{ enum{ rtype = STRSXP } ; } ;
 template<> struct r_sexptype_traits<Rcomplex>{ enum{ rtype = CPLXSXP } ; } ;

Modified: pkg/Rcpp/inst/include/Rcpp/traits/r_type_traits.h
===================================================================
--- pkg/Rcpp/inst/include/Rcpp/traits/r_type_traits.h	2013-09-13 16:35:05 UTC (rev 4480)
+++ pkg/Rcpp/inst/include/Rcpp/traits/r_type_traits.h	2013-09-14 11:57:22 UTC (rev 4481)
@@ -136,6 +136,7 @@
 template<> struct r_type_traits<int>{ typedef r_type_primitive_tag r_category ; } ;
 template<> struct r_type_traits<const int>{ typedef r_type_primitive_tag r_category ; } ;
 template<> struct r_type_traits<double>{ typedef r_type_primitive_tag r_category ; } ;
+template<> struct r_type_traits<const double>{ typedef r_type_primitive_tag r_category ; } ;
 template<> struct r_type_traits<Rbyte>{ typedef r_type_primitive_tag r_category ; } ;
 template<> struct r_type_traits<Rcomplex>{ typedef r_type_primitive_tag r_category ; } ;
 template<> struct r_type_traits<bool>{ typedef r_type_primitive_tag r_category ; } ;



More information about the Rcpp-commits mailing list