Lines Matching defs:s
123 fprintf(stderr, "VARS: QUALIFY %s to %s\n", name, namebuf);
163 { const char *s;
170 for (s = name; *s && *s != '$'; s++);
171 if (*s == 0)
175 for (s = name, p = namebuf; *s; s++) {
184 if (*s != '$') {
185 *p++ = *s;
190 delim = *++s;
193 s++;
196 s++;
201 for (v = varbuf; *s; s++) {
202 if (isalnum(*s) || (*s == '_') ||
203 (delim && *s != delim))
204 *v++ = *s;
219 /* we may have to back up because s will be bumped */
220 if (delim == 0 || *s != delim)
221 s--;
242 fprintf(stderr, "VARS: EXPAND %s to %s\n", name, namebuf);
268 const char *s;
275 for (s = name; *s && *s != ' '; s++);
276 if (*s == 0)
288 for (s = name; *s; s++) {
289 if (*s == '"' || *s == '\\')
291 *p++ = *s;
328 char *s;
337 for (s = inbuf; savep = fgets(s, p - s, file); ) {
341 while (*s && s[1])
342 s++;
343 if (*s == '\n')
344 s--;
347 if (s < inbuf || *s != '\\')
356 s = inbuf;
360 s = savep;
365 while (isspace(*s))
366 s++;
367 if (*s == 0)
371 c = *s;
374 s++;
379 for (p = namebuf; (c = *s) != 0; s++) {
382 s++;
383 *p++ = *s;
389 s++;
398 *p++ = *s;
403 savep = *s ? s : 0;
428 { const char *s;
431 for (s = name; *s; s++)
433 switch (*s) {
438 s++;
442 switch (*s) {
447 s++;
479 { char *s, *p;
482 for (s = name; *s == '.' && s[1] == '/'; strcpy(s, &s[2]));
484 for (s = name; *s; s++) {
486 if (*s != '/')
490 while (s[1] == '.' && s[2] == '/')
491 strcpy(&s[1], &s[3]);
494 if (strncmp(s, "/../", 4) == 0) {
496 for (p = s-1; p > name && *p != '/'; p--);
500 strcpy(p, &s[3]);
523 prefix(const char *s, const char *p)
526 if (*p++ != *s++)
529 return (s);
548 { const char *s;
551 for (s = str; *s; s++);
552 s -= strlen(suf);
553 if (s < str)
558 if (*suf++ != *s++)
580 { const char *s, *p;
584 for (s = str, p = &pat[1]; *s == *p; s++, p++)