X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=type_logic.c;h=80e49f163ed903014457057b975b037b50859b31;hp=ded0062456467658f8645353c89e0a1671c30a93;hb=d95f2888014f54fc650dc575c270cc2891580f4f;hpb=57790bc8c558ccf2e57b3d973c043088232628c7 diff --git a/type_logic.c b/type_logic.c index ded0062..80e49f1 100644 --- a/type_logic.c +++ b/type_logic.c @@ -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 * @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -#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 #include @@ -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) {