mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
checksrc.pl: support #line instructions
makes it identify the correct source file and line
This commit is contained in:
parent
8dbcdc8c09
commit
3c4fba8cf5
@ -403,6 +403,13 @@ sub scanfile {
|
||||
checksrc($cmd, $line, $file, $l)
|
||||
}
|
||||
|
||||
if($l =~ /^#line (\d+) \"([^\"]*)\"/) {
|
||||
# a #line instruction
|
||||
$file = $2;
|
||||
$line = $1;
|
||||
next;
|
||||
}
|
||||
|
||||
# check for a copyright statement and save the years
|
||||
if($l =~ /\* +copyright .* (\d\d\d\d|)/i) {
|
||||
my $count = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user