[committed] Convert CARET_LINE_MARGIN to const int
David Malcolm
dmalcolm@redhat.com
Fri May 5 21:14:00 GMT 2017
Successfully bootstrapped®rtested on x86_64-pc-linux-gnu.
Committed to trunk as r247666.
gcc/ChangeLog:
* diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
int.
---
gcc/diagnostic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.8.5.3
More information about the Gcc-patches
mailing list