summaryrefslogtreecommitdiff
path: root/make/run-cc.pl
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-17 17:02:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-03-17 17:02:47 +0000
commitab4e56b784c952a0aae745a2b1feca0ac0cf592b (patch)
tree50f47cadcfe04ee5397efa40d0d1a1a5d7d2f53b /make/run-cc.pl
parente7a7bc7bd2b80940878c436c6fd9c5059bec7577 (diff)
Translate std::string, irc::string and std::deque to more readable forms in error messages. I'll do others as need be and as i notice them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9116 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/run-cc.pl')
-rwxr-xr-xmake/run-cc.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl
index d4c976982..7ea2f39d0 100755
--- a/make/run-cc.pl
+++ b/make/run-cc.pl
@@ -138,6 +138,16 @@ if ($pid) {
# Now read each line of stderr
LINE: while (defined(my $line = <$r_stderr>)) {
chomp $line;
+
+ # someone come up with a better way of doing this, it cant go in message filters as message filters
+ # cant do straight-out replace.
+ #
+ # The order of these replacements is IMPORTANT. DO NOT REORDER THEM.
+
+ $line =~ s/std\:\:basic_string\<char\, std\:\:char_traits\<char\>, std::allocator\<char\> \>(\s+|)/std::string/g;
+ $line =~ s/std\:\:basic_string\<char\, .*?irc_char_traits\<char\>, std::allocator\<char\> \>(\s+|)/irc::string/g;
+ $line =~ s/std\:\:deque\<(\S+)\, std::allocator\<\S+\> \>/std::deque<$1>/g;
+
for my $filter (@msgfilters) {
my @caps;
if (@caps = ($line =~ $filter->[0])) {