@@ -44,13 +44,13 @@ std::string demangle(const std::string& name);
44
44
const char * short_file_name (const char * );
45
45
int * get_cache (int n);
46
46
SEXP 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);
51
51
SEXP* 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);
54
54
SEXP* get_vector_ptr (SEXP v);
55
55
const char * char_nocheck (SEXP x);
56
56
void * dataptr (SEXP x);
@@ -149,26 +149,26 @@ inline attribute_hidden SEXP stack_trace( const char *file, int line){
149
149
return fun (file, line);
150
150
}
151
151
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 );
154
154
static Fun fun = GET_CALLABLE (" get_string_elt" );
155
155
return fun (s, i);
156
156
}
157
157
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 );
160
160
static Fun fun = GET_CALLABLE (" char_get_string_elt" );
161
161
return fun (s, i);
162
162
}
163
163
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);
166
166
static Fun fun = GET_CALLABLE (" set_string_elt" );
167
167
fun (s, i, v);
168
168
}
169
169
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 *);
172
172
static Fun fun = GET_CALLABLE (" char_set_string_elt" );
173
173
fun (s, i, v );
174
174
}
@@ -179,14 +179,14 @@ inline attribute_hidden SEXP* get_string_ptr(SEXP s){
179
179
return fun (s);
180
180
}
181
181
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 );
184
184
static Fun fun = GET_CALLABLE (" get_vector_elt" );
185
185
return fun (v, i);
186
186
}
187
187
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);
190
190
static Fun fun = GET_CALLABLE (" set_vector_elt" );
191
191
fun (v, i, x);
192
192
}
0 commit comments