move ARRAY_SIZE macro to types.h
The ARRAY_SIZE macro was defined in several target files, so move it to types.h. This patch also removes two other identical macros: DIM (from jtag.h) and asizeof (from arm11.h).
This commit is contained in:
@@ -470,7 +470,7 @@ COMMAND_HANDLER(handle_xsvf_command)
|
||||
TAP_IDLE,
|
||||
};
|
||||
|
||||
jtag_add_pathmove(DIM(exception_path), exception_path);
|
||||
jtag_add_pathmove(ARRAY_SIZE(exception_path), exception_path);
|
||||
|
||||
if (verbose)
|
||||
LOG_USER("%s mismatch, xsdrsize=%d retry=%d", op_name, xsdrsize, attempt);
|
||||
|
||||
Reference in New Issue
Block a user