[glib/gvariant] GVariant: remove trailing whitespace
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glib/gvariant] GVariant: remove trailing whitespace
- Date: Thu, 21 Jan 2010 19:46:04 +0000 (UTC)
commit f639103e4f4e1502ffc37eaeb96c0720b4c25b1d
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Jan 21 14:45:51 2010 -0500
GVariant: remove trailing whitespace
glib/gvariant-markup.c | 2 +-
glib/gvariant-parser.c | 10 +++++-----
glib/gvariant-printer.c | 4 ++--
glib/gvariant-serialiser.c | 10 +++++-----
glib/gvariant-util.c | 12 ++++++------
glib/gvariant-valist.c | 22 +++++++++++-----------
glib/gvarianttype.c | 2 +-
glib/gvarianttypeinfo.c | 2 +-
8 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/glib/gvariant-markup.c b/glib/gvariant-markup.c
index 27d6e2b..df0f27b 100644
--- a/glib/gvariant-markup.c
+++ b/glib/gvariant-markup.c
@@ -829,7 +829,7 @@ GMarkupParser g_variant_markup_parser =
* if (strcmp (element_name, "my-value") == 0)
* {
* GVariant *value;
- *
+ *
* if (!(value = g_variant_markup_subparser_pop (context, error)))
* return;
*
diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
index fbf1572..c6f2456 100644
--- a/glib/gvariant-parser.c
+++ b/glib/gvariant-parser.c
@@ -248,7 +248,7 @@ type_from_constraints (Constraints constraints)
return G_VARIANT_CLASS_BOOLEAN;
}
-
+
if (constraints & CONSTRAINT_HAS_POINT)
return G_VARIANT_CLASS_DOUBLE;
@@ -384,7 +384,7 @@ typedef GSList * (*get_examples_func) (AST *ast,
gint index,
Constraints *constraints);
typedef void (*free_func) (AST *ast);
-
+
typedef struct
{
get_pattern_func get_pattern;
@@ -697,7 +697,7 @@ array_parse (TokenStream *stream,
if (!child)
goto error;
-
+
ast_array_append (&array->children, &array->n_children, child);
need_comma = TRUE;
}
@@ -858,7 +858,7 @@ tuple_parse (TokenStream *stream,
if (!child)
goto error;
-
+
ast_array_append (&tuple->children, &tuple->n_children, child);
need_comma = TRUE;
}
@@ -1247,7 +1247,7 @@ dictionary_parse (TokenStream *stream,
if (!child)
goto error;
-
+
ast_array_append (&dict->keys, &n_keys, child);
if (!token_stream_require (stream, ":",
diff --git a/glib/gvariant-printer.c b/glib/gvariant-printer.c
index ad3cddf..ab8dc6e 100644
--- a/glib/gvariant-printer.c
+++ b/glib/gvariant-printer.c
@@ -35,7 +35,7 @@
* @type_annotate: %TRUE if type information should be included in
* the output
* @returns: a newly-allocated string holding the result.
- *
+ *
* Pretty-prints @value in the format understood by g_variant_parse().
*
* If @type_annotate is %TRUE, then type information is included in
@@ -115,7 +115,7 @@ g_variant_print_string (GVariant *value,
GVariant *child = g_variant_get_variant (value);
/* Always annotate types in nested variants, because they are
- * (by nature) of variable type.
+ * (by nature) of variable type.
*/
g_string_append_c (string, '<');
g_variant_print_string (child, string, TRUE);
diff --git a/glib/gvariant-serialiser.c b/glib/gvariant-serialiser.c
index e46dcfd..8747b6e 100644
--- a/glib/gvariant-serialiser.c
+++ b/glib/gvariant-serialiser.c
@@ -349,9 +349,9 @@ g_variant_serialised_get_child (GVariantSerialised container,
if G_UNLIKELY (container.size % fixed_size != 0 ||
fixed_size * (index + 1) > container.size)
break;
-
+
child.data = container.data + fixed_size * index;
- child.size = fixed_size;
+ child.size = fixed_size;
return child;
}
@@ -366,7 +366,7 @@ g_variant_serialised_get_child (GVariantSerialised container,
container.data + container.size - offset_size,
offset_size);
boundary = GSIZE_FROM_LE (boundary);
-
+
if G_UNLIKELY (boundary > container.size ||
(container.size - boundary) % offset_size ||
boundary + index * offset_size >= container.size)
@@ -628,7 +628,7 @@ g_variant_serialiser_serialise (GVariantSerialised container,
if (n_children)
{
gsize le_offset = GSIZE_TO_LE (offset);
-
+
offset_ptr -= offset_size;
memcpy (&container.data[offset_ptr],
&le_offset, offset_size);
@@ -877,7 +877,7 @@ g_variant_serialised_byteswap (GVariantSerialised value)
else
{
gsize children, i;
-
+
children = g_variant_serialised_n_children (value);
for (i = 0; i < children; i++)
{
diff --git a/glib/gvariant-util.c b/glib/gvariant-util.c
index c5cc35e..6bee4f1 100644
--- a/glib/gvariant-util.c
+++ b/glib/gvariant-util.c
@@ -425,7 +425,7 @@ g_variant_is_object_path (const gchar *string)
for (i = 1; string[i]; i++)
/* Each element must only contain the ASCII characters
- * "[A-Z][a-z][0-9]_"
+ * "[A-Z][a-z][0-9]_"
*/
if (g_ascii_isalnum (string[i]) || string[i] == '_')
;
@@ -926,7 +926,7 @@ struct _GVariantBuilder
*
* Error domain for #GVariantBuilder. Errors in this domain will be
* from the #GVariantBuilderError enumeration. See #GError for
- * information on error domains.
+ * information on error domains.
**/
/**
* GVariantBuilderError:
@@ -1044,7 +1044,7 @@ g_variant_builder_open (GVariantBuilder *parent,
{
if (g_variant_type_is_maybe (type) || g_variant_type_is_array (type))
child->expected2 = g_variant_type_element (parent->expected2);
-
+
if (g_variant_type_is_tuple (type) ||
g_variant_type_is_dict_entry (type))
child->expected2 = g_variant_type_first (parent->expected2);
@@ -1114,7 +1114,7 @@ g_variant_builder_close (GVariantBuilder *child)
* g_variant_builder_add_value().
*
* After all the child values are added, g_variant_builder_end() ends
- * the process.
+ * the process.
**/
GVariantBuilder *
g_variant_builder_new (const GVariantType *type)
@@ -1651,7 +1651,7 @@ g_variant_deep_copy (GVariant *value)
case G_VARIANT_CLASS_DOUBLE:
return g_variant_new_double (g_variant_get_double (value));
-
+
case G_VARIANT_CLASS_STRING:
return g_variant_new_string (g_variant_get_string (value, NULL));
@@ -1664,7 +1664,7 @@ g_variant_deep_copy (GVariant *value)
case G_VARIANT_CLASS_VARIANT:
{
GVariant *inside, *new;
-
+
inside = g_variant_get_variant (value);
new = g_variant_new_variant (g_variant_deep_copy (inside));
g_variant_unref (inside);
diff --git a/glib/gvariant-valist.c b/glib/gvariant-valist.c
index f92643e..c2900a1 100644
--- a/glib/gvariant-valist.c
+++ b/glib/gvariant-valist.c
@@ -409,7 +409,7 @@ g_variant_valist_new (const gchar **format_string,
}
break;
}
-
+
default:
{
gboolean *just;
@@ -475,7 +475,7 @@ g_variant_valist_get (GVariant *value,
case 'b':
{
gboolean *ptr = va_arg (*app, gboolean *);
-
+
if (ptr)
{
if (value)
@@ -491,7 +491,7 @@ g_variant_valist_get (GVariant *value,
case 'y':
{
guchar *ptr = va_arg (*app, guchar *);
-
+
if (ptr)
{
if (value)
@@ -507,7 +507,7 @@ g_variant_valist_get (GVariant *value,
case 'n':
{
gint16 *ptr = va_arg (*app, gint16 *);
-
+
if (ptr)
{
if (value)
@@ -523,7 +523,7 @@ g_variant_valist_get (GVariant *value,
case 'q':
{
guint16 *ptr = va_arg (*app, guint16 *);
-
+
if (ptr)
{
if (value)
@@ -539,7 +539,7 @@ g_variant_valist_get (GVariant *value,
case 'i':
{
gint32 *ptr = va_arg (*app, gint32 *);
-
+
if (ptr)
{
if (value)
@@ -555,7 +555,7 @@ g_variant_valist_get (GVariant *value,
case 'h':
{
gint32 *ptr = va_arg (*app, gint32 *);
-
+
if (ptr)
{
if (value)
@@ -571,7 +571,7 @@ g_variant_valist_get (GVariant *value,
case 'u':
{
guint32 *ptr = va_arg (*app, guint32 *);
-
+
if (ptr)
{
if (value)
@@ -587,7 +587,7 @@ g_variant_valist_get (GVariant *value,
case 'x':
{
gint64 *ptr = va_arg (*app, gint64 *);
-
+
if (ptr)
{
if (value)
@@ -603,7 +603,7 @@ g_variant_valist_get (GVariant *value,
case 't':
{
guint64 *ptr = va_arg (*app, guint64 *);
-
+
if (ptr)
{
if (value)
@@ -1453,7 +1453,7 @@ g_variant_iter_next (GVariantIter *iter,
*
* This call is a convenience wrapper that is exactly equivalent to
* calling g_variant_new() followed by g_variant_builder_add_value().
- *
+ *
* This function might be used as follows:
*
* <programlisting>
diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c
index d8b732e..c162273 100644
--- a/glib/gvarianttype.c
+++ b/glib/gvarianttype.c
@@ -659,7 +659,7 @@ const GVariantType *
g_variant_type_next (const GVariantType *type)
{
const gchar *type_string = g_variant_type_peek_string (type);
-
+
type_string += g_variant_type_get_string_length (type);
if (*type_string == ')' || *type_string == '}')
diff --git a/glib/gvarianttypeinfo.c b/glib/gvarianttypeinfo.c
index 9b8592d..bfeb1ad 100644
--- a/glib/gvarianttypeinfo.c
+++ b/glib/gvarianttypeinfo.c
@@ -279,7 +279,7 @@ tuple_info_new (const GVariantType *type)
info = g_slice_new (TupleInfo);
info->self.info_class = TUPLE_INFO_CLASS;
- tuple_allocate_members (type, &info->members, &info->n_members);
+ tuple_allocate_members (type, &info->members, &info->n_members);
tuple_generate_table (info);
tuple_set_self_info (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]