mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
cosmetic cleanups, fixed [u]int64->string conversions.
Wed Feb 13 06:29:51 2002 Tim Janik <timj@gtk.org> * gvaluetransform.c: cosmetic cleanups, fixed [u]int64->string conversions. * ChangeLog: added entry from owen which went into the wrong file.
This commit is contained in:
parent
d2ab8acd04
commit
d15d950210
@ -1,3 +1,16 @@
|
||||
Wed Feb 13 06:29:51 2002 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gvaluetransform.c: cosmetic cleanups, fixed [u]int64->string
|
||||
conversions.
|
||||
|
||||
* ChangeLog: added entry from owen which went into the wrong
|
||||
file.
|
||||
|
||||
Fri Feb 8 23:52:27 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gobject/gvaluetransform.c: Register transformations for
|
||||
gint64, guint64. (#70780, patch from Andy Wingo)
|
||||
|
||||
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||
|
||||
* gvaluetransform.c : msvc 5.0 can't cast from uint64 to
|
||||
|
@ -152,25 +152,25 @@ DEFINE_BOOL_CHECK (int64_bool, v_int64);
|
||||
DEFINE_BOOL_CHECK (uint64_bool, v_uint64);
|
||||
|
||||
|
||||
/* string printouts and scanning
|
||||
/* string printouts
|
||||
*/
|
||||
#define DEFINE_SPRINTF(func_name, from_member, format) \
|
||||
static void \
|
||||
value_transform_##func_name (const GValue *src_value, \
|
||||
GValue *dest_value) \
|
||||
{ \
|
||||
dest_value->data[0].v_pointer = \
|
||||
g_strdup_printf ((format), src_value->data[0].from_member); \
|
||||
dest_value->data[0].v_pointer = g_strdup_printf ((format), \
|
||||
src_value->data[0].from_member); \
|
||||
}
|
||||
DEFINE_SPRINTF (int_string, v_int, "%d");
|
||||
DEFINE_SPRINTF (uint_string, v_uint, "%u");
|
||||
DEFINE_SPRINTF (long_string, v_long, "%ld");
|
||||
DEFINE_SPRINTF (ulong_string, v_ulong, "%lu");
|
||||
#ifdef G_GINT64_FORMAT
|
||||
DEFINE_SPRINTF (int64_string, v_long, "%" G_GINT64_FORMAT);
|
||||
DEFINE_SPRINTF (int64_string, v_int64, "%" G_GINT64_FORMAT);
|
||||
#endif
|
||||
#ifdef G_GUINT64_FORMAT
|
||||
DEFINE_SPRINTF (uint64_string, v_ulong, "%" G_GUINT64_FORMAT);
|
||||
DEFINE_SPRINTF (uint64_string, v_uint64, "%" G_GUINT64_FORMAT);
|
||||
#endif
|
||||
DEFINE_SPRINTF (float_string, v_float, "%f");
|
||||
DEFINE_SPRINTF (double_string, v_double, "%f");
|
||||
|
Loading…
Reference in New Issue
Block a user