]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd: s/python/Python/.
authorUwe Hermann <redacted>
Fri, 10 Feb 2012 08:29:38 +0000 (09:29 +0100)
committerUwe Hermann <redacted>
Fri, 10 Feb 2012 08:30:42 +0000 (09:30 +0100)
controller.c
module_sigrokdecode.c
type_decoder.c
util.c

index 68ff9f7bfd5b837e73d9bbb67f37e761e6edda70..6a0aa2ada157d303fa328c8b3d634f9be2fa81a3 100644 (file)
@@ -71,7 +71,7 @@ SRD_API int srd_init(void)
        /* Add our own module to the list of built-in modules. */
        PyImport_AppendInittab("sigrokdecode", PyInit_sigrokdecode);
 
        /* 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) {
        Py_Initialize();
 
        if ((ret = set_modulepath()) != SRD_OK) {
@@ -472,14 +472,14 @@ SRD_API struct srd_decoder_instance *srd_instance_find_by_id(char *instance_id)
 }
 
 /**
 }
 
 /**
- * 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.
  * 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.
  */
  *
  * @return Pointer to struct srd_decoder_instance, or NULL if not found.
  */
@@ -511,7 +511,7 @@ SRD_API int srd_instance_start(struct srd_decoder_instance *di, PyObject *args)
                di->instance_id);
 
        if (!(py_name = PyUnicode_FromString("start"))) {
                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;
                catch_exception("Protocol decoder instance %s: ",
                                di->instance_id);
                return SRD_ERR_PYTHON;
@@ -653,7 +653,7 @@ SRD_API int srd_session_start(int num_probes, int unitsize, uint64_t samplerate)
         * samplerate. This can be extended as needed.
         */
        if (!(args = Py_BuildValue("{s:l}", "samplerate", (long)samplerate))) {
         * 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 SRD_ERR_PYTHON;
        }
 
@@ -728,7 +728,7 @@ SRD_API void *srd_find_callback(int output_type)
        return cb;
 }
 
        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)
 {
 SRD_PRIV int pd_add(struct srd_decoder_instance *di, int output_type,
                    char *proto_id)
 {
index 1cbcc40353c1759dba473858e9f9a289a027aa5a..0fe109619f17227ff908ac73b0e5f486b2931fff 100644 (file)
@@ -28,7 +28,7 @@ extern SRD_PRIV PyTypeObject srd_Decoder_type;
 extern SRD_PRIV PyTypeObject srd_logic_type;
 
 /*
 extern SRD_PRIV PyTypeObject srd_logic_type;
 
 /*
- * When initialized, a reference to this module inside the python interpreter
+ * When initialized, a reference to this module inside the Python interpreter
  * lives here.
  */
 SRD_PRIV PyObject *mod_sigrokdecode = NULL;
  * lives here.
  */
 SRD_PRIV PyObject *mod_sigrokdecode = NULL;
index 028865beb79edc5f860820b0a590c1a99ad5c628..016a75580fa1f99865732ddb7572d214464604f5 100644 (file)
@@ -189,7 +189,7 @@ static PyObject *Decoder_add(PyObject *self, PyObject *args)
        }
 
        if (!PyArg_ParseTuple(args, "is", &output_type, &proto_id)) {
        }
 
        if (!PyArg_ParseTuple(args, "is", &output_type, &proto_id)) {
-               /* Let python raise this exception. */
+               /* Let Python raise this exception. */
                return NULL;
        }
 
                return NULL;
        }
 
diff --git a/util.c b/util.c
index 78cfdc3fadf338b8e1f46cf0054d27f02f3bb23f..27a5e07574cbc0f8e5a31c4df8d72f1cf28d1ace 100644 (file)
--- a/util.c
+++ b/util.c
@@ -23,7 +23,7 @@
 #include "config.h"
 
 /**
 #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.
  * allocated char *.
  *
  * @param py_obj The object to probe.
@@ -63,7 +63,7 @@ SRD_PRIV int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr)
 }
 
 /**
 }
 
 /**
- * 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.
  * allocated char *.
  *
  * @param py_obj The dictionary to probe.
@@ -102,7 +102,7 @@ SRD_PRIV int py_dictitem_as_str(PyObject *py_obj, const char *key,
 }
 
 /**
 }
 
 /**
- * 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.
  * allocated char *.
  *
  * @param py_str The unicode string object.
@@ -155,7 +155,7 @@ err_out:
 }
 
 /**
 }
 
 /**
- * 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.
  * char * array. The caller must free each string when finished.
  *
  * @param py_strlist The list object.