added glib_gettext (in use by gio) also try building gio
authorHans Breuer <hans@breuer.org>
Mon, 3 Dec 2007 22:46:17 +0000 (22:46 +0000)
committerHans Breuer <hans@src.gnome.org>
Mon, 3 Dec 2007 22:46:17 +0000 (22:46 +0000)
2007-12-03  Hans Breuer  <hans@breuer.org>

* glib/glib.symbols : added glib_gettext (in use by gio)
* makefile.msc : also try building gio

* glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid
'bad suffix on number'
* glib/gtestutils.c : declare cariable at the beginning of the block,
include <io.h> for G_OS_WIN32
* makefile.msc.in : add gurifuncs and gtestutils

svn path=/trunk/; revision=6028

ChangeLog
glib/glib.symbols
glib/gmarkup.c
glib/gtestutils.c
glib/makefile.msc.in
makefile.msc

index b2f1fbb..cd994e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-12-03  Hans Breuer  <hans@breuer.org>
+
+       * glib/glib.symbols : added glib_gettext (in use by gio)
+       * makefile.msc : also try building gio
+       
+       * glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid 
+       'bad suffix on number'
+       * glib/gtestutils.c : declare cariable at the beginning of the block,
+       include <io.h> for G_OS_WIN32
+       * makefile.msc.in : add gurifuncs and gtestutils
+
 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
 
        * glib/ghash.c: create a common function for the many places where all
index 28fa1ba..9b40d4e 100644 (file)
@@ -1559,6 +1559,8 @@ g_win32_locale_filename_from_utf8
 #endif
 #endif
 
+glib_gettext
+
 #ifdef INCLUDE_VARIABLES
 g_ascii_table
 g_utf8_skip
index 381bea2..1467e17 100644 (file)
@@ -2496,7 +2496,7 @@ g_markup_collect_attributes (const gchar         *element_name,
         mandatory = FALSE;
 
       for (i = 0; attribute_names[i]; i++)
-        if (i >= 40 || !(collected & (1ull << i)))
+        if (i >= 40 || !(collected & (G_GUINT64_CONSTANT(1) << i)))
           if (!strcmp (attribute_names[i], attr))
             break;
 
@@ -2514,7 +2514,7 @@ g_markup_collect_attributes (const gchar         *element_name,
        * what error it is, so just continue...
        */
       if (i < 40)
-        collected |= (1ull << i);
+        collected |= (G_GUINT64_CONSTANT(1) << i);
 
       value = attribute_values[i];
 
index a973e3d..9f13a6f 100644 (file)
@@ -30,6 +30,9 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef G_OS_WIN32
+#include <io.h>
+#endif
 #include <errno.h>
 #include <signal.h>
 #ifdef HAVE_SYS_SELECT_H
@@ -753,11 +756,12 @@ g_test_create_case (const char     *test_name,
                     void          (*data_test) (void),
                     void          (*data_teardown) (void))
 {
+  GTestCase *tc;
   g_return_val_if_fail (test_name != NULL, NULL);
   g_return_val_if_fail (strchr (test_name, '/') == NULL, NULL);
   g_return_val_if_fail (test_name[0] != 0, NULL);
   g_return_val_if_fail (data_test != NULL, NULL);
-  GTestCase *tc = g_slice_new0 (GTestCase);
+  tc = g_slice_new0 (GTestCase);
   tc->name = g_strdup (test_name);
   tc->fixture_size = data_size;
   tc->fixture_setup = (void*) data_setup;
@@ -837,10 +841,11 @@ g_test_add_func (const char     *testpath,
 GTestSuite*
 g_test_create_suite (const char *suite_name)
 {
+  GTestSuite *ts;
   g_return_val_if_fail (suite_name != NULL, NULL);
   g_return_val_if_fail (strchr (suite_name, '/') == NULL, NULL);
   g_return_val_if_fail (suite_name[0] != 0, NULL);
-  GTestSuite *ts = g_slice_new0 (GTestSuite);
+  ts = g_slice_new0 (GTestSuite);
   ts->name = g_strdup (suite_name);
   return ts;
 }
@@ -933,10 +938,11 @@ test_case_run (GTestCase *tc)
     {
       GTimer *test_run_timer = g_timer_new();
       long double largs[3];
+      void *fixture;
       g_test_log (G_TEST_LOG_START_CASE, test_run_name, NULL, 0, NULL);
       test_run_forks = 0;
       g_timer_start (test_run_timer);
-      void *fixture = g_malloc0 (tc->fixture_size);
+      fixture = g_malloc0 (tc->fixture_size);
       test_run_seed (test_run_seedstr);
       if (tc->fixture_setup)
         tc->fixture_setup (fixture);
@@ -1057,11 +1063,12 @@ g_assertion_message (const char     *domain,
                      const char     *message)
 {
   char lstr[32];
+  char *s;
   g_snprintf (lstr, 32, "%d", line);
-  char *s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
-                         file, ":", lstr, ":",
-                         func, func[0] ? ":" : "",
-                         " ", message, NULL);
+  s = g_strconcat (domain ? domain : "", domain && domain[0] ? ":" : "",
+                   file, ":", lstr, ":",
+                   func, func[0] ? ":" : "",
+                   " ", message, NULL);
   g_printerr ("**\n** %s\n", s);
   g_free (s);
   abort();
index 0c658f0..dc8f2c6 100644 (file)
@@ -78,6 +78,7 @@ glib_OBJECTS =                        \
        gstdio.obj      \
        gstrfuncs.obj           \
        gstring.obj             \
+       gtestutils.obj  \
        gthread.obj             \
        gthreadpool.obj         \
        gtimer.obj              \
@@ -86,6 +87,7 @@ glib_OBJECTS =                        \
        gunicollate.obj         \
        gunidecomp.obj          \
        guniprop.obj            \
+       gurifuncs.obj   \
        gutf8.obj               \
        gutils.obj              \
        gwin32.obj              \
index bbb24b8..52e07f6 100644 (file)
@@ -1,7 +1,7 @@
 ## Makefile for building the GLib dlls with Microsoft C
 ## Use: nmake -f makefile.msc
 
-PARTS = glib gmodule gthread gobject tests
+PARTS = glib gmodule gthread gobject gio tests
 
 all : \
        config.h \