Lines Matching defs:conf
40 manconf_parse(struct manconf *conf, const char *file,
46 manpath_parseline(&conf->manpath, auxp, 'm');
50 manpath_parseline(&conf->manpath, defp, 'M');
54 /* MANPATH and man.conf(5) cooperate. */
59 /* No MANPATH; use man.conf(5) only. */
61 manconf_file(conf, file);
65 /* Prepend man.conf(5) to MANPATH. */
67 manconf_file(conf, file);
68 manpath_parseline(&conf->manpath, defp, '\0');
72 /* Append man.conf(5) to MANPATH. */
74 manpath_parseline(&conf->manpath, defp, '\0');
75 manconf_file(conf, file);
79 /* Insert man.conf(5) into MANPATH. */
83 manpath_parseline(&conf->manpath, defp, '\0');
84 manconf_file(conf, file);
85 manpath_parseline(&conf->manpath, insert + 1, '\0');
89 /* MANPATH overrides man.conf(5) completely. */
90 manpath_parseline(&conf->manpath, defp, '\0');
149 manconf_free(struct manconf *conf)
153 for (i = 0; i < conf->manpath.sz; i++)
154 free(conf->manpath.paths[i]);
156 free(conf->manpath.paths);
157 free(conf->output.includes);
158 free(conf->output.man);
159 free(conf->output.paper);
160 free(conf->output.style);
164 manconf_file(struct manconf *conf, const char *file)
211 manpath_add(&conf->manpath, cp, '\0');
215 manconf_output(&conf->output, cp, 1);
226 manpath_parseline(&conf->manpath, manpath_default, '\0');
230 manconf_output(struct manoutput *conf, const char *cp, int fromfile)
266 if (conf->includes != NULL) {
267 oldval = mandoc_strdup(conf->includes);
270 conf->includes = mandoc_strdup(cp);
273 if (conf->man != NULL) {
274 oldval = mandoc_strdup(conf->man);
277 conf->man = mandoc_strdup(cp);
280 if (conf->paper != NULL) {
281 oldval = mandoc_strdup(conf->paper);
284 conf->paper = mandoc_strdup(cp);
287 if (conf->style != NULL) {
288 oldval = mandoc_strdup(conf->style);
291 conf->style = mandoc_strdup(cp);
294 if (conf->indent) {
295 mandoc_asprintf(&oldval, "%zu", conf->indent);
298 conf->indent = strtonum(cp, 0, 1000, &errstr);
305 if (conf->width) {
306 mandoc_asprintf(&oldval, "%zu", conf->width);
309 conf->width = strtonum(cp, 1, 1000, &errstr);
316 if (conf->tag != NULL) {
317 oldval = mandoc_strdup(conf->tag);
320 conf->tag = mandoc_strdup(cp);
323 conf->fragment = 1;
326 conf->mdoc = 1;
329 conf->noval = 1;
332 conf->toc = 1;