annotate test/cext.c @ 522:a513979e5495

*** empty log message ***
author kono
date Tue, 27 Dec 2005 17:19:49 +0900
parents a379da780856
children 2a4a40168fa4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
467
32737bad7489 fix list/tag interference
kono
parents: 427
diff changeset
1 int printf(const char *format, ...);
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
2
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
3 unsigned int u;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
4
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
5 main()
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
6 {
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
7 int i,k; unsigned uk;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
8
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
9 for(i=-3;i<4;i++) {
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
10 k = (char) i;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
11 uk = (unsigned char) i;
491
a379da780856 cond signed/unsigned
kono
parents: 467
diff changeset
12 printf("#0011:%d %u\n",k,uk);
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
13 k = (short) i;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
14 uk = (unsigned short) i;
491
a379da780856 cond signed/unsigned
kono
parents: 467
diff changeset
15 printf("#0014:%d %u\n",k,uk);
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
16 }
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
17 u = (unsigned) -23432;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
18
491
a379da780856 cond signed/unsigned
kono
parents: 467
diff changeset
19 printf("#0018:%d\n",u/(8048+5));
353
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
20 return 0;
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
21 }
41ed77cb9c67 name table reogranization, extendable cheap done.
kono
parents:
diff changeset
22