gistfile1.txt(文件已创建)
| @@ -0,0 +1,22 @@ | |||
| 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 | + | } | |
上一页
下一页