diff options
author | Martin Liska <mliska@suse.cz> | 2021-03-22 14:56:16 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-04-01 15:00:56 +0200 |
commit | e9b095a538c189369b4792662ea455d2314b0492 (patch) | |
tree | 8a6918add18cd366abcee7964b40605471ce18df /include | |
parent | d34049e8bb32ae2dd717dbac88dbcebefe2d6c09 (diff) | |
download | binutils-gdb-e9b095a538c189369b4792662ea455d2314b0492.tar.gz |
Remove strneq macro and use startswith.
bfd/ChangeLog:
* ecoff.c (strneq): Remove strneq and use startswith.
(_bfd_ecoff_slurp_armap): Likewise.
binutils/ChangeLog:
* elfcomm.h (strneq): Remove strneq and use startswith.
* readelf.c (ia64_process_unwind): Likewise.
(process_note): Likewise.
gas/ChangeLog:
* config/obj-coff.c (strneq): Remove strneq and use startswith.
(weak_is_altname): Likewise.
(obj_coff_section): Likewise.
* config/tc-cr16.c (process_label_constant): Likewise.
* config/tc-crx.c (strneq): Likewise.
include/ChangeLog:
* opcode/cr16.h (strneq): Remove strneq and use startswith.
ld/ChangeLog:
* ldbuildid.c (strneq): Remove strneq and use startswith.
(validate_build_id_style): Likewise.
(compute_build_id_size): Likewise.
opcodes/ChangeLog:
* arm-dis.c (strneq): Remove strneq and use startswith.
* cr16-dis.c (print_insn_cr16): Likewise.
* score-dis.c (streq): Likewise.
(strneq): Likewise.
* score7-dis.c (strneq): Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/cr16.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index ab3f029674b..9eb5f0a7bed 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2021-04-01 Martin Liska <mliska@suse.cz> + + * opcode/cr16.h (strneq): Remove strneq and use startswith. + 2021-03-31 Alan Modra <amodra@gmail.com> * bfdlink.h: Replace bfd_boolean with bool throughout. diff --git a/include/opcode/cr16.h b/include/opcode/cr16.h index a96b3374c8a..09e27122a17 100644 --- a/include/opcode/cr16.h +++ b/include/opcode/cr16.h @@ -425,7 +425,6 @@ extern const char * cr16_no_op_insn[]; /* Utility macros for string comparison. */ #define streq(a, b) (strcmp (a, b) == 0) -#define strneq(a, b, c) (strncmp (a, b, c) == 0) /* Long long type handling. */ /* Replace all appearances of 'long long int' with LONGLONG. */ |