| 1 |
/* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ |
| 2 |
|
| 3 |
typedef struct _ScaleRec *ScaleWidget; |
| 4 |
typedef struct |
| 5 |
{ |
| 6 |
short *x; |
| 7 |
unsigned short *width; |
| 8 |
} Table; |
| 9 |
typedef struct |
| 10 |
{ |
| 11 |
Table table; |
| 12 |
} ScalePart; |
| 13 |
typedef struct _ScaleRec |
| 14 |
{ |
| 15 |
ScalePart scale; |
| 16 |
} ScaleRec; |
| 17 |
static int |
| 18 |
FindPixel (ScaleWidget sw, short x, short y, |
| 19 |
short * img_x, short * img_y, unsigned long * img_pixel) |
| 20 |
{ |
| 21 |
if (sw->scale.table.x[(int) *img_x] + |
| 22 |
(short) sw->scale.table.width[(int) *img_x] < x) |
| 23 |
{ |
| 24 |
++*img_x; |
| 25 |
return FindPixel (sw, x, y, img_x, img_y, img_pixel); |
| 26 |
} |
| 27 |
} |