diff options
| author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-24 19:13:18 -0400 |
|---|---|---|
| committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-26 19:08:58 -0400 |
| commit | 32417e99d20f007de5151d10c051805e7b795ecc (patch) | |
| tree | 27b7bf52960e01ab1d186050de92249d9667f181 /camel/tests/misc/utf7.c | |
| parent | d8a5369df5c9423198b211ac668f9e609c0259b8 (diff) | |
| download | evolution-data-server-32417e99d20f007de5151d10c051805e7b795ecc.tar.gz | |
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'camel/tests/misc/utf7.c')
| -rw-r--r-- | camel/tests/misc/utf7.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/tests/misc/utf7.c b/camel/tests/misc/utf7.c index 0aea68b47..45d8d7b9a 100644 --- a/camel/tests/misc/utf7.c +++ b/camel/tests/misc/utf7.c @@ -41,7 +41,6 @@ static struct { "\"The sayings of Confucius,\" James R. Ware, trans. &U,BTFw-:&ZYeB9FH6ckh5Pg-, 1980. (Chinese text with English translation)&Vttm+E6UfZM-, &W4tRQ066bOg-, &UxdOrA-: &Ti1XC2b4Xpc-, 1990.", { 0x0022, 0x0054, 0x0068, 0x0065, 0x0020, 0x0073, 0x0061, 0x0079, 0x0069, 0x006e, 0x0067, 0x0073, 0x0020, 0x006f, 0x0066, 0x0020, 0x0043, 0x006f, 0x006e, 0x0066, 0x0075, 0x0063, 0x0069, 0x0075, 0x0073, 0x002c, 0x0022, 0x0020, 0x004a, 0x0061, 0x006d, 0x0065, 0x0073, 0x0020, 0x0052, 0x002e, 0x0020, 0x0057, 0x0061, 0x0072, 0x0065, 0x002c, 0x0020, 0x0074, 0x0072, 0x0061, 0x006e, 0x0073, 0x002e, 0x0020, 0x0020, 0x53f0, 0x5317, 0x003a, 0x6587, 0x81f4, 0x51fa, 0x7248, 0x793e, 0x002c, 0x0020, 0x0031, 0x0039, 0x0038, 0x0030, 0x002e, 0x0020, 0x0020, 0x0028, 0x0043, 0x0068, 0x0069, 0x006e, 0x0065, 0x0073, 0x0065, 0x0020, 0x0074, 0x0065, 0x0078, 0x0074, 0x0020, 0x0077, 0x0069, 0x0074, 0x0068, 0x0020, 0x0045, 0x006e, 0x0067, 0x006c, 0x0069, 0x0073, 0x0068, 0x0020, 0x0074, 0x0072, 0x0061, 0x006e, 0x0073, 0x006c, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x0029, 0x56db, 0x66f8, 0x4e94, 0x7d93, 0x002c, 0x0020, 0x5b8b, 0x5143, 0x4eba, 0x6ce8, 0x002c, 0x0020, 0x5317, 0x4eac, 0x003a, 0x0020, 0x0020, 0x4e2d, 0x570b, 0x66f8, 0x5e97, 0x002c, 0x0020, 0x0031, 0x0039, 0x0039, 0x0030, 0x002e, } }, }; -#define TESTS_LENGTH (sizeof(tests)/sizeof(tests[0])) gint main (gint argc, gchar **argv) @@ -58,7 +57,7 @@ main (gint argc, gchar **argv) camel_test_start("UTF8, UTF7 RFC1642+RFC2060"); - for (i=0; i<TESTS_LENGTH; i++) { + for (i = 0; i < G_N_ELEMENTS (tests); i++) { camel_test_push("%2d: %s utf8 decode", i, tests[i].utf7); p = tests[i].utf8; |
