Skip to content

Commit 89b5556

Browse files
committed
renamed reserved identifiers
1 parent 4f2c94a commit 89b5556

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/assign.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ SEXP selfrefokwrapper(SEXP x, SEXP verbose) {
320320
return ScalarInteger(_selfrefok(x,FALSE,LOGICAL(verbose)[0]));
321321
}
322322

323-
int *_Last_updated = NULL;
323+
int *Last_updated_ = NULL;
324324

325325
SEXP assign(SEXP dt, SEXP rows, SEXP cols, SEXP newcolnames, SEXP values)
326326
{
@@ -381,7 +381,7 @@ SEXP assign(SEXP dt, SEXP rows, SEXP cols, SEXP newcolnames, SEXP values)
381381
if (numToDo==0) {
382382
// isString(cols) is exclusive to calls from set()
383383
if (!length(newcolnames) && !isString(cols)) {
384-
*_Last_updated = 0;
384+
*Last_updated_ = 0;
385385
UNPROTECT(protecti);
386386
return(dt); // all items of rows either 0 or NA. !length(newcolnames) for #759
387387
}
@@ -393,7 +393,7 @@ SEXP assign(SEXP dt, SEXP rows, SEXP cols, SEXP newcolnames, SEXP values)
393393
}
394394
if (!length(cols)) {
395395
if (verbose) Rprintf(_("length(LHS)==0; no columns to delete or assign RHS to.")); // test 1295 covers
396-
*_Last_updated = 0;
396+
*Last_updated_ = 0;
397397
UNPROTECT(protecti);
398398
return(dt);
399399
}
@@ -582,7 +582,7 @@ SEXP assign(SEXP dt, SEXP rows, SEXP cols, SEXP newcolnames, SEXP values)
582582
if (ret) warning("%s", ret); // # notranslate
583583
}
584584

585-
*_Last_updated = numToDo; // the updates have taken place with no error, so update .Last.updated now
585+
*Last_updated_ = numToDo; // the updates have taken place with no error, so update .Last.updated now
586586
assignedNames = PROTECT(allocVector(STRSXP, LENGTH(cols))); protecti++;
587587
for (int i=0; i<LENGTH(cols); ++i) SET_STRING_ELT(assignedNames,i,STRING_ELT(names,INTEGER(cols)[i]-1));
588588
key = getAttrib(dt, sym_sorted);

src/data.table.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
#define IS_FALSE(x) (TYPEOF(x)==LGLSXP && LENGTH(x)==1 && LOGICAL(x)[0]==FALSE)
4747
#define IS_TRUE_OR_FALSE(x) (TYPEOF(x)==LGLSXP && LENGTH(x)==1 && LOGICAL(x)[0]!=NA_LOGICAL)
4848

49-
#define SIZEOF(x) __sizes[TYPEOF(x)]
50-
#define TYPEORDER(x) __typeorder[x]
49+
#define SIZEOF(x) sizes__[TYPEOF(x)]
50+
#define TYPEORDER(x) typeorder__[x]
5151

5252
#ifdef MIN
5353
# undef MIN
@@ -120,8 +120,8 @@ extern SEXP sym_as_posixct;
120120
extern double NA_INT64_D;
121121
extern long long NA_INT64_LL;
122122
extern Rcomplex NA_CPLX; // initialized in init.c; see there for comments
123-
extern size_t __sizes[100]; // max appears to be FUNSXP = 99, see Rinternals.h
124-
extern size_t __typeorder[100]; // __ prefix otherwise if we use these names directly, the SIZEOF define ends up using the local one
123+
extern size_t sizes__[100]; // max appears to be FUNSXP = 99, see Rinternals.h
124+
extern size_t typeorder__[100]; // __ prefix otherwise if we use these names directly, the SIZEOF define ends up using the local one
125125

126126
long long DtoLL(double x);
127127
double LLtoD(long long x);

0 commit comments

Comments
 (0)