Build the message. It names the variable and the clause, because an error * that does not say WHICH name is wrong sends the reader back to guessing. */
| 6365 | /* Build the message. It names the variable and the clause, because an error |
| 6366 | * that does not say WHICH name is wrong sends the reader back to guessing. */ |
| 6367 | static char *scope_error(const char *var, const char *clause, const char *why) { |
| 6368 | char buf[CBM_SZ_256]; |
| 6369 | snprintf(buf, sizeof(buf), "variable '%s' is not in scope for %s — %s", var, clause, why); |
| 6370 | return heap_strdup(buf); |
| 6371 | } |
| 6372 | |
| 6373 | /* The variable this item really references, or NULL when it references none. |
| 6374 | * Two items carry a placeholder in that field rather than a name the query |
no test coverage detected