Convert CARET_LINE_MARGIN to const int
gcc/ChangeLog: * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const int. From-SVN: r247666
This commit is contained in:
parent
62a77bdfe9
commit
ba82e6b5c8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-05-05 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
|
||||
int.
|
||||
|
||||
2017-05-05 David Malcolm <dmalcolm@redhat.com>
|
||||
|
||||
* diagnostic.h (diagnostic_override_option_index): Convert from
|
||||
|
|
|
@ -348,7 +348,7 @@ diagnostic_expand_location (const diagnostic_info * diagnostic, int which = 0)
|
|||
/* This is somehow the right-side margin of a caret line, that is, we
|
||||
print at least these many characters after the position pointed at
|
||||
by the caret. */
|
||||
#define CARET_LINE_MARGIN 10
|
||||
const int CARET_LINE_MARGIN = 10;
|
||||
|
||||
/* Return true if the two locations can be represented within the same
|
||||
caret line. This is used to build a prefix and also to determine
|
||||
|
|
Loading…
Add table
Reference in a new issue