diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /iconv-detect.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'iconv-detect.c')
-rw-r--r-- | iconv-detect.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/iconv-detect.c b/iconv-detect.c index 4eb6597225..7cd6bde85e 100644 --- a/iconv-detect.c +++ b/iconv-detect.c @@ -52,9 +52,9 @@ enum { typedef struct { - char *charset; - char *format; - int id; + gchar *charset; + gchar *format; + gint id; } CharInfo; @@ -67,7 +67,7 @@ static CharInfo iso8859_tests[] = { { "8859-1", "%d-%d", NO_ISO_D_DASH_D }, }; -static int num_iso8859_tests = sizeof (iso8859_tests) / sizeof (CharInfo); +static gint num_iso8859_tests = sizeof (iso8859_tests) / sizeof (CharInfo); static CharInfo iso2022_tests[] = { { "iso-2022-jp", "iso-%d-%s", ISO_DASH_D_DASH_S_LOWER }, @@ -75,7 +75,7 @@ static CharInfo iso2022_tests[] = { { "ISO2022-JP", "ISO%d-%s", ISO_D_DASH_S }, }; -static int num_iso2022_tests = sizeof (iso2022_tests) / sizeof (CharInfo); +static gint num_iso2022_tests = sizeof (iso2022_tests) / sizeof (CharInfo); static CharInfo iso10646_tests[] = { { "iso-10646-1", "iso-%d-%d", ISO_DASH_D_DASH_D_LOWER }, @@ -87,16 +87,16 @@ static CharInfo iso10646_tests[] = { { "UCS-4BE", "UCS-4BE", UCS4 }, }; -static int num_iso10646_tests = sizeof (iso10646_tests) / sizeof (CharInfo); +static gint num_iso10646_tests = sizeof (iso10646_tests) / sizeof (CharInfo); -int main (int argc, char **argv) +gint main (gint argc, gchar **argv) { - unsigned int iso8859, iso2022, iso10646; + guint iso8859, iso2022, iso10646; CharInfo *info; iconv_t cd; FILE *fp; - int i; + gint i; fp = fopen ("iconv-detect.h", "w"); if (fp == NULL) |