Commit b016ae67 authored by Simon Feltman's avatar Simon Feltman

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"
parent df7cba14
......@@ -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 *
......
......@@ -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 &&
......
......@@ -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:
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment