summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gi/gimodule.c2
-rw-r--r--gi/pygi-array.c3
-rw-r--r--gi/pygi-property.c2
-rw-r--r--gi/pygtype.c2
4 files changed, 5 insertions, 4 deletions
diff --git a/gi/gimodule.c b/gi/gimodule.c
index ef3e2050..25fc3d60 100644
--- a/gi/gimodule.c
+++ b/gi/gimodule.c
@@ -274,7 +274,7 @@ _wrap_pyg_flags_register_new_gtype_and_add (PyObject *self,
static void
initialize_interface (GTypeInterface *iface, PyTypeObject *pytype)
{
- // pygobject prints a warning if interface_init is NULL
+ /* pygobject prints a warning if interface_init is NULL */
}
static PyObject *
diff --git a/gi/pygi-array.c b/gi/pygi-array.c
index 937c6b32..a50c1815 100644
--- a/gi/pygi-array.c
+++ b/gi/pygi-array.c
@@ -600,7 +600,8 @@ _pygi_marshal_to_py_array (PyGIInvokeState *state,
} else if (item_arg_cache->type_tag == GI_TYPE_TAG_INTERFACE) {
PyGIInterfaceCache *iface_cache = (PyGIInterfaceCache *) item_arg_cache;
- // FIXME: This probably doesn't work with boxed types or gvalues. See fx. _pygi_marshal_from_py_array()
+ /* FIXME: This probably doesn't work with boxed types or gvalues.
+ * See fx. _pygi_marshal_from_py_array() */
switch (g_base_info_get_type (iface_cache->interface_info)) {
case GI_INFO_TYPE_STRUCT:
if (arg_cache->transfer == GI_TRANSFER_EVERYTHING &&
diff --git a/gi/pygi-property.c b/gi/pygi-property.c
index 3f6d0383..6f805063 100644
--- a/gi/pygi-property.c
+++ b/gi/pygi-property.c
@@ -302,7 +302,7 @@ pygi_set_property_value_real (PyGObject *instance,
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));
- // FIXME: Lots of types still unhandled
+ /* FIXME: Lots of types still unhandled */
type_tag = g_type_info_get_tag (type_info);
switch (type_tag) {
case GI_TYPE_TAG_INTERFACE:
diff --git a/gi/pygtype.c b/gi/pygtype.c
index e1fb4e66..fb212829 100644
--- a/gi/pygtype.c
+++ b/gi/pygtype.c
@@ -946,7 +946,7 @@ gclosure_from_pyfunc(PyGObject *object, PyObject *func)
PyGClosure *pyclosure = l->data;
int res = PyObject_RichCompareBool(pyclosure->callback, func, Py_EQ);
if (res == -1) {
- PyErr_Clear(); // Is there anything else to do?
+ PyErr_Clear(); /* Is there anything else to do? */
} else if (res) {
return (GClosure*)pyclosure;
}