Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3022 | Rev 4055 | ||
|---|---|---|---|
| Line 34... | Line 34... | ||
| 34 | * @file |
34 | * @file |
| 35 | * @brief |
35 | * @brief |
| 36 | */ |
36 | */ |
| 37 | 37 | ||
| 38 | #include <stdlib.h> |
38 | #include <stdlib.h> |
| - | 39 | #include <vfs/canonify.h> |
|
| 39 | 40 | ||
| 40 | /** Token types used for tokenization of path. */ |
41 | /** Token types used for tokenization of path. */ |
| 41 | typedef enum { |
42 | typedef enum { |
| 42 | TK_INVALID, |
43 | TK_INVALID, |
| 43 | TK_SLASH, |
44 | TK_SLASH, |
| Line 123... | Line 124... | ||
| 123 | * state of canonify() to another. |
124 | * state of canonify() to another. |
| 124 | */ |
125 | */ |
| 125 | static void set_first_slash(token_t *t, token_t *tfsl, token_t *tlcomp) |
126 | static void set_first_slash(token_t *t, token_t *tfsl, token_t *tlcomp) |
| 126 | { |
127 | { |
| 127 | *tfsl = *t; |
128 | *tfsl = *t; |
| - | 129 | *tlcomp = *t; |
|
| 128 | } |
130 | } |
| 129 | static void save_component(token_t *t, token_t *tfsl, token_t *tlcomp) |
131 | static void save_component(token_t *t, token_t *tfsl, token_t *tlcomp) |
| 130 | { |
132 | { |
| 131 | *tlcomp = *t; |
133 | *tlcomp = *t; |
| 132 | } |
134 | } |