]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_logic.c
Drop obsolete report() method.
[libsigrokdecode.git] / type_logic.c
index 098e34d84d3af9d1471fa936ec17a0cec254efa2..80e49f163ed903014457057b975b037b50859b31 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrokdecode project.
  *
  * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
  *
@@ -17,7 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include "config.h"
 #include <inttypes.h>
 #include <string.h>
@@ -29,11 +29,11 @@ static PyObject *srd_logic_iter(PyObject *self)
 
 static PyObject *srd_logic_iternext(PyObject *self)
 {
-       int i;
-       PyObject *py_samplenum, *py_samples;
        srd_logic *logic;
+       PyObject *py_samplenum, *py_samples;
        uint64_t sample;
        uint8_t probe_samples[SRD_MAX_NUM_PROBES + 1];
+       int i;
 
        logic = (srd_logic *)self;
        if (logic->itercnt >= logic->inbuflen / logic->di->data_unitsize) {
@@ -80,6 +80,7 @@ static PyObject *srd_logic_iternext(PyObject *self)
        return logic->sample;
 }
 
+/** @cond PRIVATE */
 SRD_PRIV PyTypeObject srd_logic_type = {
        PyVarObject_HEAD_INIT(NULL, 0)
        .tp_name = "srd_logic",
@@ -89,3 +90,4 @@ SRD_PRIV PyTypeObject srd_logic_type = {
        .tp_iter = srd_logic_iter,
        .tp_iternext = srd_logic_iternext,
 };
+/** @endcond */