| 6297 | enum { CYP_SCOPE_MAX_NAMES = 32 }; |
| 6298 | |
| 6299 | static bool scope_holds(const char *const *names, int count, const char *want) { |
| 6300 | for (int i = 0; i < count; i++) { |
| 6301 | if (names[i] && strcmp(names[i], want) == 0) { |
| 6302 | return true; |
| 6303 | } |
| 6304 | } |
| 6305 | return false; |
| 6306 | } |
| 6307 | |
| 6308 | /* Every name the query's patterns declare, plus an UNWIND alias. |
| 6309 | * Answers -1 when there are more names than the cap holds. */ |
no outgoing calls
no test coverage detected