Skip to content

Commit fdcf72a

Browse files
committed
Merge pull request #271 from RcppCore/feature/more-attribute-hidden
more attribute_hidden use (cf #264)
2 parents 3ec55a3 + 6519936 commit fdcf72a

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

ChangeLog

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
2015-03-03 Dirk Eddelbuettel <[email protected]>
22

3-
* DESCRIPTION: Release 0.11.5
4-
* inst/NEWS.Rd: Release 0.11.5
5-
* inst/include/Rcpp/config.h: Release 0.11.5
6-
7-
* debian/*: Changes for Debian release of 0.11.5
3+
* inst/include/Rcpp/routines.h: Additional application of the
4+
'attribute_hidden' macro for a number of routines in Rcpp::internal
85

96
2015-03-02 Dirk Eddelbuettel <[email protected]>
107

inst/include/Rcpp/routines.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,32 @@ namespace Rcpp {
6767

6868
#define GET_CALLABLE(__FUN__) (Fun) R_GetCCallable( "Rcpp", __FUN__ )
6969

70-
inline const char* type2name(SEXP x){
70+
inline attribute_hidden const char* type2name(SEXP x){
7171
typedef const char* (*Fun)(SEXP);
7272
static Fun fun = GET_CALLABLE("type2name");
7373
return fun(x);
7474
}
7575

7676
namespace internal{
77-
inline unsigned long enterRNGScope(){
77+
inline attribute_hidden unsigned long enterRNGScope(){
7878
typedef unsigned long (*Fun)(void);
7979
static Fun fun = GET_CALLABLE("enterRNGScope");
8080
return fun();
8181
}
8282

83-
inline unsigned long exitRNGScope(){
83+
inline attribute_hidden unsigned long exitRNGScope(){
8484
typedef unsigned long (*Fun)(void);
8585
static Fun fun = GET_CALLABLE("exitRNGScope");
8686
return fun();
8787
}
8888

89-
inline char* get_string_buffer(){
89+
inline attribute_hidden char* get_string_buffer(){
9090
typedef char* (*Fun)(void);
9191
static Fun fun = GET_CALLABLE("get_string_buffer");
9292
return fun();
9393
}
9494

95-
inline SEXP get_Rcpp_namespace() {
95+
inline attribute_hidden SEXP get_Rcpp_namespace() {
9696
typedef SEXP (*Fun)(void);
9797
static Fun fun = GET_CALLABLE("get_Rcpp_namespace");
9898
return fun();
@@ -101,13 +101,13 @@ namespace Rcpp {
101101
}
102102

103103

104-
inline double mktime00(struct tm &tm){
104+
inline attribute_hidden double mktime00(struct tm &tm){
105105
typedef double (*Fun)(struct tm&);
106106
static Fun fun = GET_CALLABLE("mktime00");
107107
return fun(tm);
108108
}
109109

110-
inline struct tm * gmtime_(const time_t * const x){
110+
inline attribute_hidden struct tm * gmtime_(const time_t * const x){
111111
typedef struct tm* (*Fun)(const time_t* const);
112112
static Fun fun = GET_CALLABLE("gmtime_");
113113
return fun(x);

0 commit comments

Comments
 (0)