Home
last modified time | relevance | path

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

/freebsd/contrib/one-true-awk/
H A Db.c1148 int atomlen, int firstnum, int secondnum, int special_case) in replace_repeat() argument
1153 int init_q = (firstnum == 0); /* first added char will be ? */ in replace_repeat()
1154 int n_q_reps = secondnum-firstnum; /* m>n, so reduce until {1,m-n} left */ in replace_repeat()
1159 if (firstnum > 1) { /* add room for reps 2 through firstnum */ in replace_repeat()
1160 size += atomlen*(firstnum-1); in replace_repeat()
1180 for (i = 1; i < firstnum; i++) { /* copy x reps */ in replace_repeat()
1213 int atomlen, int firstnum, int secondnum) in repeat() argument
1223 if (firstnum < 2) { in repeat()
1228 firstnum, secondnum, REPEAT_PLUS_APPENDED); in repeat()
1230 } else if (firstnum == secondnum) { /* {n} or {n,n} -> simply repeat n-1 times */ in repeat()
[all …]