/* Add our own module to the list of built-in modules. */
PyImport_AppendInittab("sigrokdecode", PyInit_sigrokdecode);
- /* Initialize the python interpreter. */
+ /* Initialize the Python interpreter. */
Py_Initialize();
if ((ret = set_modulepath()) != SRD_OK) {
}
/**
- * Finds a decoder instance by its python object, i.e. that instance's
+ * Finds a decoder instance by its Python object, i.e. that instance's
* instantiation of the sigrokdecode.Decoder class. This will recurse
* to find the instance anywhere in the stack tree.
*
* @param stack Pointer to a GSList of struct srd_decoder_instance,
* indicating the stack to search. To start searching at the bottom
* level of decoder instances, pass NULL.
- * @param obj The python class instantiation.
+ * @param obj The Python class instantiation.
*
* @return Pointer to struct srd_decoder_instance, or NULL if not found.
*/
di->instance_id);
if (!(py_name = PyUnicode_FromString("start"))) {
- srd_err("Unable to build python object for 'start'.");
+ srd_err("Unable to build Python object for 'start'.");
catch_exception("Protocol decoder instance %s: ",
di->instance_id);
return SRD_ERR_PYTHON;
* samplerate. This can be extended as needed.
*/
if (!(args = Py_BuildValue("{s:l}", "samplerate", (long)samplerate))) {
- srd_err("Unable to build python object for metadata.");
+ srd_err("Unable to build Python object for metadata.");
return SRD_ERR_PYTHON;
}
return cb;
}
-/* This is the backend function to python sigrokdecode.add() call. */
+/* This is the backend function to Python sigrokdecode.add() call. */
SRD_PRIV int pd_add(struct srd_decoder_instance *di, int output_type,
char *proto_id)
{
#include "config.h"
/**
- * Get the value of a python object's attribute, returned as a newly
+ * Get the value of a Python object's attribute, returned as a newly
* allocated char *.
*
* @param py_obj The object to probe.
}
/**
- * Get the value of a python dictionary item, returned as a newly
+ * Get the value of a Python dictionary item, returned as a newly
* allocated char *.
*
* @param py_obj The dictionary to probe.
}
/**
- * Get the value of a python unicode string object, returned as a newly
+ * Get the value of a Python unicode string object, returned as a newly
* allocated char *.
*
* @param py_str The unicode string object.
}
/**
- * Convert a python list of unicode strings to a NULL-terminated UTF8-encoded
+ * Convert a Python list of unicode strings to a NULL-terminated UTF8-encoded
* char * array. The caller must free each string when finished.
*
* @param py_strlist The list object.