[ctypes-commit] ctypes/source _ctypes_test.c,1.32,1.33
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-10-13 19:05:50
|
Update of /cvsroot/ctypes/ctypes/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29752 Modified Files: _ctypes_test.c Log Message: Sometimes, more compact code is more readable. Index: _ctypes_test.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/_ctypes_test.c,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** _ctypes_test.c 12 Oct 2004 19:22:15 -0000 1.32 --- _ctypes_test.c 13 Oct 2004 19:05:40 -0000 1.33 *************** *** 334,370 **** { switch (name) { ! case 'A': ! return bits->A; ! case 'B': ! return bits->B; ! case 'C': ! return bits->C; ! case 'D': ! return bits->D; ! case 'E': ! return bits->E; ! case 'F': ! return bits->F; ! case 'G': ! return bits->G; ! case 'H': ! return bits->H; ! case 'I': ! return bits->I; ! case 'M': ! return bits->M; ! case 'N': ! return bits->N; ! case 'O': ! return bits->O; ! case 'P': ! return bits->P; ! case 'Q': ! return bits->Q; ! case 'R': ! return bits->R; ! case 'S': ! return bits->S; } return 0; --- 334,354 ---- { switch (name) { ! case 'A': return bits->A; ! case 'B': return bits->B; ! case 'C': return bits->C; ! case 'D': return bits->D; ! case 'E': return bits->E; ! case 'F': return bits->F; ! case 'G': return bits->G; ! case 'H': return bits->H; ! case 'I': return bits->I; ! case 'M': return bits->M; ! case 'N': return bits->N; ! case 'O': return bits->O; ! case 'P': return bits->P; ! case 'Q': return bits->Q; ! case 'R': return bits->R; ! case 'S': return bits->S; } return 0; |