[pygobject] Use C style comments



commit b016ae6793839b2a6a00a69d00de30937bc611be
Author: Simon Feltman <sfeltman src gnome org>
Date:   Thu Feb 27 04:27:41 2014 -0800

    Use C style comments
    
    Update various locations which use C99 single line comments to conform to
    C90 style comments. Found with: make CFLAGS="-std=C90"

 gi/gimodule.c      |    2 +-
 gi/pygi-array.c    |    3 ++-
 gi/pygi-property.c |    2 +-
 gi/pygtype.c       |    2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gi/gimodule.c b/gi/gimodule.c
index ef3e205..25fc3d6 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 937c6b3..a50c181 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 3f6d038..6f80506 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 e1fb4e6..fb21282 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;
             }


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