]> code.delx.au - gnu-emacs/commitdiff
* dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 14 Dec 2007 21:49:52 +0000 (21:49 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 14 Dec 2007 21:49:52 +0000 (21:49 +0000)
(Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
`unsigned int' instead of `uint'.
(xd_read_message, Fdbus_register_signal): Split expressions into
multiple lines before operators "&&" and "||", according to the
GNU Coding Standards.

src/ChangeLog
src/dbusbind.c

index babf84e1e85e002dc4216a251783dc23a386e1de..e9e03c914e1268f4b8bdfcb1310fd28261747fe4 100644 (file)
@@ -1,3 +1,12 @@
+2007-12-14  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
+       (Fdbus_call_method, Fdbus_send_signal, xd_read_message): Use
+       `unsigned int' instead of `uint'.
+       (xd_read_message, Fdbus_register_signal): Split expressions into
+       multiple lines before operators "&&" and "||", according to the
+       GNU Coding Standards.
+
 2007-12-12  Juri Linkov  <juri@jurta.org>
 
        * buffer.c (Frename_buffer): In interactive spec replace
index 29835772dc5916e3942e496a110a0384fc3d9f60..0ccccc8b22daac12ca0b8940395421302f720249 100644 (file)
@@ -112,7 +112,7 @@ Lisp_Object Vdbus_debug;
    message.  */
 char *
 xd_retrieve_value (dtype, object)
-     uint dtype;
+     unsigned int dtype;
      Lisp_Object object;
 {
 
@@ -146,7 +146,7 @@ xd_retrieve_value (dtype, object)
    partly supported; they result always in a Lisp list.  */
 Lisp_Object
 xd_retrieve_arg (dtype, iter)
-     uint dtype;
+     unsigned int dtype;
      DBusMessageIter *iter;
 {
 
@@ -316,7 +316,7 @@ usage: (dbus-call-method BUS SERVICE PATH INTERFACE METHOD &rest ARGS)  */)
   DBusMessage *reply;
   DBusMessageIter iter;
   DBusError derror;
-  uint dtype;
+  unsigned int dtype;
   int i;
   char *value;
 
@@ -459,7 +459,7 @@ usage: (dbus-send-signal BUS SERVICE PATH INTERFACE SIGNAL &rest ARGS)  */)
   struct gcpro gcpro1, gcpro2, gcpro3, gcpro4, gcpro5;
   DBusConnection *connection;
   DBusMessage *dmessage;
-  uint dtype;
+  unsigned int dtype;
   int i;
   char *value;
 
@@ -549,7 +549,7 @@ xd_read_message (bus)
   DBusConnection *connection;
   DBusMessage *dmessage;
   DBusMessageIter iter;
-  uint dtype;
+  unsigned int dtype;
   char uname[DBUS_MAXIMUM_NAME_LENGTH];
   char path[DBUS_MAXIMUM_MATCH_RULE_LENGTH]; /* Unlimited in D-Bus spec.  */
   char interface[DBUS_MAXIMUM_NAME_LENGTH];
@@ -605,11 +605,13 @@ xd_read_message (bus)
     {
       key = XCAR (value);
       /* key has the structure (SERVICE UNAME PATH HANDLER).  */
-      if (((uname == NULL) || (NILP (XCAR (XCDR (key)))) ||
-          (strcmp (uname, SDATA (XCAR (XCDR (key)))) == 0)) &&
-         ((path == NULL) || (NILP (XCAR (XCDR (XCDR (key))))) ||
-          (strcmp (path, SDATA (XCAR (XCDR (XCDR (key))))) == 0)) &&
-         (!NILP (XCAR (XCDR (XCDR (XCDR (key)))))))
+      if (((uname == NULL)
+          || (NILP (XCAR (XCDR (key))))
+          || (strcmp (uname, SDATA (XCAR (XCDR (key)))) == 0))
+         && ((path == NULL)
+             || (NILP (XCAR (XCDR (XCDR (key)))))
+             || (strcmp (path, SDATA (XCAR (XCDR (XCDR (key))))) == 0))
+         && (!NILP (XCAR (XCDR (XCDR (XCDR (key)))))))
        {
          EVENT_INIT (event);
          event.kind = DBUS_EVENT;
@@ -710,10 +712,10 @@ SIGNAL and HANDLER must not be nil.  Example:
      will register for the corresponding unique name, if any.  Signals
      are sent always with the unique name as sender.  Note: the unique
      name of "org.freedesktop.DBus" is that string itself.  */
-  if ((!NILP (service)) &&
-      (strlen (SDATA (service)) > 0) &&
-      (strcmp (SDATA (service), DBUS_SERVICE_DBUS) != 0) &&
-      (strncmp (SDATA (service), ":", 1) != 0))
+  if ((!NILP (service))
+      && (strlen (SDATA (service)) > 0)
+      && (strcmp (SDATA (service), DBUS_SERVICE_DBUS) != 0)
+      && (strncmp (SDATA (service), ":", 1) != 0))
     unique_name = call2 (intern ("dbus-get-name-owner"), bus, service);
   else
     unique_name = service;