Rename the GUTILS_C_VAR macro to GLIB_VAR.
authorTor Lillqvist <tml@iki.fi>
Sat, 8 Jul 2000 12:40:09 +0000 (12:40 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 8 Jul 2000 12:40:09 +0000 (12:40 +0000)
2000-07-08  Tor Lillqvist  <tml@iki.fi>

* glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.

* gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.

* glib.def: Add two missing entry points.

14 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib.def
glib.h
glib/glib.def
glib/glib.h
glib/gunicode.h
gunicode.h

index dc41e2d..5b506be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index dc41e2d..5b506be 100644 (file)
@@ -1,3 +1,11 @@
+2000-07-08  Tor Lillqvist  <tml@iki.fi>
+
+       * glib.h (GLIB_VAR): Rename the GUTILS_C_VAR macro to GLIB_VAR.
+
+       * gunicode.h: Mark the g_utf8_skip array with GLIB_VAR.
+
+       * glib.def: Add two missing entry points.
+
 Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
 
        * Release 1.3.1
index 239a96d..ab7e45a 100644 (file)
--- a/glib.def
+++ b/glib.def
@@ -164,6 +164,7 @@ EXPORTS
        g_list_append
        g_list_concat
        g_list_copy
+       g_list_delete_link
        g_list_find
        g_list_find_custom
        g_list_first
@@ -480,6 +481,7 @@ EXPORTS
        g_utf8_offset_to_pointer
        g_utf8_pointer_to_offset
        g_utf8_prev_char
+       g_utf8_skip
        g_utf8_strchr
        g_utf8_strlen
        g_utf8_strncpy
diff --git a/glib.h b/glib.h
index dd9fa5a..d7ac6d5 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -698,19 +698,19 @@ typedef gint32    GTime;
  */
 #ifdef G_OS_WIN32
 #  ifdef GLIB_COMPILATION
-#    define GUTILS_C_VAR __declspec(dllexport)
+#    define GLIB_VAR __declspec(dllexport)
 #  else /* !GLIB_COMPILATION */
-#    define GUTILS_C_VAR extern __declspec(dllimport)
+#    define GLIB_VAR extern __declspec(dllimport)
 #  endif /* !GLIB_COMPILATION */
 #else /* !G_OS_WIN32 */
-#  define GUTILS_C_VAR extern
+#  define GLIB_VAR extern
 #endif /* !G_OS_WIN32 */
 
-GUTILS_C_VAR const guint glib_major_version;
-GUTILS_C_VAR const guint glib_minor_version;
-GUTILS_C_VAR const guint glib_micro_version;
-GUTILS_C_VAR const guint glib_interface_age;
-GUTILS_C_VAR const guint glib_binary_age;
+GLIB_VAR const guint glib_major_version;
+GLIB_VAR const guint glib_minor_version;
+GLIB_VAR const guint glib_micro_version;
+GLIB_VAR const guint glib_interface_age;
+GLIB_VAR const guint glib_binary_age;
 
 #define GLIB_CHECK_VERSION(major,minor,micro)    \
     (GLIB_MAJOR_VERSION > (major) || \
@@ -2833,7 +2833,7 @@ gint        g_io_channel_unix_get_fd (GIOChannel *channel);
 
 #ifdef G_OS_WIN32
 
-GUTILS_C_VAR guint g_pipe_readable_msg;
+GLIB_VAR guint g_pipe_readable_msg;
 
 #define G_WIN32_MSG_HANDLE 19981206
 
@@ -3028,9 +3028,9 @@ struct _GThreadFunctions
   void      (*thread_self)        (gpointer              thread);
 };
 
-GUTILS_C_VAR GThreadFunctions  g_thread_functions_for_glib_use;
-GUTILS_C_VAR gboolean          g_thread_use_default_impl;
-GUTILS_C_VAR gboolean          g_threads_got_initialized;
+GLIB_VAR GThreadFunctions      g_thread_functions_for_glib_use;
+GLIB_VAR gboolean              g_thread_use_default_impl;
+GLIB_VAR gboolean              g_threads_got_initialized;
 
 /* initializes the mutex/cond/private implementation for glib, might
  * only be called once, and must not be called directly or indirectly
index 239a96d..ab7e45a 100644 (file)
@@ -164,6 +164,7 @@ EXPORTS
        g_list_append
        g_list_concat
        g_list_copy
+       g_list_delete_link
        g_list_find
        g_list_find_custom
        g_list_first
@@ -480,6 +481,7 @@ EXPORTS
        g_utf8_offset_to_pointer
        g_utf8_pointer_to_offset
        g_utf8_prev_char
+       g_utf8_skip
        g_utf8_strchr
        g_utf8_strlen
        g_utf8_strncpy
index dd9fa5a..d7ac6d5 100644 (file)
@@ -698,19 +698,19 @@ typedef gint32    GTime;
  */
 #ifdef G_OS_WIN32
 #  ifdef GLIB_COMPILATION
-#    define GUTILS_C_VAR __declspec(dllexport)
+#    define GLIB_VAR __declspec(dllexport)
 #  else /* !GLIB_COMPILATION */
-#    define GUTILS_C_VAR extern __declspec(dllimport)
+#    define GLIB_VAR extern __declspec(dllimport)
 #  endif /* !GLIB_COMPILATION */
 #else /* !G_OS_WIN32 */
-#  define GUTILS_C_VAR extern
+#  define GLIB_VAR extern
 #endif /* !G_OS_WIN32 */
 
-GUTILS_C_VAR const guint glib_major_version;
-GUTILS_C_VAR const guint glib_minor_version;
-GUTILS_C_VAR const guint glib_micro_version;
-GUTILS_C_VAR const guint glib_interface_age;
-GUTILS_C_VAR const guint glib_binary_age;
+GLIB_VAR const guint glib_major_version;
+GLIB_VAR const guint glib_minor_version;
+GLIB_VAR const guint glib_micro_version;
+GLIB_VAR const guint glib_interface_age;
+GLIB_VAR const guint glib_binary_age;
 
 #define GLIB_CHECK_VERSION(major,minor,micro)    \
     (GLIB_MAJOR_VERSION > (major) || \
@@ -2833,7 +2833,7 @@ gint        g_io_channel_unix_get_fd (GIOChannel *channel);
 
 #ifdef G_OS_WIN32
 
-GUTILS_C_VAR guint g_pipe_readable_msg;
+GLIB_VAR guint g_pipe_readable_msg;
 
 #define G_WIN32_MSG_HANDLE 19981206
 
@@ -3028,9 +3028,9 @@ struct _GThreadFunctions
   void      (*thread_self)        (gpointer              thread);
 };
 
-GUTILS_C_VAR GThreadFunctions  g_thread_functions_for_glib_use;
-GUTILS_C_VAR gboolean          g_thread_use_default_impl;
-GUTILS_C_VAR gboolean          g_threads_got_initialized;
+GLIB_VAR GThreadFunctions      g_thread_functions_for_glib_use;
+GLIB_VAR gboolean              g_thread_use_default_impl;
+GLIB_VAR gboolean              g_threads_got_initialized;
 
 /* initializes the mutex/cond/private implementation for glib, might
  * only be called once, and must not be called directly or indirectly
index 2adad11..f40078d 100644 (file)
@@ -118,9 +118,23 @@ void g_unicode_canonical_ordering (gunichar *string,
 gunichar *g_unicode_canonical_decomposition (gunichar  ch,
                                             size_t   *result_len);
 
-/* Array of skip-bytes-per-initial character
+/* Array of skip-bytes-per-initial character.
+ * We prefix variable declarations so they can
+ * properly get exported in windows dlls.
  */
-extern char g_utf8_skip[256];
+#ifndef GLIB_VAR
+#  ifdef G_OS_WIN32
+#    ifdef GLIB_COMPILATION
+#      define GLIB_VAR __declspec(dllexport)
+#    else /* !GLIB_COMPILATION */
+#      define GLIB_VAR extern __declspec(dllimport)
+#    endif /* !GLIB_COMPILATION */
+#  else /* !G_OS_WIN32 */
+#    define GLIB_VAR extern
+#  endif /* !G_OS_WIN32 */
+#endif /* !GLIB_VAR */
+
+GLIB_VAR char g_utf8_skip[256];
 
 #define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(guchar *)(p)])
 
index 2adad11..f40078d 100644 (file)
@@ -118,9 +118,23 @@ void g_unicode_canonical_ordering (gunichar *string,
 gunichar *g_unicode_canonical_decomposition (gunichar  ch,
                                             size_t   *result_len);
 
-/* Array of skip-bytes-per-initial character
+/* Array of skip-bytes-per-initial character.
+ * We prefix variable declarations so they can
+ * properly get exported in windows dlls.
  */
-extern char g_utf8_skip[256];
+#ifndef GLIB_VAR
+#  ifdef G_OS_WIN32
+#    ifdef GLIB_COMPILATION
+#      define GLIB_VAR __declspec(dllexport)
+#    else /* !GLIB_COMPILATION */
+#      define GLIB_VAR extern __declspec(dllimport)
+#    endif /* !GLIB_COMPILATION */
+#  else /* !G_OS_WIN32 */
+#    define GLIB_VAR extern
+#  endif /* !G_OS_WIN32 */
+#endif /* !GLIB_VAR */
+
+GLIB_VAR char g_utf8_skip[256];
 
 #define g_utf8_next_char(p) (char *)((p) + g_utf8_skip[*(guchar *)(p)])