Remove libctf/mkerrors.sed
authorTom Tromey <tromey@adacore.com>
Wed, 21 Oct 2020 14:54:17 +0000 (08:54 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 21 Oct 2020 17:52:17 +0000 (11:52 -0600)
commit0d01fbe64f6f3f66fb6bd3b4e79e389e600b69a2
tree454f3fb08e8503fa243a44badf74f05a9a7128d9
parentffd73a8b9ed30934b3cd00c15f5aa041621dcf9c
Remove libctf/mkerrors.sed

This patch removes libctf/mkerrors.sed, replacing it with a macro in
ctf-api.h.  This simplifies the build and avoids possible unportable
code in the sed script.

2020-10-21  Tom Tromey  <tromey@adacore.com>

* ctf-api.h (_CTF_ERRORS): New macro.

libctf/ChangeLog
2020-10-21  Tom Tromey  <tromey@adacore.com>

* mkerrors.sed: Remove.
* ctf-error.c (_CTF_FIRST): New define.
(_CTF_ITEM): Define this, not _CTF_STR.
(_ctf_errlist, _ctf_erridx): Use _CTF_ERRORS.
(ERRSTRFIELD): Rewrite.
(ERRSTRFIELD1): Remove.
* Makefile.in: Rebuild.
* Makefile.am (BUILT_SOURCES): Remove.
(ctf-error.h): Remove.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/Makefile.am
libctf/Makefile.in
libctf/ctf-error.c
libctf/mkerrors.sed [deleted file]