Skip to content

Commit 105f0fc

Browse files
committed
add name to copyright header on modified files
1 parent 4766b9c commit 105f0fc

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

inst/include/Rcpp/internal/r_coerce.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// r_coerce.h: Rcpp R/C++ interface class library -- coercion
55
//
6-
// Copyright (C) 2010 - 2012 Dirk Eddelbuettel and Romain Francois
6+
// Copyright (C) 2010 - 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
77
//
88
// This file is part of Rcpp.
99
//
@@ -236,6 +236,7 @@ inline const char* coerce_to_string<REALSXP>(double x){
236236
// we are no longer allowed to use this:
237237
// char* tmp = const_cast<char*>( Rf_EncodeReal(x, w, d, e, '.') );
238238
// so approximate it poorly as
239+
239240
static char tmp[128];
240241
snprintf(tmp, 127, "%f", x);
241242
if (strcmp( dropTrailing0(tmp, '.'), "-0") == 0) return "0";
@@ -270,11 +271,12 @@ inline SEXP r_coerce<CPLXSXP,STRSXP>(Rcomplex from) {
270271
}
271272
template <>
272273
inline SEXP r_coerce<REALSXP,STRSXP>(double from){
273-
// handle NaN explicitly
274+
275+
// handle some special values explicitly
274276
if (R_IsNaN(from)) return Rf_mkChar("NaN");
275277
else if (from == R_PosInf) return Rf_mkChar("Inf");
276278
else if (from == R_NegInf) return Rf_mkChar("-Inf");
277-
else return Rcpp::traits::is_na<REALSXP>(from) ? NA_STRING :Rf_mkChar( coerce_to_string<REALSXP>( from ) ) ;
279+
else return Rcpp::traits::is_na<REALSXP>(from) ? NA_STRING :Rf_mkChar( coerce_to_string<REALSXP>( from ) ) ;
278280
}
279281
template <>
280282
inline SEXP r_coerce<INTSXP ,STRSXP>(int from){

inst/include/Rcpp/platform/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// compiler.h: Rcpp R/C++ interface class library -- check compiler
44
//
5-
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
66
//
77
// This file is part of Rcpp.
88
//

inst/include/Rcpp/sugar/functions/table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// table.h: Rcpp R/C++ interface class library -- table match
44
//
5-
// Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
66
//
77
// This file is part of Rcpp.
88
//

inst/include/Rcpp/sugar/tools/mapcompare.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// mapcompare.h: Rcpp R/C++ interface class library -- comparator for table
44
//
5-
// Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
66
//
77
// This file is part of Rcpp.
88
//

inst/unitTests/cpp/table.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// table.cpp: Rcpp R/C++ interface class library -- table<> unit tests
44
//
5-
// Copyright (C) 2013 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
66
//
77
// This file is part of Rcpp.
88
//

inst/unitTests/runit.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/r -t
22
#
3-
# Copyright (C) 2013 Dirk Eddelbuettel and Romain Francois
3+
# Copyright (C) 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
44
#
55
# This file is part of Rcpp.
66
#

0 commit comments

Comments
 (0)