mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
winhlp32: Added support for some keyword support in external DLL support (RegisterRoutine parameters).
This commit is contained in:
parent
39598b9c1e
commit
efc35078ea
1 changed files with 26 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue