Scan call args for a URL-like route path and handler reference. */
| 2206 | |
| 2207 | /* Scan call args for a URL-like route path and handler reference. */ |
| 2208 | static bool is_path_keyword(const char *keyword) { |
| 2209 | static const char *path_keywords[] = {"prefix", "path", "route", "pattern", |
| 2210 | "url", "endpoint", "rule", "mount_path", |
| 2211 | "route_path", "url_path", NULL}; |
| 2212 | for (const char **kw = path_keywords; *kw; kw++) { |
| 2213 | if (strcmp(keyword, *kw) == 0) { |
| 2214 | return true; |
| 2215 | } |
| 2216 | } |
| 2217 | return false; |
| 2218 | } |
| 2219 | |
| 2220 | /* A route path is one line that opens with a slash. A block or line comment |
| 2221 | * opens with a slash too, and an argument list that starts with one used to |
no outgoing calls
no test coverage detected