Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commited1884a

Browse files
committed
Use the AddFile function consistently in MSVC build scripts
We seem to be using a mix of manually adding to the 'files' hash andcalling the Addfile() method. Let's just consistently use AddFile().Reviewed-by: Dagfinn Ilmari MannsåkerDiscussion:https://postgr.es/m/CAApHDvpo6g5csCTjc_0C7DMvgFPomVb0Rh-AcW5afd=Ya=LRuw@mail.gmail.com
1 parent8709228 commited1884a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/tools/msvc/Project.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sub AddFiles
5858

5959
while (my$f =shift)
6060
{
61-
$self->{files}->{$dir ."/" .$f } = 1;
61+
$self->AddFile($dir ."/" .$f, 1);
6262
}
6363
return;
6464
}
@@ -77,14 +77,14 @@ sub ReplaceFile
7777
if ($fileeq$filename)
7878
{
7979
delete$self->{files}{$file};
80-
$self->{files}{$newname} = 1;
80+
$self->AddFile($newname);
8181
return;
8282
}
8383
}
8484
elsif ($file =~m/($re)/)
8585
{
8686
delete$self->{files}{$file};
87-
$self->{files}{"$newname/$filename"} = 1;
87+
$self->AddFile("$newname/$filename");
8888
return;
8989
}
9090
}
@@ -259,11 +259,11 @@ sub AddDir
259259
if ($f =~/^\$\(top_builddir\)\/(.*)/)
260260
{
261261
$f =$1;
262-
$self->{files}->{$f} = 1;
262+
$self->AddFile($f);
263263
}
264264
else
265265
{
266-
$self->{files}->{"$reldir/$f"} = 1;
266+
$self->AddFile("$reldir/$f");
267267
}
268268
}
269269
$mf =~s{OBJS[^=]*=\s*(.*)$}{}m;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp