| 202 | */ |
| 203 | |
| 204 | static void normalize_path( string * path ) |
| 205 | { |
| 206 | char * s; |
| 207 | for ( s = path->value; s < path->value + path->size; ++s ) |
| 208 | *s = *s == '/' ? '\\' : tolower( *s ); |
| 209 | /* Strip trailing "/". */ |
| 210 | if ( path->size && path->size != 3 && path->value[ path->size - 1 ] == '\\' |
| 211 | ) |
| 212 | string_pop_back( path ); |
| 213 | } |
| 214 | |
| 215 | |
| 216 | static path_key_entry * path_key( OBJECT * const path, |
no test coverage detected