Rename ESC -> ESC_PARENS
authorPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 18:58:28 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 18:58:28 +0000 (18:58 +0000)
commitcf08fb29f8c484a34c4babb015348b220f80a33b
tree8ecd41fe1487c6916328cc8ff44e1002624a3a58
parentae73e2e2435cb706b18ba05734aee4137a271b3c
Rename ESC -> ESC_PARENS

A following patch will include common/preprocessor.h in some .c file
that also includes readline.h, and that revealed a conflict -- ESC is
defined by readline.h as well (actually readline's chardefs.h) with a
completely unrelated meaning:

 #define ESC CTRL('[')

Rename our version to avoid the conflict.

gdb/ChangeLog:
2019-01-23  Pedro Alves  <palves@redhat.com>

* common/preprocessor.h (ESC): Rename to ...
(ESC_PARENS): ... this.
* common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
(CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
gdb/ChangeLog
gdb/common/preprocessor.h
gdb/common/valid-expr.h