FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / 990524-1.c
blob8b1017245033d7d9fa149c1356dcc2f98c687dc7
1 /* { dg-do compile { target i?86-*-* } } */
2 /* { dg-options "-O2 -march=pentiumpro" } */
4 typedef struct t_anim_info {
5 char *new_filename;
6 long first_frame_nr;
7 } t_anim_info;
8 static int
9 p_frames_to_multilayer(t_anim_info *ainfo_ptr,
10 long range_from, long range_to)
12 long l_cur_frame_nr;
13 long l_step, l_begin, l_end;
14 int l_tmp_image_id;
15 int l_new_image_id;
16 if(range_from > range_to)
18 l_step = -1;
19 if(range_to < ainfo_ptr->first_frame_nr)
20 { l_begin = ainfo_ptr->first_frame_nr;
23 else
25 l_step = 1;
27 l_cur_frame_nr = l_begin;
28 while(1)
30 if(ainfo_ptr->new_filename == ((void *)0) )
31 if(l_tmp_image_id < 0)
32 gimp_image_delete(l_tmp_image_id);
33 if(l_cur_frame_nr == l_end)
34 break;
35 l_cur_frame_nr += l_step;
37 return 0;