From: Matthias Clasen Date: Tue, 29 Jul 2003 18:59:23 +0000 (+0000) Subject: Use gchar, gint, gsize instead of char, int, size_t in the interface for X-Git-Tag: GLIB_2_3_0~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf9779628e9b301efdf6dbafaf64774c28877ab4;p=platform%2Fupstream%2Fglib.git Use gchar, gint, gsize instead of char, int, size_t in the interface for 2003-07-29 Matthias Clasen * glib/gqsort.[hc] (g_qsort_with_data): * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t in the interface for consistency. (#118567) --- diff --git a/ChangeLog b/ChangeLog index 5330adae3..106f6811c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5330adae3..106f6811c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 5330adae3..106f6811c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5330adae3..106f6811c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5330adae3..106f6811c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5330adae3..106f6811c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,10 @@ 2003-07-29 Matthias Clasen + * glib/gqsort.[hc] (g_qsort_with_data): + * glib/gconvert.[hc] (g_filename_to_uri, g_filename_from_uri): + * glib/gfileutils.[hc] (g_mkstemp, g_file_open_tmp): Use gchar, gint, gsize instead of char, int, size_t + in the interface for consistency. (#118567) + Replace trio printf() by gnulib vasnprintf(): (#101874) * configure.in: Define HAVE_LONG_LONG_FORMAT if system printf understands %llu; rename enable_trio to diff --git a/glib/gconvert.c b/glib/gconvert.c index 66ce7f22d..cdef32513 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -1608,9 +1608,9 @@ hostname_validate (const char *hostname) * filename, or %NULL on an error. **/ gchar * -g_filename_from_uri (const char *uri, - char **hostname, - GError **error) +g_filename_from_uri (const gchar *uri, + gchar **hostname, + GError **error) { const char *path_part; const char *host_part; @@ -1742,9 +1742,9 @@ g_filename_from_uri (const char *uri, * URI, or %NULL on an error. **/ gchar * -g_filename_to_uri (const char *filename, - const char *hostname, - GError **error) +g_filename_to_uri (const gchar *filename, + const gchar *hostname, + GError **error) { char *escaped_uri; char *utf8_filename; diff --git a/glib/gconvert.h b/glib/gconvert.h index c705078fb..e3989b429 100644 --- a/glib/gconvert.h +++ b/glib/gconvert.h @@ -109,13 +109,13 @@ gchar* g_filename_from_utf8 (const gchar *utf8string, gsize *bytes_written, GError **error); -gchar *g_filename_from_uri (const char *uri, - char **hostname, - GError **error); +gchar *g_filename_from_uri (const gchar *uri, + gchar **hostname, + GError **error); -gchar *g_filename_to_uri (const char *filename, - const char *hostname, - GError **error); +gchar *g_filename_to_uri (const gchar *filename, + const gchar *hostname, + GError **error); G_END_DECLS diff --git a/glib/gfileutils.c b/glib/gfileutils.c index c378820e9..8fdd0ec98 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -653,8 +653,8 @@ g_file_get_contents (const gchar *filename, * on platforms where there is a difference. The file handle should be * closed with close(). In case of errors, -1 is returned. */ -int -g_mkstemp (char *tmpl) +gint +g_mkstemp (gchar *tmpl) { #ifdef HAVE_MKSTEMP return mkstemp (tmpl); @@ -740,10 +740,10 @@ g_mkstemp (char *tmpl) * closed with close(). In case of errors, -1 is returned * and @error will be set. **/ -int -g_file_open_tmp (const char *tmpl, - char **name_used, - GError **error) +gint +g_file_open_tmp (const gchar *tmpl, + gchar **name_used, + GError **error) { int retval; const char *tmpdir; diff --git a/glib/gfileutils.h b/glib/gfileutils.h index 76669f8cd..0649580e8 100644 --- a/glib/gfileutils.h +++ b/glib/gfileutils.h @@ -82,11 +82,11 @@ gchar * g_read_link (const gchar *filename, GError **error); /* Wrapper / workalike for mkstemp() */ -int g_mkstemp (char *tmpl); +gint g_mkstemp (gchar *tmpl); /* Wrapper for g_mkstemp */ -int g_file_open_tmp (const char *tmpl, - char **name_used, +gint g_file_open_tmp (const gchar *tmpl, + gchar **name_used, GError **error); gchar *g_build_path (const gchar *separator, diff --git a/glib/gqsort.c b/glib/gqsort.c index 8c9314c79..b44785be6 100644 --- a/glib/gqsort.c +++ b/glib/gqsort.c @@ -111,7 +111,7 @@ stack_node; void g_qsort_with_data (gconstpointer pbase, gint total_elems, - size_t size, + gsize size, GCompareDataFunc compare_func, gpointer user_data) { diff --git a/glib/gqsort.h b/glib/gqsort.h index 12e7a05b1..d0ff46a48 100644 --- a/glib/gqsort.h +++ b/glib/gqsort.h @@ -34,7 +34,7 @@ G_BEGIN_DECLS void g_qsort_with_data (gconstpointer pbase, gint total_elems, - size_t size, + gsize size, GCompareDataFunc compare_func, gpointer user_data);