Convert CARET_LINE_MARGIN to const int
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 5 May 2017 21:07:38 +0000 (21:07 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Fri, 5 May 2017 21:07:38 +0000 (21:07 +0000)
gcc/ChangeLog:
* diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
int.

From-SVN: r247666

gcc/ChangeLog
gcc/diagnostic.h

index 05f68fd7b490351b177e78216be835984ac42c48..aeaa27d31f7ba86d9b4c3ea4ad49b1c4f6f145b2 100644 (file)
@@ -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
index c419b000f1615c613517179cf358f3129d9b16c4..dbd1703e0ef05ccb00c21a769f76efff3fe6b5ed 100644 (file)
@@ -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