Lines Matching refs:newpath
2136 char *newpath; local
2144 newpath = emalloc(strlen(path) + newpath_len + 1);
2145 memcpy(newpath, PHAR_G(cwd), newpath_len);
2147 newpath = emalloc(strlen(path) + 2);
2148 newpath[0] = '/';
2170 efree(newpath);
2178 efree(newpath);
2182 efree(newpath);
2190 #define PREVIOUS newpath[newpath_len - 1]
2196 if (newpath[0] != '/') {
2197 newpath[newpath_len] = '\0';
2203 newpath[newpath_len++] = '/';
2204 memcpy(newpath + newpath_len, tok, ptr_length+1);
2206 memcpy(newpath + newpath_len, tok, ptr_length+1);
2231 newpath[newpath_len] = '\0';
2232 return erealloc(newpath, newpath_len + 1);