| 1 | /* check for step size |
| 2 | */ |
| 3 | if (ch == '/') { |
| 4 | /* eat the slash |
| 5 | */ |
| 6 | ch = get_char(file); |
| 7 | if (ch == EOF) |
| 8 | return EOF; |
| 9 | |
| 10 | /* get the step size -- note: we don't pass the |
| 11 | * names here, because the number is not an |
| 12 | * element id, it's a step size. 'low' is |
| 13 | * sent as a 0 since there is no offset either. |
| 14 | */ |
| 15 | ch = get_number(&num3, 0, PPC_NULL, ch, file); |
| 16 | if (ch == EOF) |
| 17 | return EOF; |
| 18 | } else { |
| 19 | /* no step. default==1. |
| 20 | */ |
| 21 | num3 = 1; |
| 22 | } |
| 23 |
mycroft / gist:541d690d82c14edabec9d9f24307f03b
Last active 4 months ago
Revision f55b481cf2b52a0cb1a9d3aa06bc0a568949a795