Print a warning when DllRegisterServer and similar functions are not marked private.
diff --git a/tools/winebuild/parser.c b/tools/winebuild/parser.c index 7890741..ce85343 100644 --- a/tools/winebuild/parser.c +++ b/tools/winebuild/parser.c
@@ -513,6 +513,17 @@ odp->ordinal = ordinal; } + if (odp->type == TYPE_STDCALL && !(odp->flags & FLAG_PRIVATE)) + { + if (!strcmp( odp->name, "DllRegisterServer" ) || + !strcmp( odp->name, "DllUnregisterServer" ) || + !strcmp( odp->name, "DllGetClassObject" ) || + !strcmp( odp->name, "DllCanUnloadNow" )) + { + warning( "Function %s should be marked private\n", odp->name ); + } + } + if (!strcmp( odp->name, "@" ) || odp->flags & FLAG_NONAME) { if (ordinal == -1)