MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AR_FuncDescNew

Function AR_FuncDescNew

src/arithmetic/func_desc.c:18–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16rax *__aeRegisteredFuncs = NULL;
17
18AR_FuncDesc *AR_FuncDescNew
19(
20 const char *name,
21 AR_Func func,
22 uint min_argc,
23 uint max_argc,
24 SIType *types,
25 SIType ret_type,
26 bool internal,
27 bool reducible
28) {
29 AR_FuncDesc *desc = rm_calloc(1, sizeof(AR_FuncDesc));
30
31 desc->name = name;
32 desc->func = func;
33 desc->types = types;
34 desc->ret_type = ret_type;
35 desc->min_argc = min_argc;
36 desc->max_argc = max_argc;
37 desc->internal = internal;
38 desc->aggregate = false;
39 desc->reducible = reducible;
40
41 return desc;
42}
43
44// register an arithmetic function
45void AR_RegFunc

Callers 12

Register_TimeFuncsFunction · 0.85
Register_StringFuncsFunction · 0.85
Register_PointFuncsFunction · 0.85
Register_MapFuncsFunction · 0.85
Register_PathFuncsFunction · 0.85
Register_ListFuncsFunction · 0.85
Register_NumericFuncsFunction · 0.85
Register_BooleanFuncsFunction · 0.85
Register_EntityFuncsFunction · 0.85

Calls 1

rm_callocFunction · 0.85

Tested by

no test coverage detected