Skip to content

Commit 81e0722

Browse files
authored
made types more explicit to be consistent with the wider codebase (#7240)
1 parent 5c4dd90 commit 81e0722

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/fmelt.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -282,23 +282,23 @@ SEXP checkVars(SEXP DT, SEXP id, SEXP measure, Rboolean verbose) {
282282
}
283283

284284
struct processData {
285-
SEXP RCHK; // a 2 item list holding vars (result of checkVars) and not_NA_indices. PROTECTed up in fmelt so that preprocess() doesn't need to PROTECT. To pass rchk, #2865
286-
SEXP idcols, // convenience pointers into RCHK[0][0], RCHK[0][1] and RCHK[1] respectively
287-
variable_table, // NULL or data for variable column(s).
288-
valuecols, // list with one element per output/value column, each element is an integer vector.
289-
not_NA_indices;
290-
int *isfactor,
291-
*leach, // length of each element of the valuecols(measure.vars) list.
292-
*isidentical; // are all inputs for this value column the same type?
293-
int lids, // number of id columns.
294-
lvars, // number of variable columns.
295-
lvalues, // number of value columns.
296-
lmax, // max length of valuecols elements / number of times to repeat ids.
297-
totlen, // of output/long DT result of melt operation.
298-
nrow; // of input/wide DT to be melted.
285+
SEXP RCHK; // a 2 item list holding vars (result of checkVars) and not_NA_indices. PROTECTed up in fmelt so that preprocess() doesn't need to PROTECT. To pass rchk, #2865
286+
SEXP idcols; // convenience pointers into RCHK[0][0], RCHK[0][1] and RCHK[1] respectively
287+
SEXP variable_table; // NULL or data for variable column(s).
288+
SEXP valuecols; // list with one element per output/value column, each element is an integer vector.
289+
SEXP not_NA_indices;
290+
int *isfactor;
291+
int *leach; // length of each element of the valuecols(measure.vars) list.
292+
int *isidentical; // are all inputs for this value column the same type?
293+
int lids; // number of id columns.
294+
int lvars; // number of variable columns.
295+
int lvalues; // number of value columns.
296+
int lmax; // max length of valuecols elements / number of times to repeat ids.
297+
int totlen; // of output/long DT result of melt operation.
298+
int nrow; // of input/wide DT to be melted.
299299
SEXPTYPE *maxtype;
300-
bool measure_is_list,
301-
narm; // remove missing values?
300+
bool measure_is_list;
301+
bool narm; // remove missing values?
302302
};
303303

304304
static void preprocess(SEXP DT, SEXP id, SEXP measure, SEXP varnames, SEXP valnames, Rboolean narm, Rboolean verbose, struct processData *data) {

0 commit comments

Comments
 (0)