1 Star 0 Fork 0

softxing/gfxutil

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
edk2.overrides 603 Bytes
一键复制 编辑 原始数据 按行查看 历史
joevt 提交于 2021-12-05 23:43 . Add guard against badly formed vendor paths
# Regular expressions to be performed on included edk2 *.c files.
# -0777 is used to grab the entire file at once (see Build Rules).
# Therefore, $_ is the entire file, /m is used to modify ^ and /s is used to modify .
# See https://perldoc.perl.org/perlre
while (<>) {
s/^(IsDevicePathEndType|DevPathToTextSasEx|DevPathFromTextSasEx|DevPathToTextVendor|ConvertFromTextVendor)/Old\1/mg;
s/^((\s*VOID\s+)Old((DevPathToTextSasEx|DevPathToTextVendor).*?\)))/\2\3;\n\n\1/msg;
s/^((\s*EFI_DEVICE_PATH_PROTOCOL\s*\*\s+)Old((DevPathFromTextSasEx|ConvertFromTextVendor).*?\)))/\2\3;\n\n\1/msg;
print $_;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/softxing/gfxutil.git
[email protected]:softxing/gfxutil.git
softxing
gfxutil
gfxutil
master

搜索帮助