Home
last modified time | relevance | path

Searched refs:firstnum (Results 1 – 1 of 1) sorted by relevance

/openbsd/src/usr.bin/awk/
Db.c1150 int atomlen, int firstnum, int secondnum, int special_case) in replace_repeat() argument
1155 int init_q = (firstnum == 0); /* first added char will be ? */ in replace_repeat()
1156 int n_q_reps = secondnum-firstnum; /* m>n, so reduce until {1,m-n} left */ in replace_repeat()
1161 if (firstnum > 1) { /* add room for reps 2 through firstnum */ in replace_repeat()
1162 size += atomlen*(firstnum-1); in replace_repeat()
1182 for (i = 1; i < firstnum; i++) { /* copy x reps */ in replace_repeat()
1215 int atomlen, int firstnum, int secondnum) in repeat() argument
1225 if (firstnum < 2) { in repeat()
1230 firstnum, secondnum, REPEAT_PLUS_APPENDED); in repeat()
1232 } else if (firstnum == secondnum) { /* {n} or {n,n} -> simply repeat n-1 times */ in repeat()
[all …]