* Return the element name at the top of the path stack. This is the * item that we are currently trying to match on. */
| 223 | * item that we are currently trying to match on. |
| 224 | */ |
| 225 | static const char * |
| 226 | csv_path_top (csv_private_t *csv, ssize_t delta) |
| 227 | { |
| 228 | if (!(csv->c_flags & CF_HAS_PATH) || csv->c_path == NULL) |
| 229 | return NULL; |
| 230 | |
| 231 | ssize_t cur = csv->c_path_cur + delta; |
| 232 | |
| 233 | if (cur < 0) |
| 234 | return NULL; |
| 235 | |
| 236 | return csv->c_path[cur].pf_name; |
| 237 | } |
| 238 | |
| 239 | /* |
| 240 | * Underimplemented stack functionality |
no outgoing calls
no test coverage detected