* [committed] Convert CARET_LINE_MARGIN to const int
@ 2017-05-05 21:14 David Malcolm
0 siblings, 0 replies; only message in thread
From: David Malcolm @ 2017-05-05 21:14 UTC (permalink / raw)
To: gcc-patches; +Cc: David Malcolm
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-05 21:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-05 21:14 [committed] Convert CARET_LINE_MARGIN to const int David Malcolm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).