Make _bfd_error_buf static
authorTom Tromey <tom@tromey.com>
Sun, 27 Aug 2023 18:11:00 +0000 (12:11 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 Nov 2023 00:30:15 +0000 (17:30 -0700)
commit426931be4b538078c89c09d89ae3ecbab3146f46
tree1e07032d9436e655db96d5a724fc5e3d61b21bef
parent9da76ef30c4001de2f84ebfc9c67f7424f3b7387
Make _bfd_error_buf static

This makes _bfd_error_buf static and adds a way to clear it.  I felt
that this made the subsequent patches a little cleaner.

* bfd.c (_bfd_error_buf): Now static.
(bfd_set_input_error): Use _bfd_clear_error_data.
(_bfd_clear_error_data): New function.
(bfd_init): Use _bfd_clear_error_data.
* libbfd.h: Regenerate.
* opncls.c (bfd_close_all_done): Use _bfd_clear_error_data.
* po/bfd.pot: Regenerate.
bfd/bfd.c
bfd/libbfd.h
bfd/opncls.c
bfd/po/bfd.pot