Lines Matching refs:cp
167 char *cp;
170 if (NULL == (cp = realpath(dir, buf))) {
180 if (stat(cp, &sb) == -1) {
189 dirs->paths[dirs->sz++] = mandoc_strdup(cp);
215 char *line, *cp, *ep;
226 cp = line;
227 ep = cp + linelen - 1;
228 while (ep > cp && isspace((unsigned char)*ep))
230 while (isspace((unsigned char)*cp))
231 cp++;
232 if (cp == ep || *cp == '#')
237 if (cp + toklen < ep &&
238 isspace((unsigned char)cp[toklen]) &&
239 strncmp(cp, toks[tok], toklen) == 0) {
240 cp += toklen;
241 while (isspace((unsigned char)*cp))
242 cp++;
249 while (ep > cp && ep[-1] != '/')
251 if (ep == cp)
256 manpath_add(&conf->manpath, cp, 0);
260 manconf_output(&conf->output, cp);
276 manconf_output(struct manoutput *conf, const char *cp)
287 if ( ! strncmp(cp, toks[tok], len) &&
288 strchr(" = ", cp[len]) != NULL) {
289 cp += len;
290 if (*cp == '=')
291 cp++;
292 while (isspace((unsigned char)*cp))
293 cp++;
298 if (tok < 6 && *cp == '\0')
304 conf->includes = mandoc_strdup(cp);
308 conf->man = mandoc_strdup(cp);
312 conf->paper = mandoc_strdup(cp);
316 conf->style = mandoc_strdup(cp);
320 conf->indent = strtonum(cp, 0, 1000, NULL);
324 conf->width = strtonum(cp, 58, 1000, NULL);