}
-/* This is a neutered version of libsigrokdecode's py_str_as_str(). It
+/*
+ * This is a neutered version of libsigrokdecode's py_str_as_str(). It
* does no error checking, but then the only strings it processes are
- * generated by Python's repr(), so are known good. */
+ * generated by Python's repr(), so are known good.
+ */
static char *py_str_as_str(const PyObject *py_str)
{
PyObject *py_encstr;
g_hash_table_destroy(channels);
}
- /* If this is not the first decoder in the list, stack it
- * on top of the previous one. */
+ /*
+ * If this is not the first decoder in the list, stack it
+ * on top of the previous one.
+ */
if (prev_di) {
if (srd_inst_stack(sess, prev_di, di) != SRD_OK) {
ERR("Failed to stack decoder instances.");
py_pathlist = PyObject_GetAttrString(py_mod, "__path__");
for (i = 0; i < PyList_Size(py_pathlist); i++) {
py_path = PyList_GetItem(py_pathlist, i);
- PyUnicode_FSConverter(PyList_GetItem(py_pathlist, i), &py_path);
+ PyUnicode_FSConverter(PyList_GetItem(py_pathlist, i), &py_path);
path = PyBytes_AS_STRING(py_path);
if (!(d = opendir(path))) {
ERR("Invalid module path '%s'", path);