From: Uwe Hermann Date: Wed, 14 Mar 2012 21:12:08 +0000 (+0100) Subject: srd: Drop unused ARRAY_SIZE/ARRAY_AND_SIZE for now. X-Git-Tag: libsigrokdecode-0.1.0~34 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a759e1a143122dd73f9051a3d48c4846839c340e;p=libsigrokdecode.git srd: Drop unused ARRAY_SIZE/ARRAY_AND_SIZE for now. --- diff --git a/sigrokdecode-internal.h b/sigrokdecode-internal.h index bdd7563..3a9df2e 100644 --- a/sigrokdecode-internal.h +++ b/sigrokdecode-internal.h @@ -24,16 +24,6 @@ #include "sigrokdecode.h" -/*--- Macros ----------------------------------------------------------------*/ - -#ifndef ARRAY_SIZE -#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) -#endif - -#ifndef ARRAY_AND_SIZE -#define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) -#endif - /*--- controller.c ----------------------------------------------------------*/ SRD_PRIV int add_modulepath(const char *path);