Lines Matching refs:seq
94 struct seq {
107 static struct seq *seq = NULL;
142 if (slot < seq->first) {
151 if (seq->count > 0) {
156 sprintf(tty.ty_name, seq->fmt, seq->index++);
158 seq->count--;
162 if (slot == seq->first) {
264 /* seq->first is already less than slot, so just leave it */
265 seq->count = e - b + 1;
266 seq->index = b;
274 sprintf(seq->fmt, "%.*s%%0%d%c%s",
283 seq->first = newslot;
286 if (seq->count > 0) /* restart if we are doing a sequence */
345 /* initialize seq and the three regexp patterns */
346 if (!seq) {
358 if ((seq = malloc(sizeof(struct seq))) == NULL) {
365 seq->first = seq->count = 0;