From b7365f756ee0d81d1d5b7286f09c9dfc5b6fe892 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 15 Mar 2012 23:54:41 +0100 Subject: [PATCH] Store regex for compiler commands in a global variable. --- bin/blhc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/blhc b/bin/blhc index d966f93..6fb0f21 100755 --- a/bin/blhc +++ b/bin/blhc @@ -115,6 +115,9 @@ sub pic_pie_conflict { # CONSTANTS/VARIABLES +# Regex to catch compiler commands. +my $cc_regex = qr/((?) { } else { # Ignore lines with no compiler commands. - next if $line !~ /\b((?