Skip to content

Commit ef195e9

Browse files
authored
basic preprocessor formatting improvements (#7030)
1 parent 4f2c94a commit ef195e9

22 files changed

+6
-27
lines changed

src/assign.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1335,4 +1335,3 @@ SEXP setcharvec(SEXP x, SEXP which, SEXP newx)
13351335
}
13361336
return R_NilValue;
13371337
}
1338-

src/chmatch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,3 @@ system.time(ans2 <- .Call("Cchmatch2", x,y,0L)) # 0.17sec as of 1.12.0 and
169169
system.time(ans3 <- chmatchdup(x,y,0L)) # 0.09sec from 1.12.2; but goal wasn't speed rather simplified code; e.g. rbindlist.c down from 960 to 360 lines
170170
identical(ans2,ans3) # test 2000
171171
*/
172-

src/cj.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ SEXP cj(SEXP base_list) {
9999
UNPROTECT(1);
100100
return out;
101101
}
102-

src/coalesce.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,4 +172,3 @@ SEXP coalesce(SEXP x, SEXP inplaceArg) {
172172
UNPROTECT(nprotect);
173173
return first;
174174
}
175-

src/data.table.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,4 +356,3 @@ SEXP dt_has_zlib(void);
356356
SEXP startsWithAny(SEXP, SEXP, SEXP);
357357
SEXP convertDate(SEXP, SEXP);
358358
SEXP fastmean(SEXP);
359-

src/fastmean.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,3 @@ SEXP fastmean(SEXP args)
134134
COMPLEX(ans)[0].i = (double) si;
135135
break;
136136
*/
137-

src/fsort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,4 +347,3 @@ SEXP fsort(SEXP x, SEXP verboseArg) {
347347
UNPROTECT(nprotect);
348348
return(ansVec);
349349
}
350-

src/fwrite.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,3 @@ typedef struct fwriteMainArgs
120120
} fwriteMainArgs;
121121

122122
void fwriteMain(fwriteMainArgs args);
123-

src/fwriteLookups.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,3 @@ const int monthday[366] =
21372137
1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,
21382138
116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,201,202,203,204,205,206,207,208,209,210,211,212,213,
21392139
214,215,216,217,218,219,220,221,222,223,224,225,226,227,228 };
2140-
2141-
2142-

src/gsumm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,8 @@ static SEXP gminmax(SEXP x, SEXP narm, const bool min)
839839
ansd[thisgrp] = elem;
840840
}
841841
}
842-
}}
842+
}
843+
}
843844
break;
844845
case CPLXSXP:
845846
error(_("Type 'complex' has no well-defined min/max"));
@@ -972,7 +973,7 @@ static SEXP gfirstlast(SEXP x, const bool first, const int w, const bool headw)
972973
} else { \
973974
/* w>1 && !first not supported because -i in R means everything-but-i and gnthvalue */ \
974975
/* currently takes n>0 only. However, we could still support n'th from the end, somehow */ \
975-
internal_error(__func__, "unanticipated case first=%d w=%d headw=%d", first, w, headw); \
976+
internal_error(__func__, "unanticipated case first=%d w=%d headw=%d", first, w, headw); \
976977
} \
977978
}
978979
switch(TYPEOF(x)) {
@@ -1282,4 +1283,3 @@ SEXP gshift(SEXP x, SEXP nArg, SEXP fillArg, SEXP typeArg) {
12821283
// consistency with plain shift(): "strip" the list in the 1-input case, for convenience
12831284
return isVectorAtomic(x) && length(ans) == 1 ? VECTOR_ELT(ans, 0) : ans;
12841285
}
1285-

0 commit comments

Comments
 (0)