Lines Matching refs:newpath
2083 char *newpath; local
2091 newpath = emalloc(strlen(path) + newpath_len + 1);
2092 memcpy(newpath, PHAR_G(cwd), newpath_len);
2094 newpath = emalloc(strlen(path) + 2);
2095 newpath[0] = '/';
2117 efree(newpath);
2125 efree(newpath);
2129 efree(newpath);
2137 #define PREVIOUS newpath[newpath_len - 1]
2143 if (newpath[0] != '/') {
2144 newpath[newpath_len] = '\0';
2150 newpath[newpath_len++] = '/';
2151 memcpy(newpath + newpath_len, tok, ptr_length+1);
2153 memcpy(newpath + newpath_len, tok, ptr_length+1);
2178 newpath[newpath_len] = '\0';
2179 return erealloc(newpath, newpath_len + 1);