File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -17818,9 +17818,23 @@ void CLEAR_ATTRIB(SEXP x)
1781817818#if R_VERSION < R_Version(4, 6, 0)
1781917819# define DATAPTR_RW(x) DATAPTR(x)
1782017820# define R_class(x) R_data_class(x, FALSE)
17821- # define R_allocResizableVector(type, maxlen) Rf_allocVector(type, naxlen)
17822- # define R_duplicateAsResizable(x) duplicate(x)
17823- # define R_resizeVector(x, newlen) SETLENGTH(x, n)
17821+ # define R_resizeVector(x, newlen) SETLENGTH(x, newlen)
17822+
17823+ SEXP R_allocResizableVector(SEXPTYPE type, R_xlen_t maxlen)
17824+ @{
17825+ SEXP ret = Rf_allocVector(type, maxlen);
17826+ SET_TRUELENGTH(ret, maxlen);
17827+ SET_GROWABLE_BIT(ret);
17828+ return ret;
17829+ @}
17830+
17831+ SEXP R_duplicateAsResizable(SEXP x)
17832+ @{
17833+ SEXP ret = Rf_duplicate(x);
17834+ SET_TRUELENGTH(ret, Rf_xlength(x));
17835+ SET_GROWABLE_BIT(ret);
17836+ return ret;
17837+ @}
1782417838#endif
1782517839@end example
1782617840
You can’t perform that action at this time.
0 commit comments