[pygobject] Avoid C99 syntax.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Avoid C99 syntax.
- Date: Sat, 14 Jan 2012 13:25:35 +0000 (UTC)
commit c71c010be01d706f90bc200194325fd82f4071b2
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jan 14 14:24:23 2012 +0100
Avoid C99 syntax.
gi/gimodule.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gi/gimodule.c b/gi/gimodule.c
index 873a56e..1961c17 100644
--- a/gi/gimodule.c
+++ b/gi/gimodule.c
@@ -60,8 +60,9 @@ _wrap_pyg_enum_register_new_gtype_and_add (PyObject *self,
GIEnumInfo *info;
gint n_values;
GEnumValue *g_enum_values;
- GType g_type;
+ int i;
const gchar *type_name;
+ GType g_type;
if (!PyArg_ParseTupleAndKeywords (args, kwargs,
"O:enum_add_make_new_gtype",
@@ -79,7 +80,7 @@ _wrap_pyg_enum_register_new_gtype_and_add (PyObject *self,
n_values = g_enum_info_get_n_values (info);
g_enum_values = g_new0 (GEnumValue, n_values + 1);
- for (int i=0; i < n_values; i++) {
+ for (i = 0; i < n_values; i++) {
GIValueInfo *value_info;
GEnumValue *enum_value;
const gchar *name;
@@ -147,8 +148,9 @@ _wrap_pyg_flags_register_new_gtype_and_add (PyObject *self,
GIEnumInfo *info;
gint n_values;
GFlagsValue *g_flags_values;
- GType g_type;
+ int i;
const gchar *type_name;
+ GType g_type;
if (!PyArg_ParseTupleAndKeywords (args, kwargs,
"O:flags_add_make_new_gtype",
@@ -166,7 +168,7 @@ _wrap_pyg_flags_register_new_gtype_and_add (PyObject *self,
n_values = g_enum_info_get_n_values (info);
g_flags_values = g_new0 (GFlagsValue, n_values + 1);
- for (int i=0; i < n_values; i++) {
+ for (i = 0; i < n_values; i++) {
GIValueInfo *value_info;
GFlagsValue *flags_value;
const gchar *name;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]