| 101 | } |
| 102 | |
| 103 | void 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 | } |
no test coverage detected