| 191 | } |
| 192 | |
| 193 | static float8 *CheckStateArray(ArrayType *statearray, const char *caller) |
| 194 | { |
| 195 | if (ARR_NDIM(statearray) != 1 || ARR_DIMS(statearray)[0] < 1 || |
| 196 | ARR_HASNULL(statearray) || ARR_ELEMTYPE(statearray) != FLOAT8OID) { |
| 197 | elog(ERROR, "%s: expected state array", caller); |
| 198 | } |
| 199 | return (float8 *)ARR_DATA_PTR(statearray); |
| 200 | } |
| 201 | |
| 202 | extern "C" { |
| 203 |
no outgoing calls
no test coverage detected