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

Function AR_RegFunc

src/arithmetic/func_desc.c:45–55  ·  view source on GitHub ↗

register an arithmetic function

Source from the content-addressed store, hash-verified

43
44// register an arithmetic function
45void AR_RegFunc
46(
47 AR_FuncDesc *func
48) {
49 char lower_func_name[32];
50 size_t lower_func_name_len = 32;
51 str_tolower_ascii(func->name, lower_func_name, &lower_func_name_len);
52 int res = raxInsert(__aeRegisteredFuncs, (unsigned char *)lower_func_name,
53 lower_func_name_len, func, NULL);
54 ASSERT(res == 1);
55}
56
57inline void AR_SetPrivateDataRoutines
58(

Callers 15

Register_TimeFuncsFunction · 0.85
Register_StringFuncsFunction · 0.85
Register_PointFuncsFunction · 0.85
Register_MINFunction · 0.85
Register_STDFunction · 0.85
Register_COUNTFunction · 0.85
Register_AVGFunction · 0.85
Register_PRECENTILEFunction · 0.85
Register_SUMFunction · 0.85
Register_COLLECTFunction · 0.85
Register_MAXFunction · 0.85

Calls 1

str_tolower_asciiFunction · 0.85

Tested by

no test coverage detected