@@ -70,22 +70,22 @@ static R_ExternalMethodDef extEntries[] = {
7070 EXTDEF (class__dummyInstance),
7171
7272 {NULL , NULL , 0 }
73- } ;
73+ };
7474
7575// this is called by R_init_Rcpp that is in Module.cpp
7676void init_Rcpp_routines (DllInfo *info){
77- /* Register routines, allocate resources. */
78- R_registerRoutines (info,
79- NULL /* .C*/ ,
80- callEntries /* .Call*/ ,
81- NULL /* .Fortran */ ,
82- extEntries /* .External*/
83- );
77+ // Register routines, allocate resources.
78+ R_registerRoutines (info,
79+ NULL , // .C
80+ callEntries, // .Call
81+ NULL , // .Fortran
82+ extEntries // .External
83+ );
8484}
8585
8686void registerFunctions (){
87- using namespace Rcpp ;
88- using namespace Rcpp ::internal ;
87+ using namespace Rcpp ;
88+ using namespace Rcpp ::internal;
8989
9090 #define RCPP_REGISTER (__FUN__ ) R_RegisterCCallable( " Rcpp" , #__FUN__ , (DL_FUNC)__FUN__ );
9191 RCPP_REGISTER (rcpp_get_stack_trace)
@@ -122,18 +122,15 @@ void registerFunctions(){
122122
123123
124124extern " C" void R_unload_Rcpp (DllInfo *info) {
125- /* Release resources. */
125+ // Release resources
126126}
127127
128- extern " C" void R_init_Rcpp ( DllInfo* info){
129- setCurrentScope (0 ) ;
128+ extern " C" void R_init_Rcpp (DllInfo* info) {
129+ setCurrentScope (0 );
130130
131- registerFunctions () ;
131+ registerFunctions ();
132132
133- // init the cache
134- init_Rcpp_cache () ;
133+ init_Rcpp_cache (); // init the cache
135134
136- // init routines
137- init_Rcpp_routines (info) ;
135+ init_Rcpp_routines (info); // init routines
138136}
139-
0 commit comments