tests/2454.gvpr
raw| 1 | BEGIN { |
| 2 | double x,y; |
| 3 | int cnt, sz; |
| 4 | |
| 5 | char* rotateE (char* p) { |
| 6 | char* newpos = ""; |
| 7 | print("// starting", p); |
| 8 | while (sscanf (p, "%lf,%lf%n", &x, &y, &sz) == 2) { |
| 9 | print("// after sscanf 3 - ", sz); |
| 10 | p = substr(p, sz); |
| 11 | } |
| 12 | print("// returning: ", newpos); |
| 13 | return newpos; |
| 14 | } |
| 15 | } |
| 16 | BEG_G { |
| 17 | } |
| 18 | E { |
| 19 | $.pos = rotateE($.pos); |
| 20 | } |