aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-05-05 21:07:38 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-05-05 21:07:38 +0000
commitba82e6b5c83bd38a14ef50de8d7f92d6314fe2b3 (patch)
tree7f352509417f0d045661c345bd8475334c54aa64 /gcc
parent62a77bdfe9b0497d20f5556c5baf2999ce152bc1 (diff)
downloadgcc-ba82e6b5c83bd38a14ef50de8d7f92d6314fe2b3.zip
gcc-ba82e6b5c83bd38a14ef50de8d7f92d6314fe2b3.tar.gz
gcc-ba82e6b5c83bd38a14ef50de8d7f92d6314fe2b3.tar.bz2
Convert CARET_LINE_MARGIN to const int
gcc/ChangeLog: * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const int. From-SVN: r247666
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/diagnostic.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 05f68fd..aeaa27d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
macro to inline function.
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h
index c419b00..dbd1703 100644
--- a/gcc/diagnostic.h
+++ b/gcc/diagnostic.h
@@ -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