From 2d5776656de3b4ed721aa9aeb25bc935de2a8c41 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 4 Jun 2001 20:00:26 +0000 Subject: [PATCH] Make a bit more standalone by adding include of gerror.h. #54543. Mon Jun 4 15:59:15 2001 Owen Taylor * gunicode.h: Make a bit more standalone by adding include of gerror.h. #54543. * gunicode.h: Change size_t to g_size. (Ugh) --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ glib/gunicode.h | 8 ++++---- gunicode.h | 8 ++++---- 10 files changed, 64 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 98ae6ec1..4e94c5f1 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Mon Jun 4 15:59:15 2001 Owen Taylor + + * gunicode.h: Make a bit more standalone by adding include + of gerror.h. #54543. + + * gunicode.h: Change size_t to g_size. (Ugh) + 2001-05-31 Sebastian Wilhelmi * grand.h (g_random_boolean, g_rand_boolean): Fix to stupid bug in diff --git a/glib/gunicode.h b/glib/gunicode.h index cee0d700..d0836ad6 100644 --- a/glib/gunicode.h +++ b/glib/gunicode.h @@ -22,7 +22,7 @@ #ifndef __G_UNICODE_H__ #define __G_UNICODE_H__ -#include /* For size_t */ +#include #include G_BEGIN_DECLS @@ -151,13 +151,13 @@ GUnicodeBreakType g_unichar_break_type (gunichar c) G_GNUC_CONST; decomposed characters in the string according to their combining classes. See the Unicode manual for more information. */ void g_unicode_canonical_ordering (gunichar *string, - size_t len); + gsize len); /* Compute canonical decomposition of a character. Returns g_malloc()d string of Unicode characters. RESULT_LEN is set to the resulting length of the string. */ gunichar *g_unicode_canonical_decomposition (gunichar ch, - size_t *result_len); + gsize *result_len); /* Array of skip-bytes-per-initial character. * We prefix variable declarations so they can @@ -184,7 +184,7 @@ gint g_utf8_strlen (const gchar *p, /* Copies n characters from src to dest */ gchar* g_utf8_strncpy (gchar *dest, const gchar *src, - size_t n); + gsize n); /* Find the UTF-8 character corresponding to ch, in string p. These functions are equivalants to strchr and strrchr */ diff --git a/gunicode.h b/gunicode.h index cee0d700..d0836ad6 100644 --- a/gunicode.h +++ b/gunicode.h @@ -22,7 +22,7 @@ #ifndef __G_UNICODE_H__ #define __G_UNICODE_H__ -#include /* For size_t */ +#include #include G_BEGIN_DECLS @@ -151,13 +151,13 @@ GUnicodeBreakType g_unichar_break_type (gunichar c) G_GNUC_CONST; decomposed characters in the string according to their combining classes. See the Unicode manual for more information. */ void g_unicode_canonical_ordering (gunichar *string, - size_t len); + gsize len); /* Compute canonical decomposition of a character. Returns g_malloc()d string of Unicode characters. RESULT_LEN is set to the resulting length of the string. */ gunichar *g_unicode_canonical_decomposition (gunichar ch, - size_t *result_len); + gsize *result_len); /* Array of skip-bytes-per-initial character. * We prefix variable declarations so they can @@ -184,7 +184,7 @@ gint g_utf8_strlen (const gchar *p, /* Copies n characters from src to dest */ gchar* g_utf8_strncpy (gchar *dest, const gchar *src, - size_t n); + gsize n); /* Find the UTF-8 character corresponding to ch, in string p. These functions are equivalants to strchr and strrchr */ -- 2.34.1