Lines Matching refs:cp

60       char *cp;  in do_test()  local
79 cp = linebuf; in do_test()
81 locale = next_input (&cp, 1, 0); in do_test()
85 input = next_input (&cp, 0, 0); in do_test()
89 pattern = next_input (&cp, 0, 0); in do_test()
93 result_str = next_input (&cp, 0, 0); in do_test()
109 flags = next_input (&cp, 0, 1); in do_test()
168 char *cp = *line; in next_input() local
171 while (*cp == ' ' || *cp == '\t') in next_input()
172 ++cp; in next_input()
175 if (first && *cp == '#') in next_input()
178 if (*cp == '"') in next_input()
182 result = ++cp; in next_input()
183 wp = cp; in next_input()
185 while (*cp != '"' && *cp != '\0' && *cp != '\n') in next_input()
186 if (*cp == '\\') in next_input()
188 if (cp[1] == '\n' || cp[1] == '\0') in next_input()
191 ++cp; in next_input()
192 if (*cp == 't') in next_input()
194 else if (*cp == 'n') in next_input()
196 else if (*cp >= '0' && *cp <= '7') in next_input()
200 while (ndigits < 3 && *cp >= '0' && *cp <= '7') in next_input()
203 cval += (*cp++) - '0'; in next_input()
207 --cp; in next_input()
210 *wp++ = *cp; in next_input()
212 ++cp; in next_input()
215 *wp++ = *cp++; in next_input()
217 if (*cp != '"') in next_input()
220 if (wp != cp) in next_input()
225 result = cp; in next_input()
226 while (*cp != '\0' && *cp != '\n' && *cp != ' ' && *cp != '\t') in next_input()
227 ++cp; in next_input()
229 if (cp == result && ! last) in next_input()
235 *cp++ = '\0'; in next_input()
237 *line = cp; in next_input()
304 char *cp = buf; in flag_output() local
308 cp = stpcpy (cp, "FNM_PATHNAME"); in flag_output()
314 *cp++ = '|'; in flag_output()
315 cp = stpcpy (cp, "FNM_NOESCAPE"); in flag_output()
321 *cp++ = '|'; in flag_output()
322 cp = stpcpy (cp, "FNM_PERIOD"); in flag_output()
328 *cp++ = '|'; in flag_output()
329 cp = stpcpy (cp, "FNM_LEADING_DIR"); in flag_output()
335 *cp++ = '|'; in flag_output()
336 cp = stpcpy (cp, "FNM_CASEFOLD"); in flag_output()
342 *cp++ = '|'; in flag_output()
343 cp = stpcpy (cp, "FNM_EXTMATCH"); in flag_output()
346 if (cp == buf) in flag_output()
347 *cp++ = '0'; in flag_output()
348 *cp = '\0'; in flag_output()