[tools 2/2] c2man: Lowercase forwarded export module links.
Jinoh Kang
jinoh.kang.kr at gmail.com
Thu Apr 7 11:05:54 CDT 2022
Some forward specifications specify the module name in uppercase (e.g.
NTDLL), whereas Wine DLL names are always in lowercase (e.g. ntdll).
Signed-off-by: Jinoh Kang <jinoh.kang.kr at gmail.com>
---
c2man.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c2man.pl b/c2man.pl
index 883a888..b4226a0 100755
--- a/c2man.pl
+++ b/c2man.pl
@@ -1230,7 +1230,7 @@ sub output_spec($)
if (@$_[$EXPORT_CALL] eq "forward")
{
if (@$_[$EXPORT_IMPNAME] =~ /^(?:([^.]*)((?:\..*)?)\.)?([^.]*)$/) {
- $line = @$_[$EXPORT_EXPNAME]." (forward to ".$3."() in {{".$1.$2."}}{{".$1."}})";
+ $line = @$_[$EXPORT_EXPNAME]." (forward to ".$3."() in {{".$1.$2."}}{{".lc($1)."}})";
}
}
elsif (@$_[$EXPORT_CALL] eq "extern")
--
2.34.1
More information about the wine-devel
mailing list