* Calculate the length of a pathname returned by `make_traverse_path`. * This utilizes the memory structure of a tree entry to avoid the * overhead of using a generic strlen(). */
| 213 | * overhead of using a generic strlen(). |
| 214 | */ |
| 215 | static inline size_t traverse_path_len(const struct traverse_info *info, |
| 216 | size_t namelen) |
| 217 | { |
| 218 | return st_add(info->pathlen, namelen); |
| 219 | } |
| 220 | |
| 221 | /* in general, positive means "kind of interesting" */ |
| 222 | enum interesting { |
no test coverage detected