Lines Matching refs:directory
33 static string_list_ty *directory /* = NULL */;
36 /* Append a directory to the end of the list of directories. */
40 if (directory == NULL)
41 directory = string_list_alloc ();
42 string_list_append_unique (directory, s);
46 /* Return the nth directory, or NULL of n is out of range. */
50 /* The default value of the list consists of the single directory ".". */
51 if (directory == NULL)
54 if (n < 0 || n >= directory->nitems)
56 return directory->item[n];
65 void *saved_value = directory;
67 directory = NULL;
78 if (directory != NULL)
80 if (directory->item != NULL)
81 free (directory->item);
82 free (directory);
85 directory = saved_value;