Lines Matching defs:last
42 char* last;
67 last = ptr;
68 while (!IS_SLASH(*last) && last != normalized_path) {
69 last--;
72 /* If the result is currently empty, or the last prior path is also '..'
73 then output '..'. Otherwise, remove the last path segment. */
75 (last == ptr - 2 && last[0] == '.' && last[1] == '.') ||
76 (last == ptr - 3 && last[0] == '/' &&
77 last[1] == '.' && last[2] == '.')) {
88 /* Strip the last segment, but make sure not to strip the '/' if that
90 if (last == normalized_path && *last == '/')
91 ptr = last + 1;
93 ptr = last;