Lines Matching full:directive
43 * options, returning the struct whose directive matches the given parameter.
51 get_config_option(struct figpar_config options[], const char *directive)
56 if (options == NULL || directive == NULL)
60 for (n = 0; options[n].directive != NULL; n++)
61 if (strcmp(options[n].directive, directive) == 0)
65 figpar_dummy_config.directive = NULL;
86 char *directive, char *value), uint16_t processing_options)
99 char *directive;
130 directive = value = 0;
145 /* skip to the beginning of a directive */
156 /* Test for EOF; if EOF then no directive was found */
169 /* Find the length of the directive */
182 /* Test for EOF, if EOF then no directive was found */
188 /* Go back to the beginning of the directive */
194 /* Allocate and read the directive into memory */
196 if ((directive = realloc(directive, n + 1)) == NULL) {
202 r = read(fd, directive, n);
213 directive[n] = '\0';
215 /* Convert directive to lower case before comparison */
217 strtolower(directive);
419 error = unknown(NULL, line, directive, value);
428 for (n = 0; options[n].directive != NULL; n++) {
429 error = fnmatch(options[n].directive, directive,
437 line, directive, value);
454 error = unknown(NULL, line, directive, value);