Lines Matching defs:n
27 * this module expands things like $file.$n in "templates".
173 (void) fprintf(stream, "%20.20s %s\n", lhs, (char *)rhs);
188 * kw_expand -- expand src into dst with given n value for $n (or $N)
190 * n == -1 means expand src into a reglob
193 * returns true if template contains $n or $N (implying rotation of files)
196 kw_expand(struct fn *src, struct fn *dst, int n, boolean_t gz)
215 if (n < 0)
221 if (n < 0)
226 if (n < 0)
235 if (n < 0)
246 case 'n':
250 * we've found $n or $N, if we're
253 * expand the keyword to the n
257 if (n < 0)
262 (c == 'n') ? n : n + 1);
279 if (n < 0)
293 if (n < 0) {
379 if (n < 0)
416 int n;
418 for (n = -1; n < 2; n++) {
421 printf("expand<%s> n %d hasn %d ",
422 argv[i], n, kw_expand(src, dst, n, B_FALSE));
423 printf("result <%s>\n", fn_s(dst));