Provide an inline startswith function in bfd.h
authorAlan Modra <amodra@gmail.com>
Fri, 19 Mar 2021 07:09:24 +0000 (17:39 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 21 Mar 2021 12:30:32 +0000 (23:00 +1030)
commite93388417c1ecc6d69b155045cabb994cb8687fd
tree24fa2ed727efd5a1775e4c8b76b8d92a5ae0ea10
parent38e41a88457d2fcab42596c5d0183e410868c813
Provide an inline startswith function in bfd.h

bfd/
* bfd-in.h (startswith): New inline.
(CONST_STRNEQ): Use startswith.
* bfd-in2.h: Regenerate.
gdbsupport/
* common-utils.h (startswith): Delete version now supplied by bfd.h.
libctf/
* ctf-impl.h: Include string.h.
bfd/ChangeLog
bfd/bfd-in.h
bfd/bfd-in2.h
gdbsupport/ChangeLog
gdbsupport/common-utils.h
libctf/ChangeLog
libctf/ctf-impl.h