Lines Matching refs:dirs
122 char **dirs; in split_directories() local
147 dirs = (char **) malloc (sizeof (char *) * (num_dirs + 2)); in split_directories()
148 if (dirs == NULL) in split_directories()
157 dirs[num_dirs++] = save_string (p, 3); in split_directories()
158 if (dirs[num_dirs - 1] == NULL) in split_directories()
160 free (dirs); in split_directories()
175 dirs[num_dirs++] = save_string (q, p - q); in split_directories()
176 if (dirs[num_dirs - 1] == NULL) in split_directories()
178 dirs[num_dirs] = NULL; in split_directories()
179 free_split_directories (dirs); in split_directories()
187 dirs[num_dirs++] = save_string (q, p - 1 - q); in split_directories()
188 dirs[num_dirs] = NULL; in split_directories()
190 if (dirs[num_dirs - 1] == NULL) in split_directories()
192 free_split_directories (dirs); in split_directories()
198 return dirs; in split_directories()
204 free_split_directories (char **dirs) in free_split_directories() argument
208 if (dirs != NULL) in free_split_directories()
210 while (dirs[i] != NULL) in free_split_directories()
211 free (dirs[i++]); in free_split_directories()
213 free ((char *) dirs); in free_split_directories()