Lines Matching defs:conf

40 manconf_parse(struct manconf *conf, const char *file, char *pend, char *pbeg)
45 manpath_parseline(&conf->manpath, pbeg, 'm');
49 manpath_parseline(&conf->manpath, pend, 'M');
53 /* No MANPATH; use man.conf(5) only. */
56 /* Prepend man.conf(5) to MANPATH. */
60 /* Insert man.conf(5) into MANPATH. */
64 /* Append man.conf(5) to MANPATH. */
67 /* MANPATH overrides man.conf(5) completely. */
72 manpath_parseline(&conf->manpath, pbeg, '\0');
76 manconf_file(conf, file, use_path_from_file);
78 manpath_parseline(&conf->manpath, pend, '\0');
137 manconf_free(struct manconf *conf)
141 for (i = 0; i < conf->manpath.sz; i++)
142 free(conf->manpath.paths[i]);
144 free(conf->manpath.paths);
145 free(conf->output.includes);
146 free(conf->output.man);
147 free(conf->output.paper);
148 free(conf->output.style);
152 manconf_file(struct manconf *conf, const char *file, int use_path_from_file)
193 manpath_add(&conf->manpath, cp, '\0');
197 manconf_output(&conf->output, cp, 1);
208 manpath_parseline(&conf->manpath, manpath_default, '\0');
212 manconf_output(struct manoutput *conf, const char *cp, int fromfile)
253 if (conf->includes != NULL) {
254 oldval = mandoc_strdup(conf->includes);
257 conf->includes = mandoc_strdup(cp);
260 if (conf->man != NULL) {
261 oldval = mandoc_strdup(conf->man);
264 conf->man = mandoc_strdup(cp);
267 if (conf->paper != NULL) {
268 oldval = mandoc_strdup(conf->paper);
271 conf->paper = mandoc_strdup(cp);
274 if (conf->style != NULL) {
275 oldval = mandoc_strdup(conf->style);
278 conf->style = mandoc_strdup(cp);
281 if (conf->indent) {
282 mandoc_asprintf(&oldval, "%zu", conf->indent);
285 conf->indent = strtonum(cp, 0, 1000, &errstr);
292 if (conf->width) {
293 mandoc_asprintf(&oldval, "%zu", conf->width);
296 conf->width = strtonum(cp, 1, 1000, &errstr);
303 if (conf->outfilename != NULL) {
304 oldval = mandoc_strdup(conf->outfilename);
307 conf->outfilename = mandoc_strdup(cp);
310 if (conf->tagfilename != NULL) {
311 oldval = mandoc_strdup(conf->tagfilename);
314 conf->tagfilename = mandoc_strdup(cp);
321 if (conf->tag != NULL) {
322 oldval = mandoc_strdup(conf->tag);
325 conf->tag = mandoc_strdup(cp);
328 conf->fragment = 1;
331 conf->mdoc = 1;
334 conf->noval = 1;
337 conf->toc = 1;