@@ -44,13 +44,13 @@ std::string demangle(const std::string& name);
4444const char * short_file_name (const char * );
4545int * get_cache (int n);
4646SEXP stack_trace ( const char *file, int line);
47- SEXP get_string_elt (SEXP s, int i);
48- const char * char_get_string_elt (SEXP s, int i);
49- void set_string_elt (SEXP s, int i, SEXP v);
50- void char_set_string_elt (SEXP s, int i, const char * v);
47+ SEXP get_string_elt (SEXP s, R_xlen_t i);
48+ const char * char_get_string_elt (SEXP s, R_xlen_t i);
49+ void set_string_elt (SEXP s, R_xlen_t i, SEXP v);
50+ void char_set_string_elt (SEXP s, R_xlen_t i, const char * v);
5151SEXP* get_string_ptr (SEXP s);
52- SEXP get_vector_elt (SEXP v, int i);
53- void set_vector_elt (SEXP v, int i, SEXP x);
52+ SEXP get_vector_elt (SEXP v, R_xlen_t i);
53+ void set_vector_elt (SEXP v, R_xlen_t i, SEXP x);
5454SEXP* get_vector_ptr (SEXP v);
5555const char * char_nocheck (SEXP x);
5656void * dataptr (SEXP x);
@@ -149,26 +149,26 @@ inline attribute_hidden SEXP stack_trace( const char *file, int line){
149149 return fun (file, line);
150150}
151151
152- inline attribute_hidden SEXP get_string_elt (SEXP s, int i){
153- typedef SEXP (*Fun)(SEXP, int );
152+ inline attribute_hidden SEXP get_string_elt (SEXP s, R_xlen_t i){
153+ typedef SEXP (*Fun)(SEXP, R_xlen_t );
154154 static Fun fun = GET_CALLABLE (" get_string_elt" );
155155 return fun (s, i);
156156}
157157
158- inline attribute_hidden const char * char_get_string_elt (SEXP s, int i){
159- typedef const char * (*Fun)(SEXP, int );
158+ inline attribute_hidden const char * char_get_string_elt (SEXP s, R_xlen_t i){
159+ typedef const char * (*Fun)(SEXP, R_xlen_t );
160160 static Fun fun = GET_CALLABLE (" char_get_string_elt" );
161161 return fun (s, i);
162162}
163163
164- inline attribute_hidden void set_string_elt (SEXP s, int i, SEXP v){
165- typedef void (*Fun)(SEXP,int , SEXP);
164+ inline attribute_hidden void set_string_elt (SEXP s, R_xlen_t i, SEXP v){
165+ typedef void (*Fun)(SEXP, R_xlen_t, SEXP);
166166 static Fun fun = GET_CALLABLE (" set_string_elt" );
167167 fun (s, i, v);
168168}
169169
170- inline attribute_hidden void char_set_string_elt (SEXP s, int i, const char * v){
171- typedef void (*Fun)(SEXP,int , const char *);
170+ inline attribute_hidden void char_set_string_elt (SEXP s, R_xlen_t i, const char * v){
171+ typedef void (*Fun)(SEXP, R_xlen_t , const char *);
172172 static Fun fun = GET_CALLABLE (" char_set_string_elt" );
173173 fun (s, i, v );
174174}
@@ -179,14 +179,14 @@ inline attribute_hidden SEXP* get_string_ptr(SEXP s){
179179 return fun (s);
180180}
181181
182- inline attribute_hidden SEXP get_vector_elt (SEXP v, int i){
183- typedef SEXP (*Fun)(SEXP, int );
182+ inline attribute_hidden SEXP get_vector_elt (SEXP v, R_xlen_t i){
183+ typedef SEXP (*Fun)(SEXP, R_xlen_t );
184184 static Fun fun = GET_CALLABLE (" get_vector_elt" );
185185 return fun (v, i);
186186}
187187
188- inline attribute_hidden void set_vector_elt (SEXP v, int i, SEXP x){
189- typedef void (*Fun)(SEXP, int , SEXP);
188+ inline attribute_hidden void set_vector_elt (SEXP v, R_xlen_t i, SEXP x){
189+ typedef void (*Fun)(SEXP, R_xlen_t , SEXP);
190190 static Fun fun = GET_CALLABLE (" set_vector_elt" );
191191 fun (v, i, x);
192192}
0 commit comments