winhlp32: Added support for some keyword support in external DLL support (RegisterRoutine parameters).

This commit is contained in:
Eric Pouech 2012-02-10 21:38:03 +01:00 committed by Alexandre Julliard
parent 39598b9c1e
commit efc35078ea

View file

@ -1029,6 +1029,32 @@ int MACRO_Lookup(const char* name, struct lexret* lr)
return ret; return ret;
if (MACRO_Loaded && (ret = MACRO_DoLookUp(MACRO_Loaded, name, lr, MACRO_NumLoaded)) != EMPTY) if (MACRO_Loaded && (ret = MACRO_DoLookUp(MACRO_Loaded, name, lr, MACRO_NumLoaded)) != EMPTY)
return ret; return ret;
if (!strcmp(name, "hwndApp"))
{
WINHELP_WINDOW* win;
lr->integer = 0;
for (win = Globals.win_list; win; win = win->next)
{
if (!strcmp(win->info->name, "main"))
{
lr->integer = (LONG_PTR)win->hMainWnd;
break;
}
}
return INTEGER;
}
if (!strcmp(name, "hwndContext"))
{
lr->integer = Globals.active_win ?
(LONG_PTR)Globals.active_win->hMainWnd : 0;
return INTEGER;
}
if (!strcmp(name, "qchPath") || !strcmp(name, "qError") || !strcmp(name, "lTopicNo") ||
!strcmp(name, "hfs") || !strcmp(name, "coForeground") || !strcmp(name, "coBackground"))
{
WINE_FIXME("keyword %s not substituted in macro parsing\n", name);
return EMPTY;
}
lr->string = name; lr->string = name;
return IDENTIFIER; return IDENTIFIER;