Skip to content

Commit 99142f3

Browse files
reformat and realign function table (#7396)
* reformat and realign function table * add array column indent * fix space --------- Co-authored-by: Benjamin Schwendinger <benjaminschwe@gmail.com>
1 parent 781997f commit 99142f3

1 file changed

Lines changed: 117 additions & 117 deletions

File tree

src/init.c

Lines changed: 117 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -50,125 +50,125 @@ size_t r_type_sizes[100];
5050
size_t r_type_order[100];
5151

5252
static const R_CallMethodDef callMethods[] = {
53-
{"Csetattrib", (DL_FUNC)&setattrib, -1},
54-
{"Cbmerge", (DL_FUNC)&bmerge, -1},
55-
{"Cassign", (DL_FUNC)&assign, -1},
56-
{"Cdogroups", (DL_FUNC)&dogroups, -1},
57-
{"Ccopy", (DL_FUNC)&copy, 2},
58-
{"Cshallowwrapper", (DL_FUNC)&shallowwrapper, -1},
59-
{"Csetdt_nrows", (DL_FUNC)&setdt_nrows, -1},
60-
{"Calloccolwrapper", (DL_FUNC)&alloccolwrapper, -1},
61-
{"Cselfrefokwrapper", (DL_FUNC)&selfrefokwrapper, -1},
62-
{"Ctruelength", (DL_FUNC)&truelength, -1},
63-
{"Csetcharvec", (DL_FUNC)&setcharvec, -1},
64-
{"Csetcolorder", (DL_FUNC)&setcolorder, -1},
65-
{"Cchmatch", (DL_FUNC)&chmatch_R, -1},
66-
{"Cchmatchdup", (DL_FUNC)&chmatchdup_R, -1},
67-
{"Cchin", (DL_FUNC)&chin_R, -1},
68-
{"CfreadR", (DL_FUNC)&freadR, -1},
69-
{"CspillConnectionToFile", (DL_FUNC) &spillConnectionToFile, -1},
70-
{"CfwriteR", (DL_FUNC)&fwriteR, -1},
71-
{"Creorder", (DL_FUNC)&reorder, -1},
72-
{"Crbindlist", (DL_FUNC)&rbindlist, -1},
73-
{"Cvecseq", (DL_FUNC)&vecseq, -1},
74-
{"Csetlistelt", (DL_FUNC)&setlistelt, -1},
75-
{"CsetS4elt", (DL_FUNC)&setS4elt, -1},
76-
{"Caddress", (DL_FUNC)&address, -1},
77-
{"CexpandAltRep", (DL_FUNC)&expandAltRep, -1},
78-
{"Cfmelt", (DL_FUNC)&fmelt, -1},
79-
{"Cfcast", (DL_FUNC)&fcast, -1},
80-
{"Cuniqlist", (DL_FUNC)&uniqlist, -1},
81-
{"Cuniqlengths", (DL_FUNC)&uniqlengths, -1},
82-
{"CforderReuseSorting", (DL_FUNC)&forderReuseSorting, -1},
83-
{"Cforder", (DL_FUNC)&forder, -1},
84-
{"Cissorted", (DL_FUNC)&issorted, -1},
85-
{"Cgforce", (DL_FUNC)&gforce, -1},
86-
{"Cgsum", (DL_FUNC)&gsum, -1},
87-
{"Cgmean", (DL_FUNC)&gmean, -1},
88-
{"Cgmin", (DL_FUNC)&gmin, -1},
89-
{"Cgmax", (DL_FUNC)&gmax, -1},
90-
{"CisOrderedSubset", (DL_FUNC)&isOrderedSubset, -1},
91-
{"CsetNumericRounding", (DL_FUNC)&setNumericRounding, -1},
92-
{"CgetNumericRounding", (DL_FUNC)&getNumericRounding, -1},
93-
{"Cbinary", (DL_FUNC)&binary, -1},
94-
{"CsubsetDT", (DL_FUNC)&subsetDT, -1},
95-
{"CsubsetVector", (DL_FUNC)&subsetVector, -1},
96-
{"CconvertNegAndZeroIdx", (DL_FUNC)&convertNegAndZeroIdx, -1},
97-
{"Cfrank", (DL_FUNC)&frank, -1},
98-
{"Cdt_na", (DL_FUNC)&dt_na, -1},
99-
{"Callocrowwrapper", (DL_FUNC)&allocrowwrapper, 2},
100-
{"CdeleteRows", (DL_FUNC)&deleteRows, 2},
101-
{"Clookup", (DL_FUNC)&lookup, -1},
102-
{"Coverlaps", (DL_FUNC)&overlaps, -1},
103-
{"Cwhichwrapper", (DL_FUNC)&whichwrapper, -1},
104-
{"Cshift", (DL_FUNC)&shift, -1},
105-
{"Ctranspose", (DL_FUNC)&transpose, -1},
106-
{"CanyNA", (DL_FUNC)&anyNA, -1},
107-
{"CfitsInInt32R", (DL_FUNC)&fitsInInt32R, -1},
108-
{"CfitsInInt64R", (DL_FUNC)&fitsInInt64R, -1},
109-
{"Csetlevels", (DL_FUNC)&setlevels, -1},
110-
{"Crleid", (DL_FUNC)&rleid, -1},
111-
{"Cgmedian", (DL_FUNC)&gmedian, -1},
112-
{"Cgtail", (DL_FUNC)&gtail, -1},
113-
{"Cghead", (DL_FUNC)&ghead, -1},
114-
{"Cglast", (DL_FUNC)&glast, -1},
115-
{"Cgfirst", (DL_FUNC)&gfirst, -1},
116-
{"Cgnthvalue", (DL_FUNC)&gnthvalue, -1},
117-
{"Cdim", (DL_FUNC)&dim, -1},
118-
{"Cgvar", (DL_FUNC)&gvar, -1},
119-
{"Cgsd", (DL_FUNC)&gsd, -1},
120-
{"Cgprod", (DL_FUNC)&gprod, -1},
121-
{"Cgshift", (DL_FUNC)&gshift, -1},
122-
{"Cnestedid", (DL_FUNC)&nestedid, -1},
123-
{"CsetDTthreads", (DL_FUNC)&setDTthreads, -1},
124-
{"CgetDTthreads", (DL_FUNC)&getDTthreads_R, -1},
125-
{"CgetDTthreadsC", (DL_FUNC)&getDTthreads_C, -1},
126-
{"CnqRecreateIndices", (DL_FUNC)&nqRecreateIndices, -1},
127-
{"Cfsort", (DL_FUNC)&fsort, -1},
128-
{"Cinrange", (DL_FUNC)&inrange, -1},
129-
{"Cbetween", (DL_FUNC)&between, -1},
130-
{"ChasOpenMP", (DL_FUNC)&hasOpenMP, -1},
131-
{"CuniqueNlogical", (DL_FUNC)&uniqueNlogical, -1},
132-
{"CfrollfunR", (DL_FUNC)&frollfunR, -1},
133-
{"CdllVersion", (DL_FUNC)&dllVersion, -1},
134-
{"CnafillR", (DL_FUNC)&nafillR, -1},
135-
{"CcolnamesInt", (DL_FUNC)&colnamesInt, -1},
136-
{"CinitLastUpdated", (DL_FUNC)&initLastUpdated, -1},
137-
{"Ccj", (DL_FUNC)&cj, -1},
138-
{"Ccoalesce", (DL_FUNC)&coalesce, -1},
139-
{"CfifelseR", (DL_FUNC)&fifelseR, -1},
140-
{"CfcaseR", (DL_FUNC)&fcaseR, -1},
141-
{"C_lock", (DL_FUNC)&lock, -1}, // _ for these 3 to avoid Clock as in time
142-
{"C_unlock", (DL_FUNC)&unlock, -1},
143-
{"C_islocked", (DL_FUNC)&islockedR, -1},
144-
{"CtestMsgR", (DL_FUNC)&testMsgR, -1},
145-
{"C_allNAR", (DL_FUNC)&allNAR, -1},
146-
{"CcoerceAs", (DL_FUNC)&coerceAs, -1},
147-
{"Ctest_dt_win_snprintf", (DL_FUNC)&test_dt_win_snprintf, -1},
148-
{"Cdt_zlib_version", (DL_FUNC)&dt_zlib_version, -1},
149-
{"Cdt_has_zlib", (DL_FUNC)&dt_has_zlib, -1},
150-
{"Csubstitute_call_arg_namesR", (DL_FUNC)&substitute_call_arg_namesR, -1},
151-
{"CstartsWithAny", (DL_FUNC)&startsWithAny, -1},
152-
{"CconvertDate", (DL_FUNC)&convertDate, -1},
153-
{"Cnotchin", (DL_FUNC)&notchin, -1},
154-
{"Ccbindlist", (DL_FUNC)&cbindlist, -1},
155-
{"CperhapsDataTableR", (DL_FUNC)&perhapsDataTableR, -1},
156-
{"CcopyCols", (DL_FUNC)&copyCols, -1},
157-
{"Cwarn_matrix_column_r", (DL_FUNC)&warn_matrix_column_r, -1},
158-
{"Cfrev", (DL_FUNC)&frev, -1},
159-
{"CmemcpyVector", (DL_FUNC)&memcpyVector, -1},
160-
{"CmemcpyDT", (DL_FUNC)&memcpyDT, -1},
161-
{"CmemcpyVectoradaptive", (DL_FUNC)&memcpyVectoradaptive, -1},
162-
{"CmemcpyDTadaptive", (DL_FUNC)&memcpyDTadaptive, -1},
163-
{"CcopyAsGrowable", (DL_FUNC)&copyAsGrowable, -1},
164-
{"CresizeVector", (DL_FUNC)&resizeVector, -1},
165-
{"Cfrolladapt", (DL_FUNC)&frolladapt, -1},
166-
{"Cis_direct_child", (DL_FUNC)&is_direct_child, -1},
167-
{NULL, NULL, 0}};
53+
{"Csetattrib", (DL_FUNC)&setattrib, -1},
54+
{"Cbmerge", (DL_FUNC)&bmerge, -1},
55+
{"Cassign", (DL_FUNC)&assign, -1},
56+
{"Cdogroups", (DL_FUNC)&dogroups, -1},
57+
{"Ccopy", (DL_FUNC)&copy, 2},
58+
{"Cshallowwrapper", (DL_FUNC)&shallowwrapper, -1},
59+
{"Csetdt_nrows", (DL_FUNC)&setdt_nrows, -1},
60+
{"Calloccolwrapper", (DL_FUNC)&alloccolwrapper, -1},
61+
{"Cselfrefokwrapper", (DL_FUNC)&selfrefokwrapper, -1},
62+
{"Ctruelength", (DL_FUNC)&truelength, -1},
63+
{"Csetcharvec", (DL_FUNC)&setcharvec, -1},
64+
{"Csetcolorder", (DL_FUNC)&setcolorder, -1},
65+
{"Cchmatch", (DL_FUNC)&chmatch_R, -1},
66+
{"Cchmatchdup", (DL_FUNC)&chmatchdup_R, -1},
67+
{"Cchin", (DL_FUNC)&chin_R, -1},
68+
{"CfreadR", (DL_FUNC)&freadR, -1},
69+
{"CspillConnectionToFile", (DL_FUNC)&spillConnectionToFile, -1},
70+
{"CfwriteR", (DL_FUNC)&fwriteR, -1},
71+
{"Creorder", (DL_FUNC)&reorder, -1},
72+
{"Crbindlist", (DL_FUNC)&rbindlist, -1},
73+
{"Cvecseq", (DL_FUNC)&vecseq, -1},
74+
{"Csetlistelt", (DL_FUNC)&setlistelt, -1},
75+
{"CsetS4elt", (DL_FUNC)&setS4elt, -1},
76+
{"Caddress", (DL_FUNC)&address, -1},
77+
{"CexpandAltRep", (DL_FUNC)&expandAltRep, -1},
78+
{"Cfmelt", (DL_FUNC)&fmelt, -1},
79+
{"Cfcast", (DL_FUNC)&fcast, -1},
80+
{"Cuniqlist", (DL_FUNC)&uniqlist, -1},
81+
{"Cuniqlengths", (DL_FUNC)&uniqlengths, -1},
82+
{"CforderReuseSorting", (DL_FUNC)&forderReuseSorting, -1},
83+
{"Cforder", (DL_FUNC)&forder, -1},
84+
{"Cissorted", (DL_FUNC)&issorted, -1},
85+
{"Cgforce", (DL_FUNC)&gforce, -1},
86+
{"Cgsum", (DL_FUNC)&gsum, -1},
87+
{"Cgmean", (DL_FUNC)&gmean, -1},
88+
{"Cgmin", (DL_FUNC)&gmin, -1},
89+
{"Cgmax", (DL_FUNC)&gmax, -1},
90+
{"CisOrderedSubset", (DL_FUNC)&isOrderedSubset, -1},
91+
{"CsetNumericRounding", (DL_FUNC)&setNumericRounding, -1},
92+
{"CgetNumericRounding", (DL_FUNC)&getNumericRounding, -1},
93+
{"Cbinary", (DL_FUNC)&binary, -1},
94+
{"CsubsetDT", (DL_FUNC)&subsetDT, -1},
95+
{"CsubsetVector", (DL_FUNC)&subsetVector, -1},
96+
{"CconvertNegAndZeroIdx", (DL_FUNC)&convertNegAndZeroIdx, -1},
97+
{"Cfrank", (DL_FUNC)&frank, -1},
98+
{"Cdt_na", (DL_FUNC)&dt_na, -1},
99+
{"Callocrowwrapper", (DL_FUNC)&allocrowwrapper, 2},
100+
{"CdeleteRows", (DL_FUNC)&deleteRows, 2},
101+
{"Clookup", (DL_FUNC)&lookup, -1},
102+
{"Coverlaps", (DL_FUNC)&overlaps, -1},
103+
{"Cwhichwrapper", (DL_FUNC)&whichwrapper, -1},
104+
{"Cshift", (DL_FUNC)&shift, -1},
105+
{"Ctranspose", (DL_FUNC)&transpose, -1},
106+
{"CanyNA", (DL_FUNC)&anyNA, -1},
107+
{"CfitsInInt32R", (DL_FUNC)&fitsInInt32R, -1},
108+
{"CfitsInInt64R", (DL_FUNC)&fitsInInt64R, -1},
109+
{"Csetlevels", (DL_FUNC)&setlevels, -1},
110+
{"Crleid", (DL_FUNC)&rleid, -1},
111+
{"Cgmedian", (DL_FUNC)&gmedian, -1},
112+
{"Cgtail", (DL_FUNC)&gtail, -1},
113+
{"Cghead", (DL_FUNC)&ghead, -1},
114+
{"Cglast", (DL_FUNC)&glast, -1},
115+
{"Cgfirst", (DL_FUNC)&gfirst, -1},
116+
{"Cgnthvalue", (DL_FUNC)&gnthvalue, -1},
117+
{"Cdim", (DL_FUNC)&dim, -1},
118+
{"Cgvar", (DL_FUNC)&gvar, -1},
119+
{"Cgsd", (DL_FUNC)&gsd, -1},
120+
{"Cgprod", (DL_FUNC)&gprod, -1},
121+
{"Cgshift", (DL_FUNC)&gshift, -1},
122+
{"Cnestedid", (DL_FUNC)&nestedid, -1},
123+
{"CsetDTthreads", (DL_FUNC)&setDTthreads, -1},
124+
{"CgetDTthreads", (DL_FUNC)&getDTthreads_R, -1},
125+
{"CgetDTthreadsC", (DL_FUNC)&getDTthreads_C, -1},
126+
{"CnqRecreateIndices", (DL_FUNC)&nqRecreateIndices, -1},
127+
{"Cfsort", (DL_FUNC)&fsort, -1},
128+
{"Cinrange", (DL_FUNC)&inrange, -1},
129+
{"Cbetween", (DL_FUNC)&between, -1},
130+
{"ChasOpenMP", (DL_FUNC)&hasOpenMP, -1},
131+
{"CuniqueNlogical", (DL_FUNC)&uniqueNlogical, -1},
132+
{"CfrollfunR", (DL_FUNC)&frollfunR, -1},
133+
{"CdllVersion", (DL_FUNC)&dllVersion, -1},
134+
{"CnafillR", (DL_FUNC)&nafillR, -1},
135+
{"CcolnamesInt", (DL_FUNC)&colnamesInt, -1},
136+
{"CinitLastUpdated", (DL_FUNC)&initLastUpdated, -1},
137+
{"Ccj", (DL_FUNC)&cj, -1},
138+
{"Ccoalesce", (DL_FUNC)&coalesce, -1},
139+
{"CfifelseR", (DL_FUNC)&fifelseR, -1},
140+
{"CfcaseR", (DL_FUNC)&fcaseR, -1},
141+
{"C_lock", (DL_FUNC)&lock, -1}, // _ for these 3 to avoid Clock as in time
142+
{"C_unlock", (DL_FUNC)&unlock, -1},
143+
{"C_islocked", (DL_FUNC)&islockedR, -1},
144+
{"CtestMsgR", (DL_FUNC)&testMsgR, -1},
145+
{"C_allNAR", (DL_FUNC)&allNAR, -1},
146+
{"CcoerceAs", (DL_FUNC)&coerceAs, -1},
147+
{"Ctest_dt_win_snprintf", (DL_FUNC)&test_dt_win_snprintf, -1},
148+
{"Cdt_zlib_version", (DL_FUNC)&dt_zlib_version, -1},
149+
{"Cdt_has_zlib", (DL_FUNC)&dt_has_zlib, -1},
150+
{"Csubstitute_call_arg_namesR", (DL_FUNC)&substitute_call_arg_namesR, -1},
151+
{"CstartsWithAny", (DL_FUNC)&startsWithAny, -1},
152+
{"CconvertDate", (DL_FUNC)&convertDate, -1},
153+
{"Cnotchin", (DL_FUNC)&notchin, -1},
154+
{"Ccbindlist", (DL_FUNC)&cbindlist, -1},
155+
{"CperhapsDataTableR", (DL_FUNC)&perhapsDataTableR, -1},
156+
{"CcopyCols", (DL_FUNC)&copyCols, -1},
157+
{"Cwarn_matrix_column_r", (DL_FUNC)&warn_matrix_column_r, -1},
158+
{"Cfrev", (DL_FUNC)&frev, -1},
159+
{"CmemcpyVector", (DL_FUNC)&memcpyVector, -1},
160+
{"CmemcpyDT", (DL_FUNC)&memcpyDT, -1},
161+
{"CmemcpyVectoradaptive", (DL_FUNC)&memcpyVectoradaptive, -1},
162+
{"CmemcpyDTadaptive", (DL_FUNC)&memcpyDTadaptive, -1},
163+
{"CcopyAsGrowable", (DL_FUNC)&copyAsGrowable, -1},
164+
{"CresizeVector", (DL_FUNC)&resizeVector, -1},
165+
{"Cfrolladapt", (DL_FUNC)&frolladapt, -1},
166+
{"Cis_direct_child", (DL_FUNC)&is_direct_child, -1},
167+
{NULL, NULL, 0}};
168168

169169
static const R_ExternalMethodDef externalMethods[] = {
170-
{"Cfastmean", (DL_FUNC)&fastmean, -1},
171-
{NULL, NULL, 0}};
170+
{"Cfastmean", (DL_FUNC)&fastmean, -1},
171+
{NULL, NULL, 0}};
172172

173173
static void setSizes(void)
174174
{

0 commit comments

Comments
 (0)