annotate gcc/testsuite/gcc.c-torture/compile/20040317-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 typedef struct _ScaleRec *ScaleWidget;
kono
parents:
diff changeset
2 typedef struct
kono
parents:
diff changeset
3 {
kono
parents:
diff changeset
4 short *x;
kono
parents:
diff changeset
5 unsigned short *width;
kono
parents:
diff changeset
6 } Table;
kono
parents:
diff changeset
7 typedef struct
kono
parents:
diff changeset
8 {
kono
parents:
diff changeset
9 Table table;
kono
parents:
diff changeset
10 } ScalePart;
kono
parents:
diff changeset
11 typedef struct _ScaleRec
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 ScalePart scale;
kono
parents:
diff changeset
14 } ScaleRec;
kono
parents:
diff changeset
15 static int
kono
parents:
diff changeset
16 FindPixel (ScaleWidget sw, short x, short y,
kono
parents:
diff changeset
17 short * img_x, short * img_y, unsigned long * img_pixel)
kono
parents:
diff changeset
18 {
kono
parents:
diff changeset
19 if (sw->scale.table.x[(int) *img_x] +
kono
parents:
diff changeset
20 (short) sw->scale.table.width[(int) *img_x] < x)
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 ++*img_x;
kono
parents:
diff changeset
23 return FindPixel (sw, x, y, img_x, img_y, img_pixel);
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25 }