[pygobject/invoke-rewrite: 3/3] whitespace fixes



commit 43849c51391fc9cd239697065c3d40fa02fb6783
Author: John (J5) Palmieri <johnp redhat com>
Date:   Thu Jan 6 17:30:14 2011 -0500

    whitespace fixes

 gi/pygi-cache.c |   24 ++++++++++++------------
 gi/pygi-cache.h |   42 +++++++++++++++++++++---------------------
 2 files changed, 33 insertions(+), 33 deletions(-)
---
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index f9858e9..8757672 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -58,18 +58,18 @@ _pygi_arg_cache_clear (PyGIArgCache *cache);
     cache->is_pointer = FALSE;
     cache->direction = 0;
     g_base_info_unref(cache->arg_info);
-    
-    cache->in_validator = NULL; 
-    cache->in_marshaler = NULL; 
-    cache->out_marshaler = NULL; 
-    cache->cleanup = NULL; 
+
+    cache->in_validator = NULL;
+    cache->in_marshaler = NULL;
+    cache->out_marshaler = NULL;
+    cache->cleanup = NULL;
 
     _pygi_sequence_cache_free(cache->sequence_cache);
     cache->sequence_cache = NULL;
     _pygi_interface_cache_free(cache->interface_cache);
     cache->interface_cache = NULL;
     _pygi_hash_cache_free(cache->hash_cache);
-    cache->hash_cache = NULL; 
+    cache->hash_cache = NULL;
     _pygi_callback_cache_free(cache->callback_cache);
     cache->callback_cache = NULL;
 
@@ -87,7 +87,7 @@ _pygi_function_cache_free (PyGIFunctionCache *cache)
     for (i = 0; i < cache->n_args; i++) {
         PyGIArgCache *tmp = cache->args_cache[i];
         _pygi_arg_cache_clear(tmp);
-        g_slice_free(PyGIArgCache, tmp); 
+        g_slice_free(PyGIArgCache, tmp);
     }
 
     g_slice_free(PyGIFunctionCache, cache);
@@ -127,7 +127,7 @@ _arg_cache_generate_metadata_in_boolean(PyGIArgCache *arg_cache,
                                         PyGIFunctionCache *function_cache,
                                         GIArgInfo *arg_info)
 {
-    arg_cache->in_marshaler = _pygi_marshal_in_boolean; 
+    arg_cache->in_marshaler = _pygi_marshal_in_boolean;
     return TRUE;
 }
 
@@ -456,14 +456,14 @@ _arg_cache_generate_metadata_in(PyGIArgCache *arg_cache,
            break;
     }
 
-    function_cache->in_args = 
+    function_cache->in_args =
         g_slist_append(function_cache->in_args, arg_cache);
 
     return success;
 }
 
 static inline boolean
-_args_cache_generate(GIFunctionInfo *function_info, 
+_args_cache_generate(GIFunctionInfo *function_info,
                      PyGIFunctionCache *function_cache)
 {
     for (i = 0; i < function_cache->n_args; i++) {
@@ -474,7 +474,7 @@ _args_cache_generate(GIFunctionInfo *function_info,
         if (function_cache->args_cache[i] != NULL)
             continue;
 
-        arg_info = 
+        arg_info =
             g_callable_info_get_arg ( (GICallableInfo *) function_info, i);
 
         arg_cache = function_cache->args_cache[i] = g_slice_new0(PyGIArgCache);
@@ -514,5 +514,5 @@ _pygi_function_cache_new (GIFunctionInfo *function_info)
 
 err:
     _pygi_function_cache_free(fc);
-    return NULL; 
+    return NULL;
 }
diff --git a/gi/pygi-cache.h b/gi/pygi-cache.h
index b5538b1..12cfa02 100644
--- a/gi/pygi-cache.h
+++ b/gi/pygi-cache.h
@@ -31,7 +31,7 @@ typedef struct _PyGIFunctionCache PyGIFunctionCache;
 typedef struct _PyGIArgCache PyGIArgCache;
 
 typedef gboolean (*PyGIMarshalInFunc) (PyGIState         *state,
-                                       PyGIFunctionCache *function_cache, 
+                                       PyGIFunctionCache *function_cache,
                                        PyGIArgCache      *arg_cache,
                                        PyObject          *py_arg,
                                        GIArgument        *arg);
@@ -42,20 +42,20 @@ typedef gboolean (*PyGIArgCleanupFunc) (gpointer data);
 
 typedef struct _PyGISequenceCache
 {
-    gssize fixed_size; 
+    gssize fixed_size;
     PyGIValidateFunc *item_validate_func;
     PyGIMarshalFunc *item_marshal_func;
     gint len_arg_index;
-    gboolean is_zero_terminated; 
+    gboolean is_zero_terminated;
     gsize item_size;
-    GITypeTag item_tag_type; 
+    GITypeTag item_tag_type;
 } PyGISequenceCache;
 
 typedef struct _PyGIInterfaceCache
 {
-    gboolean is_foreign; 
-    GType g_type; 
-    PyObject *py_type; 
+    gboolean is_foreign;
+    GType g_type;
+    PyObject *py_type;
 } PyGIInterfaceCache;
 
 typedef struct _PyGIHashCache
@@ -63,35 +63,35 @@ typedef struct _PyGIHashCache
     GITypeTag key_type_tag;
     PyGIValidateFunc *key_validate_func;
     PyGIMarshalFunc *key_marshal_func;
-    GITypeTag value_type_tag; 
+    GITypeTag value_type_tag;
     PyGIValidateFunc *value_validate_func;
     PyGIValidateFunc *value_marshal_func;
 } PyGIHashCache;
 
-typedef struct _PyGICallbackCache  
+typedef struct _PyGICallbackCache
 {
     gint py_user_data_index;
     gint user_data_index;
-    gint destroy_notify_index; 
+    gint destroy_notify_index;
     GScope scope;
-} PyGICallbackCache; 
+} PyGICallbackCache;
 
 struct _PyGIArgCache
 {
-    gboolean is_aux; 
-    gboolean is_pointer; 
+    gboolean is_aux;
+    gboolean is_pointer;
     GIDirection direction;
     GITransfer transfer;
     GIArgInfo *arg_info;
     GIArgument *default_value;
 
-    PyGIMashalInFunc in_marshaler; 
-    PyGIMarshalOutFunc out_marshaler; 
-    PyGIArgCleanupFunc cleanup; 
+    PyGIMashalInFunc in_marshaler;
+    PyGIMarshalOutFunc out_marshaler;
+    PyGIArgCleanupFunc cleanup;
 
-    PyGISequenceCache *sequence_cache; 
-    PyGIInterfaceCache *interface_cache; 
-    PyGIHashCache *hash_cache; 
+    PyGISequenceCache *sequence_cache;
+    PyGIInterfaceCache *interface_cache;
+    PyGIHashCache *hash_cache;
     PyCallbackCache *callback_cache;
 
     gint c_arg_index;
@@ -103,14 +103,14 @@ struct _PyGIFunctionCache
     gboolean is_method;
     gboolean is_constructor;
 
-    PyGIArgCache **args_cache; 
+    PyGIArgCache **args_cache;
     GSList *in_args;
     GSList *out_arg;
 
     /* counts */
     guint n_in_args;
     guint n_out_args;
-    guint n_args;   
+    guint n_args;
 };
 
 void _pygi_arg_cache_clear	(PyGIArgCache *cache);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]