comparison src/dbusbind.c @ 104313:73f76307d49b

* lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value. (XFLOAT_INIT): New macro for storing a float value. * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT. * fns.c (sxhash): Copy out the value of a float in order to examine its bytes. * dbusbind.c (xd_append_arg): Likewise.
author Ken Raeburn <raeburn@raeburn.org>
date Mon, 17 Aug 2009 01:25:54 +0000
parents 52ea0b8b565e
children dfa6f847adcd
comparison
equal deleted inserted replaced
104312:c8e168f901e7 104313:73f76307d49b
473 XD_SIGNAL2 (build_string ("Unable to append argument"), object); 473 XD_SIGNAL2 (build_string ("Unable to append argument"), object);
474 return; 474 return;
475 } 475 }
476 476
477 case DBUS_TYPE_DOUBLE: 477 case DBUS_TYPE_DOUBLE:
478 XD_DEBUG_MESSAGE ("%c %f", dtype, XFLOAT_DATA (object)); 478 {
479 if (!dbus_message_iter_append_basic (iter, dtype, 479 double val = XFLOAT_DATA (object);
480 &XFLOAT_DATA (object))) 480 XD_DEBUG_MESSAGE ("%c %f", dtype, val);
481 XD_SIGNAL2 (build_string ("Unable to append argument"), object); 481 if (!dbus_message_iter_append_basic (iter, dtype, &val))
482 return; 482 XD_SIGNAL2 (build_string ("Unable to append argument"), object);
483 return;
484 }
483 485
484 case DBUS_TYPE_STRING: 486 case DBUS_TYPE_STRING:
485 case DBUS_TYPE_OBJECT_PATH: 487 case DBUS_TYPE_OBJECT_PATH:
486 case DBUS_TYPE_SIGNATURE: 488 case DBUS_TYPE_SIGNATURE:
487 { 489 {