Jacek Caban (@jacek) commented about dlls/opengl32/make_opengl:
my $name = @{$command->findnodes("./proto/name")}[0]; $proto->removeChild( $name ); my @params = $command->findnodes("./param"); - $functions{$name->textContent()} = [ $proto, \@params ]; + $name = $name->textContent(); + $functions{$name} = [ $proto, \@params ]; + + if (my $alias = @{$command->findnodes("alias")}[0]) + { + push @{$command_aliases{$name}}, $alias->{name}; + push @{$command_aliases{$alias->{name}}}, $name; + }
Doing the aliasing both ways like that seems surprising. Are you sure we should expose an extension named function even when the extension itself isn't exposed (but aliases a core function)? It should be easy to add a test using some uncommon extension. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9987#note_128543