Lines Matching defs:directory
32 static string_list_ty *directory /* = NULL */;
35 /* Append a directory to the end of the list of directories. */
39 if (directory == NULL)
40 directory = string_list_alloc ();
41 string_list_append_unique (directory, s);
45 /* Return the nth directory, or NULL of n is out of range. */
49 /* The default value of the list consists of the single directory ".". */
50 if (directory == NULL)
53 if (n < 0 || n >= directory->nitems)
55 return directory->item[n];
64 void *saved_value = directory;
66 directory = NULL;
77 if (directory != NULL)
79 if (directory->item != NULL)
80 free (directory->item);
81 free (directory);
84 directory = (string_list_ty *) saved_value;