Lines Matching refs:newpath_len
2102 size_t newpath_len; local
2108 newpath_len = PHAR_G(cwd_len);
2109 newpath = emalloc(strlen(path) + newpath_len + 1);
2110 memcpy(newpath, PHAR_G(cwd), newpath_len);
2114 newpath_len = 1;
2155 #define PREVIOUS newpath[newpath_len - 1]
2157 while (newpath_len > 1 && !IS_BACKSLASH(PREVIOUS)) {
2158 newpath_len--;
2162 newpath[newpath_len] = '\0';
2163 } else if (newpath_len > 1) {
2164 --newpath_len;
2167 if (newpath_len > 1) {
2168 newpath[newpath_len++] = '/';
2169 memcpy(newpath + newpath_len, tok, ptr_length+1);
2171 memcpy(newpath + newpath_len, tok, ptr_length+1);
2174 newpath_len += ptr_length;
2195 *new_len = newpath_len;
2196 newpath[newpath_len] = '\0';
2197 return erealloc(newpath, newpath_len + 1);