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

Function Register_PointFuncs

src/arithmetic/point_funcs/point_funcs.c:103–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void Register_PointFuncs() {
104 SIType *types;
105 SIType ret_type;
106 AR_FuncDesc *func_desc;
107
108 types = array_new(SIType, 1);
109 array_append(types, T_NULL | T_MAP);
110 ret_type = T_NULL | T_POINT;
111 func_desc = AR_FuncDescNew("point", AR_TOPOINT, 1, 1, types, ret_type, false, true);
112 AR_RegFunc(func_desc);
113
114
115 types = array_new(SIType, 2);
116 array_append(types, T_NULL | T_POINT);
117 array_append(types, T_NULL | T_POINT);
118 ret_type = T_NULL | T_DOUBLE;
119 func_desc = AR_FuncDescNew("distance", AR_DISTANCE, 2, 2, types, ret_type, false, true);
120 AR_RegFunc(func_desc);
121}

Callers 1

AR_RegisterFuncsFunction · 0.85

Calls 2

AR_FuncDescNewFunction · 0.85
AR_RegFuncFunction · 0.85

Tested by

no test coverage detected