From ab4e56b784c952a0aae745a2b1feca0ac0cf592b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 17 Mar 2008 17:02:47 +0000 Subject: 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 --- make/run-cc.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'make/run-cc.pl') 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\, std::allocator\ \>(\s+|)/std::string/g; + $line =~ s/std\:\:basic_string\, std::allocator\ \>(\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])) { -- cgit v1.2.3