2 #define _XOPEN_SOURCE 700
14 static struct q
*new(int i
)
16 struct q
*q
= malloc(sizeof *q
);
28 for (i
= 1; i
< 10; i
++) {
35 t_error("walking queue: got %d, wanted %d\n", q
->i
, i
);
39 if (p
->p
->i
!= p
->i
-2)
40 t_error("remque: got %d, wanted %d\n", p
->p
->i
, p
->i
-2);
41 if (p
->p
->n
->i
!= p
->i
)
42 t_error("remque: got %d, wanted %d\n", p
->p
->n
->i
, p
->i
);