Lines Matching refs:newpath
2145 char *newpath; local
2153 newpath = emalloc(strlen(path) + newpath_len + 1);
2154 memcpy(newpath, PHAR_G(cwd), newpath_len);
2156 newpath = emalloc(strlen(path) + 2);
2157 newpath[0] = '/';
2179 efree(newpath);
2187 efree(newpath);
2191 efree(newpath);
2199 #define PREVIOUS newpath[newpath_len - 1]
2205 if (newpath[0] != '/') {
2206 newpath[newpath_len] = '\0';
2212 newpath[newpath_len++] = '/';
2213 memcpy(newpath + newpath_len, tok, ptr_length+1);
2215 memcpy(newpath + newpath_len, tok, ptr_length+1);
2240 newpath[newpath_len] = '\0';
2241 return erealloc(newpath, newpath_len + 1);