Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 208667 Details for
Bug 291060
patch for dev-util/colorgcc-1.3.2-r4: correctly process "note" gcc messages and split "intro" filename and message
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds correct "note" and "intro" messages processing
colorgcc.patch (text/plain), 1.88 KB, created by
Cyril42e
on 2009-10-29 20:03:26 UTC
(
hide
)
Description:
adds correct "note" and "intro" messages processing
Filename:
MIME Type:
Creator:
Cyril42e
Created:
2009-10-29 20:03:26 UTC
Size:
1.88 KB
patch
obsolete
>--- /usr/bin/colorgcc 2009-10-29 20:24:46.717190000 +0100 >+++ colorgcc 2009-10-29 20:27:42.614162888 +0100 >@@ -102,7 +102,8 @@ > $nocolor{"dumb"} = "true"; > > $colors{"srcColor"} = color("cyan"); >- $colors{"introColor"} = color("blue"); >+ $colors{"introFileNameColor"} = color("blue"); >+ $colors{"introMessageColor"} = color("blue"); > > $colors{"warningFileNameColor"} = color("yellow"); > $colors{"warningNumberColor"} = color("yellow"); >@@ -111,6 +112,10 @@ > $colors{"errorFileNameColor"} = color("bold red"); > $colors{"errorNumberColor"} = color("bold red"); > $colors{"errorMessageColor"} = color("bold red"); >+ >+ $colors{"noteFileNameColor"} = color("green"); >+ $colors{"noteNumberColor"} = color("green"); >+ $colors{"noteMessageColor"} = color("green"); > } > > sub loadPreferences >@@ -290,12 +295,18 @@ > print($colors{"warningNumberColor"}, "$field2:", color("reset")); > srcscan($field3, $colors{"warningMessageColor"}); > } >- else >- { >+ elsif ($field3 =~ m/\s+error:.*/) >+ { > # Error > print($colors{"errorFileNameColor"}, "$field1:", color("reset")); > print($colors{"errorNumberColor"}, "$field2:", color("reset")); > srcscan($field3, $colors{"errorMessageColor"}); >+ } else >+ { >+ # Note >+ print($colors{"noteFileNameColor"}, "$field1:", color("reset")); >+ print($colors{"noteNumberColor"}, "$field2:", color("reset")); >+ srcscan($field3, $colors{"noteMessageColor"}); > } > print("\n"); > } >@@ -305,8 +316,11 @@ > } > elsif (m/^(.*?):(.+):$/) # filename:message: > { >+ my $field1 = $1 || ""; >+ my $field2 = $2 || ""; > # No line number, treat as an "introductory" line of text. >- srcscan($_, $colors{"introColor"}); >+ print($colors{"introFileNameColor"}, "$field1:", color("reset")); >+ print($colors{"introMessageColor"}, "$field2:\n", color("reset")); > } > else # Anything else. > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291060
: 208667