Mercurial > hg > CbC > old > device
diff test/test2.c @ 622:682c8ec38d45
_code へ
author | kono |
---|---|
date | Thu, 07 Sep 2006 11:50:17 +0900 |
parents | ff033b46cac5 |
children | 6b7372e17970 |
line wrap: on
line diff
--- a/test/test2.c Thu Sep 07 11:50:13 2006 +0900 +++ b/test/test2.c Thu Sep 07 11:50:17 2006 +0900 @@ -1,23 +1,23 @@ #include <stdio.h> int sender_bit; -code (*ret)(int); +__code (*ret)(int); void *env; struct packet { int bit; char *msg; - code (*next)(); + __code (*next)(); }; -code print_struct(struct packet pkt) +__code print_struct(struct packet pkt) { printf("bit: %d\n", pkt.bit); printf("message: %s\n", pkt.msg); goto ret(0), env; } -code initSender(int init_bit, struct packet pkt) +__code initSender(int init_bit, struct packet pkt) { sender_bit = init_bit; pkt.next = print_struct;