[pygobject] Don't use C99 style



commit 99485d96811667ef7a7a393b68b7361733157d61
Author: Sebastian PÃlsterl <sebp k-d-w org>
Date:   Sat Feb 18 00:38:05 2012 +0100

    Don't use C99 style

 gi/pygi-cache.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index 5dc811a..5b107e1 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -1219,6 +1219,7 @@ static void
 _arg_name_list_generate (PyGICallableCache *callable_cache)
 {
     GSList * arg_name_list = NULL;
+    int i;
 
     if (callable_cache->arg_name_hash == NULL) {
         callable_cache->arg_name_hash = g_hash_table_new (g_str_hash, g_str_equal);
@@ -1226,7 +1227,7 @@ _arg_name_list_generate (PyGICallableCache *callable_cache)
         g_hash_table_remove_all (callable_cache->arg_name_hash);
     }
 
-    for (int i=0; i < callable_cache->n_args; i++) {
+    for (i=0; i < callable_cache->n_args; i++) {
         PyGIArgCache *arg_cache = NULL;
 
         arg_cache = callable_cache->args_cache[i];



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