| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
typedef struct _IO_FILE FILE; |
| 4 |
typedef short gshort; |
| 5 |
typedef struct _GString GString; |
| 6 |
|
| 7 |
extern char *fgets(char *, int, FILE *); |
| 8 |
extern void g_string_append_c_inline (GString *, char); |
| 9 |
|
| 10 |
void verbose_text_loop (void *data) |
| 11 |
{ |
| 12 |
FILE *dev_vcs; |
| 13 |
char buf[81]; |
| 14 |
GString *buf_str; |
| 15 |
gshort i, j; |
| 16 |
while (1) |
| 17 |
{ |
| 18 |
for (i = 1; i <= 7; i++) |
| 19 |
{ |
| 20 |
while (fgets (buf, 81, dev_vcs)) |
| 21 |
{ |
| 22 |
for (j = 0; j < __builtin_strlen (buf); j++) |
| 23 |
if (buf[j] != ' ') |
| 24 |
break; |
| 25 |
for (; j < __builtin_strlen (buf); j++) |
| 26 |
g_string_append_c_inline (buf_str, buf[j]); |
| 27 |
} |
| 28 |
} |
| 29 |
} |
| 30 |
} |