2007-06-21 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Thu, 21 Jun 2007 21:28:59 +0000 (21:28 +0000)
committerHavoc Pennington <hp@redhat.com>
Thu, 21 Jun 2007 21:28:59 +0000 (21:28 +0000)
* dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should
not be the same as before, the ABI has never been declared stable
on Windows and 2) do not commit to cross-platform files without
posting the exact patch to the mailing list

* dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed
out before, either 0xff needs to work on both platforms, or none
of the dbus code can rely on it working. That means the options
are 1) audit the code for anywhere that relies on 0xff working, if
none found ideally add a test that it *doesn't* work and make unix
reject it explicitly, but in any case this test would go away or
2) make it work on Windows also, then we don't have to figure out
whether we rely on it.

And in either case, post the exact patch to the mailing list and
don't just commit.

ChangeLog
dbus/dbus-sysdeps-util.c
dbus/dbus-watch.c

index 9efb0ac..0fc6e9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2007-06-21  Havoc Pennington  <hp@redhat.com>
+
+       * dbus/dbus-watch.c (dbus_watch_get_fd): 1) its behavior should
+       not be the same as before, the ABI has never been declared stable
+       on Windows and 2) do not commit to cross-platform files without
+       posting the exact patch to the mailing list
+       
+       * dbus/dbus-sysdeps-util.c (_dbus_sysdeps_test): as I have pointed
+       out before, either 0xff needs to work on both platforms, or none
+       of the dbus code can rely on it working. That means the options
+       are 1) audit the code for anywhere that relies on 0xff working, if
+       none found ideally add a test that it *doesn't* work and make unix
+       reject it explicitly, but in any case this test would go away or
+       2) make it work on Windows also, then we don't have to figure out 
+       whether we rely on it.
+
+       And in either case, post the exact patch to the mailing list and
+       don't just commit.
+
 2007-06-21 Ralf Habacker  <ralf.habacker@freenet.de>
 
        * cmake/CMakeLists.txt: added VERSION_PATCH to be able to 
index c5aecb9..1f6ceb9 100644 (file)
@@ -141,7 +141,6 @@ _dbus_sysdeps_test (void)
       exit (1);
     }
 
-#ifndef DBUS_WIN
   _dbus_string_init_const (&str, "0xff");
   if (!_dbus_string_parse_double (&str,
                                  0, &val, &pos))
@@ -159,7 +158,7 @@ _dbus_sysdeps_test (void)
       _dbus_warn ("_dbus_string_parse_double of \"0xff\" returned wrong position %d", pos);
       exit (1);
     }
-#endif
+
 #ifdef DBUS_WIN
   check_path_absolute ("c:/", TRUE);
   check_path_absolute ("c:/foo", TRUE);
index 634ab24..eed9a10 100644 (file)
@@ -489,11 +489,7 @@ _dbus_watch_set_handler (DBusWatch        *watch,
 int
 dbus_watch_get_fd (DBusWatch *watch)
 {
-#ifdef DBUS_WIN_FIXME
-  return watch->fd;
-#else
   return dbus_watch_get_unix_fd(watch);
-#endif
 }
 
 /**