unify duplicate defines of the ARRAY_SIZE macro

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1745 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 15 years ago
parent ca2f6421c8
commit a5927a6490

@ -10,6 +10,9 @@
src/tap/usbconn/libftdi.c, src/tap/usbconn/libusb.c, sysdep.h: Unify
system checks in the common sysdep.h header.
* src/cmd/cmd_bfin.c, src/flash/detectflash.c, sysdep.h: Unify ARRAY_SIZE
helper macro here.
2010-01-28 Mike Frysinger <vapier@gentoo.org>
* src/cmd/cmd_bfin.c: Replace one-insn-a-file option with dynamic instruction

@ -34,8 +34,6 @@
#include "cmd.h"
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
static int
cmd_bfin_run (urj_chain_t *chain, char *params[])
{

@ -297,8 +297,6 @@ urj_flash_detectflash (urj_log_level_t ll, urj_bus_t *bus, uint32_t adr)
};
const char *bad_value = N_("Bad value");
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
pri_vendor_tbl = cfi->identification_string.pri_vendor_tbl;
major_version = pri_vendor_tbl->major_version;
minor_version = pri_vendor_tbl->minor_version;

@ -72,4 +72,6 @@ struct timespec { unsigned long tv_sec, tv_nsec; };
#define nanosleep(req, rem) usleep((req)->tv_sec * 1000 * 1000 + (req)->tv_nsec / 1000)
#endif
#define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))
#endif /* SYSDEP_H */

Loading…
Cancel
Save