ReactOS  0.4.12-dev-51-ge94618b
macro.c File Reference
#include <stdio.h>
#include "windows.h"
#include "commdlg.h"
#include "shellapi.h"
#include "winhelp.h"
#include "wine/debug.h"
Include dependency graph for macro.c:

Go to the source code of this file.

Classes

struct  MacroDesc
 

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (winhelp)
 
static charStrDup (const char *str)
 
static WINHELP_BUTTON ** MACRO_LookupButton (WINHELP_WINDOW *win, LPCSTR name)
 
static void CALLBACK MACRO_JumpID (LPCSTR lpszPathWindow, LPCSTR topic_id)
 
void CALLBACK MACRO_CreateButton (LPCSTR id, LPCSTR name, LPCSTR macro)
 
static void CALLBACK MACRO_DestroyButton (LPCSTR str)
 
void CALLBACK MACRO_DisableButton (LPCSTR id)
 
static void CALLBACK MACRO_EnableButton (LPCSTR id)
 
void CALLBACK MACRO_JumpContents (LPCSTR lpszPath, LPCSTR lpszWindow)
 
void CALLBACK MACRO_About (void)
 
static void CALLBACK MACRO_AddAccelerator (LONG u1, LONG u2, LPCSTR str)
 
static void CALLBACK MACRO_ALink (LPCSTR str1, LONG u, LPCSTR str2)
 
void CALLBACK MACRO_Annotate (void)
 
static void CALLBACK MACRO_AppendItem (LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4)
 
static void CALLBACK MACRO_Back (void)
 
static void CALLBACK MACRO_BackFlush (void)
 
void CALLBACK MACRO_BookmarkDefine (void)
 
static void CALLBACK MACRO_BookmarkMore (void)
 
static void CALLBACK MACRO_BrowseButtons (void)
 
static void CALLBACK MACRO_ChangeButtonBinding (LPCSTR id, LPCSTR macro)
 
static void CALLBACK MACRO_ChangeEnable (LPCSTR id, LPCSTR macro)
 
static void CALLBACK MACRO_ChangeItemBinding (LPCSTR str1, LPCSTR str2)
 
static void CALLBACK MACRO_CheckItem (LPCSTR str)
 
static void CALLBACK MACRO_CloseSecondarys (void)
 
static void CALLBACK MACRO_CloseWindow (LPCSTR lpszWindow)
 
static void CALLBACK MACRO_Compare (LPCSTR str)
 
static void CALLBACK MACRO_Contents (void)
 
static void CALLBACK MACRO_ControlPanel (LPCSTR str1, LPCSTR str2, LONG u)
 
void CALLBACK MACRO_CopyDialog (void)
 
static void CALLBACK MACRO_CopyTopic (void)
 
static void CALLBACK MACRO_DeleteItem (LPCSTR str)
 
static void CALLBACK MACRO_DeleteMark (LPCSTR str)
 
static void CALLBACK MACRO_DisableItem (LPCSTR str)
 
static void CALLBACK MACRO_EnableItem (LPCSTR str)
 
static void CALLBACK MACRO_EndMPrint (void)
 
static void CALLBACK MACRO_ExecFile (LPCSTR pgm, LPCSTR args, LONG cmd_show, LPCSTR topic)
 
static void CALLBACK MACRO_ExecProgram (LPCSTR str, LONG u)
 
void CALLBACK MACRO_Exit (void)
 
static void CALLBACK MACRO_ExtAbleItem (LPCSTR str, LONG u)
 
static void CALLBACK MACRO_ExtInsertItem (LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u1, LONG u2)
 
static void CALLBACK MACRO_ExtInsertMenu (LPCSTR str1, LPCSTR str2, LPCSTR str3, LONG u1, LONG u2)
 
static BOOL CALLBACK MACRO_FileExist (LPCSTR str)
 
void CALLBACK MACRO_FileOpen (void)
 
static void CALLBACK MACRO_Find (void)
 
static void CALLBACK MACRO_Finder (void)
 
static void CALLBACK MACRO_FloatingMenu (void)
 
static void CALLBACK MACRO_Flush (void)
 
static void CALLBACK MACRO_FocusWindow (LPCSTR lpszWindow)
 
static void CALLBACK MACRO_Generate (LPCSTR str, LONG w, LONG l)
 
static void CALLBACK MACRO_GotoMark (LPCSTR str)
 
void CALLBACK MACRO_HelpOn (void)
 
void CALLBACK MACRO_HelpOnTop (void)
 
void CALLBACK MACRO_History (void)
 
static void CALLBACK MACRO_IfThen (BOOL b, LPCSTR t)
 
static void CALLBACK MACRO_IfThenElse (BOOL b, LPCSTR t, LPCSTR f)
 
static BOOL CALLBACK MACRO_InitMPrint (void)
 
static void CALLBACK MACRO_InsertItem (LPCSTR str1, LPCSTR str2, LPCSTR str3, LPCSTR str4, LONG u)
 
static void CALLBACK MACRO_InsertMenu (LPCSTR str1, LPCSTR str2, LONG u)
 
static BOOL CALLBACK MACRO_IsBook (void)
 
static BOOL CALLBACK MACRO_IsMark (LPCSTR str)
 
static BOOL CALLBACK MACRO_IsNotMark (LPCSTR str)
 
void CALLBACK MACRO_JumpContext (LPCSTR lpszPath, LPCSTR lpszWindow, LONG context)
 
void CALLBACK MACRO_JumpHash (LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash)
 
static void CALLBACK MACRO_JumpHelpOn (void)
 
static void CALLBACK MACRO_JumpKeyword (LPCSTR lpszPath, LPCSTR lpszWindow, LPCSTR keyword)
 
static void CALLBACK MACRO_KLink (LPCSTR str1, LONG u, LPCSTR str2, LPCSTR str3)
 
static void CALLBACK MACRO_Menu (void)
 
static void CALLBACK MACRO_MPrintHash (LONG u)
 
static void CALLBACK MACRO_MPrintID (LPCSTR str)
 
static void CALLBACK MACRO_Next (void)
 
static void CALLBACK MACRO_NoShow (void)
 
void CALLBACK MACRO_PopupContext (LPCSTR str, LONG u)
 
static void CALLBACK MACRO_PopupHash (LPCSTR str, LONG u)
 
static void CALLBACK MACRO_PopupId (LPCSTR str1, LPCSTR str2)
 
static void CALLBACK MACRO_PositionWindow (LONG i1, LONG i2, LONG u1, LONG u2, LONG u3, LPCSTR str)
 
static void CALLBACK MACRO_Prev (void)
 
void CALLBACK MACRO_Print (void)
 
void CALLBACK MACRO_PrinterSetup (void)
 
static void CALLBACK MACRO_RegisterRoutine (LPCSTR dll_name, LPCSTR proc, LPCSTR args)
 
static void CALLBACK MACRO_RemoveAccelerator (LONG u1, LONG u2)
 
static void CALLBACK MACRO_ResetMenu (void)
 
static void CALLBACK MACRO_SaveMark (LPCSTR str)
 
static void CALLBACK MACRO_Search (void)
 
void CALLBACK MACRO_SetContents (LPCSTR str, LONG u)
 
static void CALLBACK MACRO_SetHelpOnFile (LPCSTR str)
 
static void CALLBACK MACRO_SetPopupColor (LONG r, LONG g, LONG b)
 
static void CALLBACK MACRO_ShellExecute (LPCSTR str1, LPCSTR str2, LONG u1, LONG u2, LPCSTR str3, LPCSTR str4)
 
static void CALLBACK MACRO_ShortCut (LPCSTR str1, LPCSTR str2, LONG w, LONG l, LPCSTR str)
 
static void CALLBACK MACRO_TCard (LONG u)
 
static void CALLBACK MACRO_Test (LONG u)
 
static BOOL CALLBACK MACRO_TestALink (LPCSTR str)
 
static BOOL CALLBACK MACRO_TestKLink (LPCSTR str)
 
static void CALLBACK MACRO_UncheckItem (LPCSTR str)
 
static void CALLBACK MACRO_UpdateWindow (LPCSTR str1, LPCSTR str2)
 
static int MACRO_DoLookUp (struct MacroDesc *start, const char *name, struct lexret *lr, unsigned len)
 
int MACRO_Lookup (const char *name, struct lexret *lr)
 

Variables

static struct MacroDescMACRO_Loaded
 
static unsigned MACRO_NumLoaded
 
static struct MacroDesc MACRO_Builtins []
 

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 22 of file macro.c.

Function Documentation

◆ MACRO_About()

void CALLBACK MACRO_About ( void  )

Definition at line 152 of file macro.c.

Referenced by WINHELP_MainWndProc().

153 {
154  WCHAR name[256];
156  IMAGE_ICON, 48, 48, LR_SHARED );
157  LoadStringW( Globals.hInstance, STID_WINE_HELP, name, sizeof(name)/sizeof(WCHAR) );
158  ShellAboutW( MACRO_CurrentWindow()->hMainWnd, name, NULL, icon );
159 }
static HICON
Definition: imagelist.c:84
#define LR_SHARED
Definition: winuser.h:1090
#define IMAGE_ICON
Definition: winuser.h:212
__wchar_t WCHAR
Definition: xmlstorage.h:180
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
Definition: cursoricon.c:2172
struct tagWinHelp * MACRO_CurrentWindow(void)
smooth NULL
Definition: ftsmooth.c:416
#define IDI_WINHELP
Definition: winhelp_res.h:56
HWND hMainWnd
Definition: magnifier.c:33
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
Definition: name.c:36
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
HINSTANCE hInstance
Definition: precomp.h:43
#define STID_WINE_HELP
Definition: winhelp_res.h:36

◆ MACRO_AddAccelerator()

static void CALLBACK MACRO_AddAccelerator ( LONG  u1,
LONG  u2,
LPCSTR  str 
)
static

Definition at line 161 of file macro.c.

162 {
163  WINE_FIXME("(%u, %u, %s)\n", u1, u2, debugstr_a(str));
164 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ALink()

static void CALLBACK MACRO_ALink ( LPCSTR  str1,
LONG  u,
LPCSTR  str2 
)
static

Definition at line 166 of file macro.c.

167 {
168  WINE_FIXME("(%s, %u, %s)\n", debugstr_a(str1), u, debugstr_a(str2));
169 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Annotate()

void CALLBACK MACRO_Annotate ( void  )

Definition at line 171 of file macro.c.

Referenced by WINHELP_MainWndProc().

172 {
173  WINE_FIXME("()\n");
174 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_AppendItem()

static void CALLBACK MACRO_AppendItem ( LPCSTR  str1,
LPCSTR  str2,
LPCSTR  str3,
LPCSTR  str4 
)
static

Definition at line 176 of file macro.c.

177 {
178  WINE_FIXME("(%s, %s, %s, %s)\n", debugstr_a(str1), debugstr_a(str2), debugstr_a(str3), debugstr_a(str4));
179 }
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Back()

static void CALLBACK MACRO_Back ( void  )
static

Definition at line 181 of file macro.c.

182 {
184 
185  WINE_TRACE("()\n");
186 
187  if (win && win->back.index >= 2)
188  WINHELP_CreateHelpWindow(&win->back.set[--win->back.index - 1], SW_SHOW, FALSE);
189 }
WINHELP_WNDPAGE set[40]
Definition: winhelp.h:70
#define WINE_TRACE
Definition: debug.h:353
BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE *wpage, int nCmdShow, BOOL remember)
Definition: winhelp.c:698
struct tagWinHelp * MACRO_CurrentWindow(void)
unsigned index
Definition: winhelp.h:71
#define SW_SHOW
Definition: winuser.h:769
static real win[4][36]
WINHELP_PAGESET back
Definition: winhelp.h:94

◆ MACRO_BackFlush()

static void CALLBACK MACRO_BackFlush ( void  )
static

Definition at line 191 of file macro.c.

192 {
194 
195  WINE_TRACE("()\n");
196 
197  if (win) WINHELP_DeleteBackSet(win);
198 }
#define WINE_TRACE
Definition: debug.h:353
void WINHELP_DeleteBackSet(WINHELP_WINDOW *win)
Definition: winhelp.c:481
struct tagWinHelp * MACRO_CurrentWindow(void)
static real win[4][36]

◆ MACRO_BookmarkDefine()

void CALLBACK MACRO_BookmarkDefine ( void  )

Definition at line 200 of file macro.c.

Referenced by WINHELP_MainWndProc().

201 {
202  WINE_FIXME("()\n");
203 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_BookmarkMore()

static void CALLBACK MACRO_BookmarkMore ( void  )
static

Definition at line 205 of file macro.c.

206 {
207  WINE_FIXME("()\n");
208 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_BrowseButtons()

static void CALLBACK MACRO_BrowseButtons ( void  )
static

Definition at line 210 of file macro.c.

211 {
213  ULONG relative;
214 
215  WINE_TRACE("()\n");
216 
217  MACRO_CreateButton("BTN_PREV", "&<<", "Prev()");
218  MACRO_CreateButton("BTN_NEXT", "&>>", "Next()");
219 
220  if (!HLPFILE_PageByOffset(page->file, page->browse_bwd, &relative))
221  MACRO_DisableButton("BTN_PREV");
222  if (!HLPFILE_PageByOffset(page->file, page->browse_fwd, &relative))
223  MACRO_DisableButton("BTN_NEXT");
224 }
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
HLPFILE_PAGE * HLPFILE_PageByOffset(HLPFILE *hlpfile, LONG offset, ULONG *relative)
Definition: hlpfile.c:369
DWORD browse_fwd
Definition: hlpfile.h:82
struct tagWinHelp * MACRO_CurrentWindow(void)
void CALLBACK MACRO_CreateButton(LPCSTR id, LPCSTR name, LPCSTR macro)
Definition: macro.c:73
Definition: module.h:566
DWORD browse_bwd
Definition: hlpfile.h:81
void CALLBACK MACRO_DisableButton(LPCSTR id)
Definition: macro.c:116
unsigned int ULONG
Definition: retypes.h:1

◆ MACRO_ChangeButtonBinding()

static void CALLBACK MACRO_ChangeButtonBinding ( LPCSTR  id,
LPCSTR  macro 
)
static

Definition at line 226 of file macro.c.

Referenced by MACRO_ChangeEnable().

227 {
229  WINHELP_BUTTON* button;
230  WINHELP_BUTTON** b;
231  LONG size;
232  LPSTR ptr;
233 
234  WINE_TRACE("(%s, %s)\n", debugstr_a(id), debugstr_a(macro));
235 
236  b = MACRO_LookupButton(win, id);
237  if (!*b) {WINE_FIXME("Couldn't find button %s\n", debugstr_a(id)); return;}
238 
239  size = sizeof(WINHELP_BUTTON) + strlen(id) +
240  strlen((*b)->lpszName) + strlen(macro) + 3;
241 
242  button = HeapAlloc(GetProcessHeap(), 0, size);
243  if (!button) return;
244 
245  button->next = (*b)->next;
246  button->hWnd = (*b)->hWnd;
247  button->wParam = (*b)->wParam;
248 
249  ptr = (char*)button + sizeof(WINHELP_BUTTON);
250 
251  strcpy(ptr, id);
252  button->lpszID = ptr;
253  ptr += strlen(id) + 1;
254 
255  strcpy(ptr, (*b)->lpszName);
256  button->lpszName = ptr;
257  ptr += strlen((*b)->lpszName) + 1;
258 
259  strcpy(ptr, macro);
260  button->lpszMacro = ptr;
261 
262  *b = button;
263 
265 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
struct tagHelpButton WINHELP_BUTTON
#define WINE_TRACE
Definition: debug.h:353
char * LPSTR
Definition: xmlstorage.h:182
long LONG
Definition: pedump.c:60
static PVOID ptr
Definition: dispmode.c:27
struct tagWinHelp * MACRO_CurrentWindow(void)
#define b
Definition: ke_i.h:79
void WINHELP_LayoutMainWindow(WINHELP_WINDOW *win)
Definition: winhelp.c:434
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
struct tagHelpButton * next
Definition: winhelp.h:57
#define debugstr_a
Definition: kernel32.h:31
LPCSTR lpszMacro
Definition: winhelp.h:51
LPCSTR lpszID
Definition: winhelp.h:49
HWND hWnd
Definition: winhelp.h:47
static real win[4][36]
LPCSTR lpszName
Definition: winhelp.h:50
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
WPARAM wParam
Definition: winhelp.h:53
static WINHELP_BUTTON ** MACRO_LookupButton(WINHELP_WINDOW *win, LPCSTR name)
Definition: macro.c:59
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ChangeEnable()

static void CALLBACK MACRO_ChangeEnable ( LPCSTR  id,
LPCSTR  macro 
)
static

Definition at line 267 of file macro.c.

268 {
269  WINE_TRACE("(%s, %s)\n", debugstr_a(id), debugstr_a(macro));
270 
271  MACRO_ChangeButtonBinding(id, macro);
272  MACRO_EnableButton(id);
273 }
static void CALLBACK MACRO_ChangeButtonBinding(LPCSTR id, LPCSTR macro)
Definition: macro.c:226
#define WINE_TRACE
Definition: debug.h:353
#define debugstr_a
Definition: kernel32.h:31
static void CALLBACK MACRO_EnableButton(LPCSTR id)
Definition: macro.c:128

◆ MACRO_ChangeItemBinding()

static void CALLBACK MACRO_ChangeItemBinding ( LPCSTR  str1,
LPCSTR  str2 
)
static

Definition at line 275 of file macro.c.

276 {
277  WINE_FIXME("(%s, %s)\n", debugstr_a(str1), debugstr_a(str2));
278 }
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_CheckItem()

static void CALLBACK MACRO_CheckItem ( LPCSTR  str)
static

Definition at line 280 of file macro.c.

281 {
282  WINE_FIXME("(%s)\n", debugstr_a(str));
283 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_CloseSecondarys()

static void CALLBACK MACRO_CloseSecondarys ( void  )
static

Definition at line 285 of file macro.c.

286 {
289 
290  WINE_TRACE("()\n");
291  for (win = Globals.win_list; win; win = next)
292  {
293  next = win->next;
294  if (lstrcmpiA(win->info->name, "main"))
296  }
297 }
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define WINE_TRACE
Definition: debug.h:353
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
BOOL WINHELP_ReleaseWindow(WINHELP_WINDOW *win)
Definition: winhelp.c:524
char name[9]
Definition: hlpfile.h:30
static unsigned __int64 next
Definition: rand_nt.c:6
static real win[4][36]
HLPFILE_WINDOWINFO * info
Definition: winhelp.h:92
struct tagWinHelp * next
Definition: winhelp.h:97

◆ MACRO_CloseWindow()

static void CALLBACK MACRO_CloseWindow ( LPCSTR  lpszWindow)
static

Definition at line 299 of file macro.c.

300 {
303 
304  WINE_TRACE("(%s)\n", debugstr_a(lpszWindow));
305 
306  if (!lpszWindow || !lpszWindow[0]) lpszWindow = "main";
307 
308  for (win = Globals.win_list; win; win = next)
309  {
310  next = win->next;
311  if (!lstrcmpiA(win->info->name, lpszWindow))
313  }
314 }
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define WINE_TRACE
Definition: debug.h:353
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
BOOL WINHELP_ReleaseWindow(WINHELP_WINDOW *win)
Definition: winhelp.c:524
char name[9]
Definition: hlpfile.h:30
#define debugstr_a
Definition: kernel32.h:31
static unsigned __int64 next
Definition: rand_nt.c:6
static real win[4][36]
HLPFILE_WINDOWINFO * info
Definition: winhelp.h:92
struct tagWinHelp * next
Definition: winhelp.h:97

◆ MACRO_Compare()

static void CALLBACK MACRO_Compare ( LPCSTR  str)
static

Definition at line 316 of file macro.c.

317 {
318  WINE_FIXME("(%s)\n", debugstr_a(str));
319 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Contents()

static void CALLBACK MACRO_Contents ( void  )
static

Definition at line 321 of file macro.c.

322 {
324 
325  WINE_TRACE("()\n");
326 
327  if (page)
328  MACRO_JumpContents(page->file->lpszPath, NULL);
329 }
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
struct tagWinHelp * MACRO_CurrentWindow(void)
smooth NULL
Definition: ftsmooth.c:416
Definition: module.h:566
void CALLBACK MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow)
Definition: macro.c:140

◆ MACRO_ControlPanel()

static void CALLBACK MACRO_ControlPanel ( LPCSTR  str1,
LPCSTR  str2,
LONG  u 
)
static

Definition at line 331 of file macro.c.

332 {
333  WINE_FIXME("(%s, %s, %u)\n", debugstr_a(str1), debugstr_a(str2), u);
334 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_CopyDialog()

void CALLBACK MACRO_CopyDialog ( void  )

Definition at line 336 of file macro.c.

Referenced by WINHELP_MainWndProc().

337 {
338  WINE_FIXME("()\n");
339 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_CopyTopic()

static void CALLBACK MACRO_CopyTopic ( void  )
static

Definition at line 341 of file macro.c.

342 {
343  WINE_FIXME("()\n");
344 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_CreateButton()

void CALLBACK MACRO_CreateButton ( LPCSTR  id,
LPCSTR  name,
LPCSTR  macro 
)

Definition at line 73 of file macro.c.

Referenced by MACRO_BrowseButtons(), and WINHELP_CreateHelpWindow().

74 {
76  WINHELP_BUTTON *button, **b;
77  LONG size;
78  LPSTR ptr;
79 
80  WINE_TRACE("(%s, %s, %s)\n", debugstr_a(id), debugstr_a(name), debugstr_a(macro));
81 
82  size = sizeof(WINHELP_BUTTON) + strlen(id) + strlen(name) + strlen(macro) + 3;
83 
84  button = HeapAlloc(GetProcessHeap(), 0, size);
85  if (!button) return;
86 
87  button->next = 0;
88  button->hWnd = 0;
89 
90  ptr = (char*)button + sizeof(WINHELP_BUTTON);
91 
92  strcpy(ptr, id);
93  button->lpszID = ptr;
94  ptr += strlen(id) + 1;
95 
96  strcpy(ptr, name);
97  button->lpszName = ptr;
98  ptr += strlen(name) + 1;
99 
100  strcpy(ptr, macro);
101  button->lpszMacro = ptr;
102 
103  button->wParam = WH_FIRST_BUTTON;
104  for (b = &win->first_button; *b; b = &(*b)->next)
105  button->wParam = max(button->wParam, (*b)->wParam + 1);
106  *b = button;
107 
109 }
WINHELP_BUTTON * first_button
Definition: winhelp.h:77
#define max(a, b)
Definition: svc.c:63
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
struct tagHelpButton WINHELP_BUTTON
#define WINE_TRACE
Definition: debug.h:353
char * LPSTR
Definition: xmlstorage.h:182
#define WH_FIRST_BUTTON
Definition: winhelp.h:190
long LONG
Definition: pedump.c:60
static PVOID ptr
Definition: dispmode.c:27
struct tagWinHelp * MACRO_CurrentWindow(void)
#define b
Definition: ke_i.h:79
void WINHELP_LayoutMainWindow(WINHELP_WINDOW *win)
Definition: winhelp.c:434
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
struct tagHelpButton * next
Definition: winhelp.h:57
#define debugstr_a
Definition: kernel32.h:31
LPCSTR lpszMacro
Definition: winhelp.h:51
LPCSTR lpszID
Definition: winhelp.h:49
HWND hWnd
Definition: winhelp.h:47
static real win[4][36]
LPCSTR lpszName
Definition: winhelp.h:50
Definition: name.c:36
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
WPARAM wParam
Definition: winhelp.h:53

◆ MACRO_DeleteItem()

static void CALLBACK MACRO_DeleteItem ( LPCSTR  str)
static

Definition at line 346 of file macro.c.

347 {
348  WINE_FIXME("(%s)\n", debugstr_a(str));
349 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_DeleteMark()

static void CALLBACK MACRO_DeleteMark ( LPCSTR  str)
static

Definition at line 351 of file macro.c.

352 {
353  WINE_FIXME("(%s)\n", debugstr_a(str));
354 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_DestroyButton()

static void CALLBACK MACRO_DestroyButton ( LPCSTR  str)
static

Definition at line 111 of file macro.c.

112 {
113  WINE_FIXME("(%s)\n", debugstr_a(str));
114 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_DisableButton()

void CALLBACK MACRO_DisableButton ( LPCSTR  id)

Definition at line 116 of file macro.c.

Referenced by MACRO_BrowseButtons(), and WINHELP_CreateHelpWindow().

117 {
118  WINHELP_BUTTON** b;
119 
120  WINE_TRACE("(%s)\n", debugstr_a(id));
121 
123  if (!*b) {WINE_FIXME("Couldn't find button %s\n", debugstr_a(id)); return;}
124 
125  EnableWindow((*b)->hWnd, FALSE);
126 }
#define WINE_TRACE
Definition: debug.h:353
struct tagWinHelp * MACRO_CurrentWindow(void)
#define b
Definition: ke_i.h:79
#define debugstr_a
Definition: kernel32.h:31
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
static WINHELP_BUTTON ** MACRO_LookupButton(WINHELP_WINDOW *win, LPCSTR name)
Definition: macro.c:59
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_DisableItem()

static void CALLBACK MACRO_DisableItem ( LPCSTR  str)
static

Definition at line 356 of file macro.c.

357 {
358  WINE_FIXME("(%s)\n", debugstr_a(str));
359 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_DoLookUp()

static int MACRO_DoLookUp ( struct MacroDesc start,
const char name,
struct lexret lr,
unsigned  len 
)
static

Definition at line 1008 of file macro.c.

Referenced by MACRO_Lookup().

1009 {
1010  struct MacroDesc* md;
1011 
1012  for (md = start; md->name && len != 0; md++, len--)
1013  {
1014  if (strcasecmp(md->name, name) == 0 || (md->alias != NULL && strcasecmp(md->alias, name) == 0))
1015  {
1016  lr->proto = md->arguments;
1017  lr->function = md->fn;
1018  return md->isBool ? BOOL_FUNCTION : VOID_FUNCTION;
1019  }
1020  }
1021  return EMPTY;
1022 }
FARPROC function
Definition: macro.h:34
#define strcasecmp
Definition: fake.h:9
const char * alias
Definition: macro.c:40
#define EMPTY(rect)
Definition: text.c:32
const char * name
Definition: macro.c:39
const char * arguments
Definition: macro.c:42
void * fn
Definition: macro.c:43
smooth NULL
Definition: ftsmooth.c:416
LPCSTR proto
Definition: macro.h:30
GLenum GLsizei len
Definition: glext.h:6722
BOOL isBool
Definition: macro.c:41
Definition: name.c:36
#define md
Definition: compat-1.3.h:1982

◆ MACRO_EnableButton()

static void CALLBACK MACRO_EnableButton ( LPCSTR  id)
static

Definition at line 128 of file macro.c.

Referenced by MACRO_ChangeEnable().

129 {
130  WINHELP_BUTTON** b;
131 
132  WINE_TRACE("(%s)\n", debugstr_a(id));
133 
135  if (!*b) {WINE_FIXME("Couldn't find button %s\n", debugstr_a(id)); return;}
136 
137  EnableWindow((*b)->hWnd, TRUE);
138 }
#define TRUE
Definition: types.h:120
#define WINE_TRACE
Definition: debug.h:353
struct tagWinHelp * MACRO_CurrentWindow(void)
#define b
Definition: ke_i.h:79
#define debugstr_a
Definition: kernel32.h:31
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
static WINHELP_BUTTON ** MACRO_LookupButton(WINHELP_WINDOW *win, LPCSTR name)
Definition: macro.c:59
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_EnableItem()

static void CALLBACK MACRO_EnableItem ( LPCSTR  str)
static

Definition at line 361 of file macro.c.

362 {
363  WINE_FIXME("(%s)\n", debugstr_a(str));
364 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_EndMPrint()

static void CALLBACK MACRO_EndMPrint ( void  )
static

Definition at line 366 of file macro.c.

367 {
368  WINE_FIXME("()\n");
369 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ExecFile()

static void CALLBACK MACRO_ExecFile ( LPCSTR  pgm,
LPCSTR  args,
LONG  cmd_show,
LPCSTR  topic 
)
static

Definition at line 371 of file macro.c.

372 {
373  HINSTANCE ret;
374 
375  WINE_TRACE("(%s, %s, %u, %s)\n",
376  debugstr_a(pgm), debugstr_a(args), cmd_show, debugstr_a(topic));
377 
378  ret = ShellExecuteA(Globals.active_win ? Globals.active_win->hMainWnd : NULL, "open",
379  pgm, args, ".", cmd_show);
380  if ((DWORD_PTR)ret < 32)
381  {
382  WINE_WARN("Failed with %p\n", ret);
383  if (topic) MACRO_JumpID(NULL, topic);
384  }
385 }
HINSTANCE WINAPI ShellExecuteA(HWND hWnd, LPCSTR lpVerb, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, INT iShowCmd)
Definition: shlexec.cpp:2141
#define WINE_TRACE
Definition: debug.h:353
Definition: match.c:390
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_a
Definition: kernel32.h:31
static void CALLBACK MACRO_JumpID(LPCSTR lpszPathWindow, LPCSTR topic_id)
Definition: macro.c:605
int ret
uint32_t DWORD_PTR
Definition: typedefs.h:63
static const char topic[]
Definition: propsys.c:43
#define WINE_WARN
Definition: debug.h:359

◆ MACRO_ExecProgram()

static void CALLBACK MACRO_ExecProgram ( LPCSTR  str,
LONG  u 
)
static

Definition at line 387 of file macro.c.

388 {
389  WINE_FIXME("(%s, %u)\n", debugstr_a(str), u);
390 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Exit()

void CALLBACK MACRO_Exit ( void  )

Definition at line 392 of file macro.c.

Referenced by WINHELP_DeleteWindow(), WINHELP_HandleCommand(), and WINHELP_MainWndProc().

393 {
394  WINE_TRACE("()\n");
395 
396  while (Globals.win_list)
397  WINHELP_ReleaseWindow(Globals.win_list);
398 }
#define WINE_TRACE
Definition: debug.h:353
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
BOOL WINHELP_ReleaseWindow(WINHELP_WINDOW *win)
Definition: winhelp.c:524

◆ MACRO_ExtAbleItem()

static void CALLBACK MACRO_ExtAbleItem ( LPCSTR  str,
LONG  u 
)
static

Definition at line 400 of file macro.c.

401 {
402  WINE_FIXME("(%s, %u)\n", debugstr_a(str), u);
403 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ExtInsertItem()

static void CALLBACK MACRO_ExtInsertItem ( LPCSTR  str1,
LPCSTR  str2,
LPCSTR  str3,
LPCSTR  str4,
LONG  u1,
LONG  u2 
)
static

Definition at line 405 of file macro.c.

406 {
407  WINE_FIXME("(%s, %s, %s, %s, %u, %u)\n", debugstr_a(str1), debugstr_a(str2), debugstr_a(str3), debugstr_a(str4), u1, u2);
408 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ExtInsertMenu()

static void CALLBACK MACRO_ExtInsertMenu ( LPCSTR  str1,
LPCSTR  str2,
LPCSTR  str3,
LONG  u1,
LONG  u2 
)
static

Definition at line 410 of file macro.c.

411 {
412  WINE_FIXME("(%s, %s, %s, %u, %u)\n", debugstr_a(str1), debugstr_a(str2), debugstr_a(str3), u1, u2);
413 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_FileExist()

static BOOL CALLBACK MACRO_FileExist ( LPCSTR  str)
static

Definition at line 415 of file macro.c.

416 {
417  WINE_TRACE("(%s)\n", debugstr_a(str));
419 }
#define WINE_TRACE
Definition: debug.h:353
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
Definition: fileinfo.c:786
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define INVALID_FILE_ATTRIBUTES
Definition: vfdcmd.c:23

◆ MACRO_FileOpen()

void CALLBACK MACRO_FileOpen ( void  )

Definition at line 421 of file macro.c.

Referenced by WINHELP_MainWndProc().

422 {
423  char szFile[MAX_PATH];
424 
425  if (WINHELP_GetOpenFileName(szFile, MAX_PATH))
426  {
427  MACRO_JumpContents(szFile, "main");
428  }
429 }
#define MAX_PATH
Definition: compat.h:26
BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
Definition: winhelp.c:146
void CALLBACK MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow)
Definition: macro.c:140

◆ MACRO_Find()

static void CALLBACK MACRO_Find ( void  )
static

Definition at line 431 of file macro.c.

432 {
433  WINE_FIXME("()\n");
434 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Finder()

static void CALLBACK MACRO_Finder ( void  )
static

Definition at line 436 of file macro.c.

437 {
439 }
BOOL WINHELP_CreateIndexWindow(BOOL is_search)
Definition: winhelp.c:1542

◆ MACRO_FloatingMenu()

static void CALLBACK MACRO_FloatingMenu ( void  )
static

Definition at line 441 of file macro.c.

442 {
443  WINE_FIXME("()\n");
444 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Flush()

static void CALLBACK MACRO_Flush ( void  )
static

Definition at line 446 of file macro.c.

447 {
448  WINE_FIXME("()\n");
449 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_FocusWindow()

static void CALLBACK MACRO_FocusWindow ( LPCSTR  lpszWindow)
static

Definition at line 451 of file macro.c.

452 {
454 
455  WINE_TRACE("(%s)\n", debugstr_a(lpszWindow));
456 
457  if (!lpszWindow || !lpszWindow[0]) lpszWindow = "main";
458 
459  for (win = Globals.win_list; win; win = win->next)
460  if (!lstrcmpiA(win->info->name, lpszWindow))
461  SetFocus(win->hMainWnd);
462 }
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define WINE_TRACE
Definition: debug.h:353
HWND WINAPI SetFocus(_In_opt_ HWND)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
char name[9]
Definition: hlpfile.h:30
#define debugstr_a
Definition: kernel32.h:31
static real win[4][36]
HWND hMainWnd
Definition: winhelp.h:80
HLPFILE_WINDOWINFO * info
Definition: winhelp.h:92
struct tagWinHelp * next
Definition: winhelp.h:97

◆ MACRO_Generate()

static void CALLBACK MACRO_Generate ( LPCSTR  str,
LONG  w,
LONG  l 
)
static

Definition at line 464 of file macro.c.

465 {
466  WINE_FIXME("(%s, %x, %x)\n", debugstr_a(str), w, l);
467 }
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
const WCHAR * str
r l[0]
Definition: byte_order.h:167
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_GotoMark()

static void CALLBACK MACRO_GotoMark ( LPCSTR  str)
static

Definition at line 469 of file macro.c.

470 {
471  WINE_FIXME("(%s)\n", debugstr_a(str));
472 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_HelpOn()

void CALLBACK MACRO_HelpOn ( void  )

Definition at line 474 of file macro.c.

Referenced by WINHELP_HandleCommand(), and WINHELP_MainWndProc().

475 {
477  LPCSTR file = NULL;
478 
479  WINE_TRACE("()\n");
480  if (win && win->page && win->page->file)
481  file = win->page->file->help_on_file;
482 
483  if (!file)
484  file = (Globals.wVersion > 4) ? "winhlp32.hlp" : "winhelp.hlp";
485 
486  MACRO_JumpContents(file, NULL);
487 }
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
struct tagWinHelp * MACRO_CurrentWindow(void)
smooth NULL
Definition: ftsmooth.c:416
const char * LPCSTR
Definition: xmlstorage.h:183
static real win[4][36]
HLPFILE_PAGE * page
Definition: winhelp.h:78
Definition: fci.c:126
void CALLBACK MACRO_JumpContents(LPCSTR lpszPath, LPCSTR lpszWindow)
Definition: macro.c:140

◆ MACRO_HelpOnTop()

void CALLBACK MACRO_HelpOnTop ( void  )

Definition at line 489 of file macro.c.

Referenced by WINHELP_MainWndProc().

490 {
491  static BOOL on_top = FALSE;
493  HWND main_wnd = NULL;
494  HMENU menu;
495 
496  for (win = Globals.win_list; win; win = win->next)
497  if (!lstrcmpiA(win->info->name, "main"))
498  main_wnd = win->hMainWnd;
499  if (!main_wnd)
500  {
501  WINE_ERR("could not find the main window!\n");
502  return;
503  }
504  menu = GetMenu(main_wnd);
505 
506  on_top = !on_top;
507  if (on_top) {
509  SetWindowPos(main_wnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
510  } else {
512  SetWindowPos(main_wnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
513  }
514 }
#define MF_BYCOMMAND
Definition: winuser.h:202
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define HWND_TOPMOST
Definition: winuser.h:1194
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define WINE_ERR
Definition: debug.h:370
smooth NULL
Definition: ftsmooth.c:416
char name[9]
Definition: hlpfile.h:30
#define MF_CHECKED
Definition: winuser.h:132
unsigned int BOOL
Definition: ntddk_ex.h:94
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define MF_UNCHECKED
Definition: winuser.h:204
#define SWP_NOSIZE
Definition: winuser.h:1230
static real win[4][36]
#define MNID_HELP_HELPTOP
Definition: winhelp_res.h:22
HWND hMainWnd
Definition: winhelp.h:80
#define SWP_NOMOVE
Definition: winuser.h:1229
HLPFILE_WINDOWINFO * info
Definition: winhelp.h:92
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define HWND_NOTOPMOST
Definition: winuser.h:1192
HMENU WINAPI GetMenu(_In_ HWND)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
struct tagWinHelp * next
Definition: winhelp.h:97

◆ MACRO_History()

void CALLBACK MACRO_History ( void  )

Definition at line 516 of file macro.c.

Referenced by WINHELP_MainWndProc().

517 {
518  WINE_TRACE("()\n");
519 
520  if (Globals.active_win && !Globals.active_win->hHistoryWnd)
521  {
523  0, 0, 0, 0, 0, 0, Globals.hInstance, Globals.active_win);
524  ShowWindow(hWnd, SW_NORMAL);
525  }
526 }
#define SW_NORMAL
Definition: winuser.h:763
HWND hWnd
Definition: settings.c:17
#define WINE_TRACE
Definition: debug.h:353
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
#define CreateWindowA(a, b, c, d, e, f, g, h, i, j, k)
Definition: winuser.h:4184
const char HISTORY_WIN_CLASS_NAME[]
Definition: string.c:25
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
HINSTANCE hInstance
Definition: precomp.h:43

◆ MACRO_IfThen()

static void CALLBACK MACRO_IfThen ( BOOL  b,
LPCSTR  t 
)
static

Definition at line 528 of file macro.c.

529 {
531 }
GLdouble GLdouble t
Definition: gl.h:2047
struct tagWinHelp * MACRO_CurrentWindow(void)
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
BOOL MACRO_ExecuteMacro(struct tagWinHelp *, LPCSTR)

◆ MACRO_IfThenElse()

static void CALLBACK MACRO_IfThenElse ( BOOL  b,
LPCSTR  t,
LPCSTR  f 
)
static

Definition at line 533 of file macro.c.

534 {
537 }
GLdouble GLdouble t
Definition: gl.h:2047
struct tagWinHelp * MACRO_CurrentWindow(void)
GLfloat f
Definition: glext.h:7540
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
BOOL MACRO_ExecuteMacro(struct tagWinHelp *, LPCSTR)

◆ MACRO_InitMPrint()

static BOOL CALLBACK MACRO_InitMPrint ( void  )
static

Definition at line 539 of file macro.c.

540 {
541  WINE_FIXME("()\n");
542  return FALSE;
543 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_InsertItem()

static void CALLBACK MACRO_InsertItem ( LPCSTR  str1,
LPCSTR  str2,
LPCSTR  str3,
LPCSTR  str4,
LONG  u 
)
static

Definition at line 545 of file macro.c.

546 {
547  WINE_FIXME("(%s, %s, %s, %s, %u)\n", debugstr_a(str1), debugstr_a(str2), debugstr_a(str3), debugstr_a(str4), u);
548 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_InsertMenu()

static void CALLBACK MACRO_InsertMenu ( LPCSTR  str1,
LPCSTR  str2,
LONG  u 
)
static

Definition at line 550 of file macro.c.

551 {
552  WINE_FIXME("(%s, %s, %u)\n", debugstr_a(str1), debugstr_a(str2), u);
553 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_IsBook()

static BOOL CALLBACK MACRO_IsBook ( void  )
static

Definition at line 555 of file macro.c.

556 {
557  WINE_TRACE("()\n");
558  return Globals.isBook;
559 }
#define WINE_TRACE
Definition: debug.h:353
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13

◆ MACRO_IsMark()

static BOOL CALLBACK MACRO_IsMark ( LPCSTR  str)
static

Definition at line 561 of file macro.c.

562 {
563  WINE_FIXME("(%s)\n", debugstr_a(str));
564  return FALSE;
565 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_IsNotMark()

static BOOL CALLBACK MACRO_IsNotMark ( LPCSTR  str)
static

Definition at line 567 of file macro.c.

568 {
569  WINE_FIXME("(%s)\n", debugstr_a(str));
570  return TRUE;
571 }
#define TRUE
Definition: types.h:120
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_JumpContents()

void CALLBACK MACRO_JumpContents ( LPCSTR  lpszPath,
LPCSTR  lpszWindow 
)

Definition at line 140 of file macro.c.

Referenced by MACRO_Contents(), MACRO_FileOpen(), MACRO_HelpOn(), and WINHELP_HandleCommand().

141 {
142  HLPFILE* hlpfile;
143 
144  WINE_TRACE("(%s, %s)\n", debugstr_a(lpszPath), debugstr_a(lpszWindow));
145  if ((hlpfile = WINHELP_LookupHelpFile(lpszPath)))
147  WINHELP_GetWindowInfo(hlpfile, lpszWindow),
148  SW_NORMAL);
149 }
#define SW_NORMAL
Definition: winuser.h:763
#define WINE_TRACE
Definition: debug.h:353
BOOL WINHELP_OpenHelpWindow(HLPFILE_PAGE *(*lookup)(HLPFILE *, LONG, ULONG *), HLPFILE *hlpfile, LONG val, HLPFILE_WINDOWINFO *wi, int nCmdShow)
Definition: winhelp.c:879
#define debugstr_a
Definition: kernel32.h:31
HLPFILE * WINHELP_LookupHelpFile(LPCSTR lpszFile)
Definition: winhelp.c:212
HLPFILE_PAGE * HLPFILE_PageByHash(HLPFILE *hlpfile, LONG lHash, ULONG *relative)
Definition: hlpfile.c:437
HLPFILE_WINDOWINFO * WINHELP_GetWindowInfo(HLPFILE *hlpfile, LPCSTR name)
Definition: winhelp.c:254

◆ MACRO_JumpContext()

void CALLBACK MACRO_JumpContext ( LPCSTR  lpszPath,
LPCSTR  lpszWindow,
LONG  context 
)

Definition at line 573 of file macro.c.

Referenced by WINHELP_HandleCommand().

574 {
575  HLPFILE* hlpfile;
576 
577  WINE_TRACE("(%s, %s, %d)\n", debugstr_a(lpszPath), debugstr_a(lpszWindow), context);
578  if ((hlpfile = WINHELP_LookupHelpFile(lpszPath)))
579  /* Some madness: what user calls 'context', hlpfile calls 'map' */
581  WINHELP_GetWindowInfo(hlpfile, lpszWindow),
582  SW_NORMAL);
583 }
#define SW_NORMAL
Definition: winuser.h:763
Definition: http.c:6587
#define WINE_TRACE
Definition: debug.h:353
BOOL WINHELP_OpenHelpWindow(HLPFILE_PAGE *(*lookup)(HLPFILE *, LONG, ULONG *), HLPFILE *hlpfile, LONG val, HLPFILE_WINDOWINFO *wi, int nCmdShow)
Definition: winhelp.c:879
HLPFILE_PAGE * HLPFILE_PageByMap(HLPFILE *hlpfile, LONG lMap, ULONG *relative)
Definition: hlpfile.c:467
#define debugstr_a
Definition: kernel32.h:31
HLPFILE * WINHELP_LookupHelpFile(LPCSTR lpszFile)
Definition: winhelp.c:212
HLPFILE_WINDOWINFO * WINHELP_GetWindowInfo(HLPFILE *hlpfile, LPCSTR name)
Definition: winhelp.c:254

◆ MACRO_JumpHash()

void CALLBACK MACRO_JumpHash ( LPCSTR  lpszPath,
LPCSTR  lpszWindow,
LONG  lHash 
)

Definition at line 585 of file macro.c.

Referenced by MACRO_JumpID(), and WINHELP_HandleCommand().

586 {
587  HLPFILE* hlpfile;
588 
589  WINE_TRACE("(%s, %s, %u)\n", debugstr_a(lpszPath), debugstr_a(lpszWindow), lHash);
590  if (!lpszPath || !lpszPath[0])
591  hlpfile = MACRO_CurrentWindow()->page->file;
592  else
593  hlpfile = WINHELP_LookupHelpFile(lpszPath);
594  if (hlpfile)
596  WINHELP_GetWindowInfo(hlpfile, lpszWindow),
597  SW_NORMAL);
598 }
#define SW_NORMAL
Definition: winuser.h:763
#define WINE_TRACE
Definition: debug.h:353
struct tagWinHelp * MACRO_CurrentWindow(void)
BOOL WINHELP_OpenHelpWindow(HLPFILE_PAGE *(*lookup)(HLPFILE *, LONG, ULONG *), HLPFILE *hlpfile, LONG val, HLPFILE_WINDOWINFO *wi, int nCmdShow)
Definition: winhelp.c:879
#define debugstr_a
Definition: kernel32.h:31
HLPFILE * WINHELP_LookupHelpFile(LPCSTR lpszFile)
Definition: winhelp.c:212
HLPFILE_PAGE * HLPFILE_PageByHash(HLPFILE *hlpfile, LONG lHash, ULONG *relative)
Definition: hlpfile.c:437
HLPFILE_WINDOWINFO * WINHELP_GetWindowInfo(HLPFILE *hlpfile, LPCSTR name)
Definition: winhelp.c:254

◆ MACRO_JumpHelpOn()

static void CALLBACK MACRO_JumpHelpOn ( void  )
static

Definition at line 600 of file macro.c.

601 {
602  WINE_FIXME("()\n");
603 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_JumpID()

static void CALLBACK MACRO_JumpID ( LPCSTR  lpszPathWindow,
LPCSTR  topic_id 
)
static

Definition at line 605 of file macro.c.

Referenced by MACRO_ExecFile(), and MACRO_LookupButton().

606 {
607  LPSTR ptr;
608 
609  WINE_TRACE("(%s, %s)\n", debugstr_a(lpszPathWindow), debugstr_a(topic_id));
610  if (lpszPathWindow && (ptr = strchr(lpszPathWindow, '>')) != NULL)
611  {
612  LPSTR tmp;
613  size_t sz;
614 
615  tmp = HeapAlloc(GetProcessHeap(), 0, strlen(lpszPathWindow) + 1);
616  if (tmp)
617  {
618  strcpy(tmp, lpszPathWindow);
619  tmp[ptr - lpszPathWindow] = '\0';
620  ptr += tmp - lpszPathWindow; /* ptr now points to '>' in tmp buffer */
621  /* in some cases, we have a trailing space that we need to get rid of */
622  /* FIXME: check if it has to be done in lexer rather than here */
623  for (sz = strlen(ptr + 1); sz >= 1 && ptr[sz] == ' '; sz--) ptr[sz] = '\0';
624  MACRO_JumpHash(tmp, ptr + 1, HLPFILE_Hash(topic_id));
625  HeapFree(GetProcessHeap(), 0, tmp);
626  }
627  }
628  else
629  MACRO_JumpHash(lpszPathWindow, NULL, HLPFILE_Hash(topic_id));
630 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define WINE_TRACE
Definition: debug.h:353
char * LPSTR
Definition: xmlstorage.h:182
static PVOID ptr
Definition: dispmode.c:27
smooth NULL
Definition: ftsmooth.c:416
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define debugstr_a
Definition: kernel32.h:31
void CALLBACK MACRO_JumpHash(LPCSTR lpszPath, LPCSTR lpszWindow, LONG lHash)
Definition: macro.c:585
LONG HLPFILE_Hash(LPCSTR lpszContext)
Definition: hlpfile.c:547
char * strchr(const char *String, int ch)
Definition: utclib.c:501
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define HeapFree(x, y, z)
Definition: compat.h:394

◆ MACRO_JumpKeyword()

static void CALLBACK MACRO_JumpKeyword ( LPCSTR  lpszPath,
LPCSTR  lpszWindow,
LPCSTR  keyword 
)
static

Definition at line 635 of file macro.c.

636 {
637  WINE_FIXME("(%s, %s, %s)\n", debugstr_a(lpszPath), debugstr_a(lpszWindow), debugstr_a(keyword));
638 }
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_KLink()

static void CALLBACK MACRO_KLink ( LPCSTR  str1,
LONG  u,
LPCSTR  str2,
LPCSTR  str3 
)
static

Definition at line 640 of file macro.c.

641 {
642  WINE_FIXME("(%s, %u, %s, %s)\n", debugstr_a(str1), u, debugstr_a(str2), debugstr_a(str3));
643 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Lookup()

int MACRO_Lookup ( const char name,
struct lexret lr 
)

Definition at line 1024 of file macro.c.

Referenced by while().

1025 {
1026  int ret;
1027 
1028  if ((ret = MACRO_DoLookUp(MACRO_Builtins, name, lr, -1)) != EMPTY)
1029  return ret;
1031  return ret;
1032  if (!strcmp(name, "hwndApp"))
1033  {
1035  lr->integer = 0;
1036  for (win = Globals.win_list; win; win = win->next)
1037  {
1038  if (!strcmp(win->info->name, "main"))
1039  {
1040  lr->integer = (LONG_PTR)win->hMainWnd;
1041  break;
1042  }
1043  }
1044  return INTEGER;
1045  }
1046  if (!strcmp(name, "hwndContext"))
1047  {
1048  lr->integer = Globals.active_win ?
1049  (LONG_PTR)Globals.active_win->hMainWnd : 0;
1050  return INTEGER;
1051  }
1052  if (!strcmp(name, "qchPath") || !strcmp(name, "qError") || !strcmp(name, "lTopicNo") ||
1053  !strcmp(name, "hfs") || !strcmp(name, "coForeground") || !strcmp(name, "coBackground"))
1054  {
1055  WINE_FIXME("keyword %s not substituted in macro parsing\n", debugstr_a(name));
1056  return EMPTY;
1057  }
1058 
1059  lr->string = name;
1060  return IDENTIFIER;
1061 }
#define LONG_PTR
Definition: treelist.c:79
#define EMPTY(rect)
Definition: text.c:32
static struct MacroDesc * MACRO_Loaded
Definition: macro.c:46
Definition: macro.h:44
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
static struct MacroDesc MACRO_Builtins[]
Definition: macro.c:913
static int MACRO_DoLookUp(struct MacroDesc *start, const char *name, struct lexret *lr, unsigned len)
Definition: macro.c:1008
char name[9]
Definition: hlpfile.h:30
#define debugstr_a
Definition: kernel32.h:31
LONG integer
Definition: macro.h:32
int ret
LPCSTR string
Definition: macro.h:33
static real win[4][36]
HWND hMainWnd
Definition: winhelp.h:80
Definition: name.c:36
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
HLPFILE_WINDOWINFO * info
Definition: winhelp.h:92
static unsigned MACRO_NumLoaded
Definition: macro.c:47
struct tagWinHelp * next
Definition: winhelp.h:97
#define WINE_FIXME
Definition: debug.h:365
GLuint const GLchar * name
Definition: glext.h:6031

◆ MACRO_LookupButton()

static WINHELP_BUTTON** MACRO_LookupButton ( WINHELP_WINDOW win,
LPCSTR  name 
)
static

Definition at line 59 of file macro.c.

Referenced by MACRO_ChangeButtonBinding(), MACRO_DisableButton(), and MACRO_EnableButton().

60 {
61  WINHELP_BUTTON** b;
62 
63  for (b = &win->first_button; *b; b = &(*b)->next)
64  if (!lstrcmpiA(name, (*b)->lpszID)) break;
65  return b;
66 }
WINHELP_BUTTON * first_button
Definition: winhelp.h:77
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
Definition: lstring.c:42
#define b
Definition: ke_i.h:79
struct tagHelpButton * next
Definition: winhelp.h:57
Definition: name.c:36

◆ MACRO_Menu()

static void CALLBACK MACRO_Menu ( void  )
static

Definition at line 645 of file macro.c.

646 {
647  WINE_FIXME("()\n");
648 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_MPrintHash()

static void CALLBACK MACRO_MPrintHash ( LONG  u)
static

Definition at line 650 of file macro.c.

651 {
652  WINE_FIXME("(%u)\n", u);
653 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_MPrintID()

static void CALLBACK MACRO_MPrintID ( LPCSTR  str)
static

Definition at line 655 of file macro.c.

656 {
657  WINE_FIXME("(%s)\n", debugstr_a(str));
658 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Next()

static void CALLBACK MACRO_Next ( void  )
static

Definition at line 660 of file macro.c.

661 {
662  WINHELP_WNDPAGE wp;
663 
664  WINE_TRACE("()\n");
665  wp.page = MACRO_CurrentWindow()->page;
667  if (wp.page)
668  {
669  wp.page->file->wRefCount++;
670  wp.wininfo = MACRO_CurrentWindow()->info;
672  }
673 }
#define SW_NORMAL
Definition: winuser.h:763
#define TRUE
Definition: types.h:120
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE *wpage, int nCmdShow, BOOL remember)
Definition: winhelp.c:698
HLPFILE_PAGE * HLPFILE_PageByOffset(HLPFILE *hlpfile, LONG offset, ULONG *relative)
Definition: hlpfile.c:369
DWORD browse_fwd
Definition: hlpfile.h:82
struct tagWinHelp * MACRO_CurrentWindow(void)
HLPFILE_PAGE * page
Definition: winhelp.h:62
ULONG relative
Definition: winhelp.h:64
HLPFILE_WINDOWINFO * wininfo
Definition: winhelp.h:63

◆ MACRO_NoShow()

static void CALLBACK MACRO_NoShow ( void  )
static

Definition at line 675 of file macro.c.

676 {
677  WINE_FIXME("()\n");
678 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_PopupContext()

void CALLBACK MACRO_PopupContext ( LPCSTR  str,
LONG  u 
)

Definition at line 680 of file macro.c.

Referenced by WINHELP_HandleCommand().

681 {
682  WINE_FIXME("(%s, %u)\n", debugstr_a(str), u);
683 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_PopupHash()

static void CALLBACK MACRO_PopupHash ( LPCSTR  str,
LONG  u 
)
static

Definition at line 685 of file macro.c.

686 {
687  WINE_FIXME("(%s, %u)\n", debugstr_a(str), u);
688 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_PopupId()

static void CALLBACK MACRO_PopupId ( LPCSTR  str1,
LPCSTR  str2 
)
static

Definition at line 690 of file macro.c.

691 {
692  WINE_FIXME("(%s, %s)\n", debugstr_a(str1), debugstr_a(str2));
693 }
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_PositionWindow()

static void CALLBACK MACRO_PositionWindow ( LONG  i1,
LONG  i2,
LONG  u1,
LONG  u2,
LONG  u3,
LPCSTR  str 
)
static

Definition at line 695 of file macro.c.

696 {
697  WINE_FIXME("(%i, %i, %u, %u, %u, %s)\n", i1, i2, u1, u2, u3, debugstr_a(str));
698 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint GLint i2
Definition: glfuncs.h:96
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble const GLfloat const GLdouble const GLfloat GLenum GLint i1
Definition: glfuncs.h:96
static BYTE u3[]
Definition: msg.c:580
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Prev()

static void CALLBACK MACRO_Prev ( void  )
static

Definition at line 700 of file macro.c.

701 {
702  WINHELP_WNDPAGE wp;
703 
704  WINE_TRACE("()\n");
705  wp.page = MACRO_CurrentWindow()->page;
707  if (wp.page)
708  {
709  wp.page->file->wRefCount++;
710  wp.wininfo = MACRO_CurrentWindow()->info;
712  }
713 }
#define SW_NORMAL
Definition: winuser.h:763
#define TRUE
Definition: types.h:120
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE *wpage, int nCmdShow, BOOL remember)
Definition: winhelp.c:698
HLPFILE_PAGE * HLPFILE_PageByOffset(HLPFILE *hlpfile, LONG offset, ULONG *relative)
Definition: hlpfile.c:369
struct tagWinHelp * MACRO_CurrentWindow(void)
HLPFILE_PAGE * page
Definition: winhelp.h:62
DWORD browse_bwd
Definition: hlpfile.h:81
ULONG relative
Definition: winhelp.h:64
HLPFILE_WINDOWINFO * wininfo
Definition: winhelp.h:63

◆ MACRO_Print()

void CALLBACK MACRO_Print ( void  )

Definition at line 715 of file macro.c.

Referenced by WINHELP_MainWndProc().

716 {
717  PRINTDLGW printer;
718 
719  WINE_TRACE("()\n");
720 
721  printer.lStructSize = sizeof(printer);
722  printer.hwndOwner = MACRO_CurrentWindow()->hMainWnd;
723  printer.hInstance = Globals.hInstance;
724  printer.hDevMode = 0;
725  printer.hDevNames = 0;
726  printer.hDC = 0;
727  printer.Flags = 0;
728  printer.nFromPage = 0;
729  printer.nToPage = 0;
730  printer.nMinPage = 0;
731  printer.nMaxPage = 0;
732  printer.nCopies = 0;
733  printer.lCustData = 0;
734  printer.lpfnPrintHook = 0;
735  printer.lpfnSetupHook = 0;
736  printer.lpPrintTemplateName = 0;
737  printer.lpSetupTemplateName = 0;
738  printer.hPrintTemplate = 0;
739  printer.hSetupTemplate = 0;
740 
741  if (PrintDlgW(&printer)) {
742  WINE_FIXME("Print()\n");
743  }
744 }
HWND hwndOwner
Definition: commdlg.h:487
#define WINE_TRACE
Definition: debug.h:353
DWORD Flags
Definition: commdlg.h:491
LPCWSTR lpSetupTemplateName
Definition: commdlg.h:502
HANDLE hDevNames
Definition: commdlg.h:489
DWORD lCustData
Definition: commdlg.h:498
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
HDC hDC
Definition: commdlg.h:490
WORD nMinPage
Definition: commdlg.h:494
BOOL WINAPI PrintDlgW(LPPRINTDLGW lppd)
Definition: printdlg.c:2391
WORD nCopies
Definition: commdlg.h:496
struct tagWinHelp * MACRO_CurrentWindow(void)
LPPRINTHOOKPROC lpfnPrintHook
Definition: commdlg.h:499
DWORD lStructSize
Definition: commdlg.h:486
LPCWSTR lpPrintTemplateName
Definition: commdlg.h:501
WORD nToPage
Definition: commdlg.h:493
LPSETUPHOOKPROC lpfnSetupHook
Definition: commdlg.h:500
HANDLE hSetupTemplate
Definition: commdlg.h:504
WORD nFromPage
Definition: commdlg.h:492
HANDLE hDevMode
Definition: commdlg.h:488
HINSTANCE hInstance
Definition: commdlg.h:497
WORD nMaxPage
Definition: commdlg.h:495
HINSTANCE hInstance
Definition: precomp.h:43
HANDLE hPrintTemplate
Definition: commdlg.h:503
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_PrinterSetup()

void CALLBACK MACRO_PrinterSetup ( void  )

Definition at line 746 of file macro.c.

Referenced by WINHELP_MainWndProc().

747 {
748  WINE_FIXME("()\n");
749 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_RegisterRoutine()

static void CALLBACK MACRO_RegisterRoutine ( LPCSTR  dll_name,
LPCSTR  proc,
LPCSTR  args 
)
static

Definition at line 751 of file macro.c.

752 {
753  void *fn = NULL;
754  int size;
755  WINHELP_DLL* dll;
756 
757  WINE_TRACE("(%s, %s, %s)\n", debugstr_a(dll_name), debugstr_a(proc), debugstr_a(args));
758 
759  /* FIXME: are the registered DLLs global or linked to the current file ???
760  * We assume globals (as we did for macros, but is this really the case ???)
761  */
762  for (dll = Globals.dlls; dll; dll = dll->next)
763  {
764  if (!strcmp(dll->name, dll_name)) break;
765  }
766  if (!dll)
767  {
768  HANDLE hLib = LoadLibraryA(dll_name);
769 
770  /* FIXME: the library will not be unloaded until exit of program
771  * We don't send the DW_TERM message
772  */
773  WINE_TRACE("Loading %s\n", debugstr_a(dll_name));
774  /* FIXME: should look in the directory where current hlpfile
775  * is loaded from
776  */
777  if (hLib == NULL)
778  {
779  /* FIXME: internationalisation for error messages */
780  WINE_FIXME("Cannot find dll %s\n", debugstr_a(dll_name));
781  }
782  else if ((dll = HeapAlloc(GetProcessHeap(), 0, sizeof(*dll))))
783  {
784  dll->hLib = hLib;
785  dll->name = StrDup(dll_name); /* FIXME: never freed */
786  dll->next = Globals.dlls;
787  Globals.dlls = dll;
788  dll->handler = (WINHELP_LDLLHandler)GetProcAddress(dll->hLib, "LDLLHandler");
789  dll->class = dll->handler ? (dll->handler)(DW_WHATMSG, 0, 0) : DC_NOMSG;
790  WINE_TRACE("Got class %x for DLL %s\n", dll->class, debugstr_a(dll_name));
791  if (dll->class & DC_INITTERM) dll->handler(DW_INIT, 0, 0);
792  if (dll->class & DC_CALLBACKS) dll->handler(DW_CALLBACKS, (LONG_PTR)&Callbacks, 0);
793  }
794  else WINE_WARN("OOM\n");
795  }
796  if (dll && !(fn = GetProcAddress(dll->hLib, proc)))
797  {
798  /* FIXME: internationalisation for error messages */
799  WINE_FIXME("Cannot find proc %s in dll %s\n", debugstr_a(dll_name), debugstr_a(proc));
800  }
801 
802  size = ++MACRO_NumLoaded * sizeof(struct MacroDesc);
805  MACRO_Loaded[MACRO_NumLoaded - 1].name = StrDup(proc); /* FIXME: never freed */
806  MACRO_Loaded[MACRO_NumLoaded - 1].alias = NULL;
807  MACRO_Loaded[MACRO_NumLoaded - 1].isBool = FALSE;
808  MACRO_Loaded[MACRO_NumLoaded - 1].arguments = StrDup(args); /* FIXME: never freed */
809  MACRO_Loaded[MACRO_NumLoaded - 1].fn = fn;
810  WINE_TRACE("Added %s(%s) at %p\n", debugstr_a(proc), debugstr_a(args), fn);
811 }
static GLenum _GLUfuncptr fn
Definition: wgl_font.c:159
const char * name
Definition: winhelp.h:124
#define DW_INIT
Definition: winhelp.h:111
#define DC_NOMSG
Definition: winhelp.h:100
#define WINE_TRACE
Definition: debug.h:353
static struct MacroDesc * MACRO_Loaded
Definition: macro.c:46
static HANDLE proc()
Definition: pdb.c:31
#define DC_INITTERM
Definition: winhelp.h:102
DWORD class
Definition: winhelp.h:126
Definition: match.c:390
static char * StrDup(const char *str)
Definition: macro.c:51
static HMODULE dll
Definition: str.c:188
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
smooth NULL
Definition: ftsmooth.c:416
HANDLE hLib
Definition: winhelp.h:123
GLsizeiptr size
Definition: glext.h:5919
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
const struct winhelp_callbacks Callbacks
Definition: callback.c:161
#define debugstr_a
Definition: kernel32.h:31
LONG(CALLBACK * WINHELP_LDLLHandler)(WORD, LONG_PTR, LONG_PTR)
Definition: winhelp.h:119
#define DC_CALLBACKS
Definition: winhelp.h:105
#define DW_CALLBACKS
Definition: winhelp.h:117
WINHELP_LDLLHandler handler
Definition: winhelp.h:125
#define HeapReAlloc
Definition: compat.h:393
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define WINE_WARN
Definition: debug.h:359
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
#define GetProcAddress(x, y)
Definition: compat.h:410
static unsigned MACRO_NumLoaded
Definition: macro.c:47
struct tagDll * next
Definition: winhelp.h:127
#define DW_WHATMSG
Definition: winhelp.h:108
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_RemoveAccelerator()

static void CALLBACK MACRO_RemoveAccelerator ( LONG  u1,
LONG  u2 
)
static

Definition at line 813 of file macro.c.

814 {
815  WINE_FIXME("(%u, %u)\n", u1, u2);
816 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ResetMenu()

static void CALLBACK MACRO_ResetMenu ( void  )
static

Definition at line 818 of file macro.c.

819 {
820  WINE_FIXME("()\n");
821 }
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_SaveMark()

static void CALLBACK MACRO_SaveMark ( LPCSTR  str)
static

Definition at line 823 of file macro.c.

824 {
825  WINE_FIXME("(%s)\n", debugstr_a(str));
826 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Search()

static void CALLBACK MACRO_Search ( void  )
static

Definition at line 828 of file macro.c.

829 {
831 }
#define TRUE
Definition: types.h:120
BOOL WINHELP_CreateIndexWindow(BOOL is_search)
Definition: winhelp.c:1542

◆ MACRO_SetContents()

void CALLBACK MACRO_SetContents ( LPCSTR  str,
LONG  u 
)

Definition at line 833 of file macro.c.

Referenced by WINHELP_HandleCommand().

834 {
835  WINE_FIXME("(%s, %u)\n", debugstr_a(str), u);
836 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_SetHelpOnFile()

static void CALLBACK MACRO_SetHelpOnFile ( LPCSTR  str)
static

Definition at line 838 of file macro.c.

839 {
841 
842  WINE_TRACE("(%s)\n", debugstr_a(str));
843 
844  HeapFree(GetProcessHeap(), 0, page->file->help_on_file);
845  page->file->help_on_file = HeapAlloc(GetProcessHeap(), 0, strlen(str) + 1);
846  if (page->file->help_on_file)
847  strcpy(page->file->help_on_file, str);
848 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
struct tagHlpFileFile * file
Definition: hlpfile.h:84
#define WINE_TRACE
Definition: debug.h:353
const WCHAR * str
struct tagWinHelp * MACRO_CurrentWindow(void)
Definition: module.h:566
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define debugstr_a
Definition: kernel32.h:31
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
#define HeapFree(x, y, z)
Definition: compat.h:394

◆ MACRO_SetPopupColor()

static void CALLBACK MACRO_SetPopupColor ( LONG  r,
LONG  g,
LONG  b 
)
static

Definition at line 850 of file macro.c.

851 {
853 
854  WINE_TRACE("(%x, %x, %x)\n", r, g, b);
855  page->file->has_popup_color = TRUE;
856  page->file->popup_color = RGB(r, g, b);
857 }
#define TRUE
Definition: types.h:120
struct tagHlpFileFile * file
Definition: hlpfile.h:84
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
#define WINE_TRACE
Definition: debug.h:353
struct tagWinHelp * MACRO_CurrentWindow(void)
Definition: module.h:566
GLboolean GLboolean g
Definition: glext.h:6204
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define RGB(r, g, b)
Definition: wingdi.h:2917

◆ MACRO_ShellExecute()

static void CALLBACK MACRO_ShellExecute ( LPCSTR  str1,
LPCSTR  str2,
LONG  u1,
LONG  u2,
LPCSTR  str3,
LPCSTR  str4 
)
static

Definition at line 859 of file macro.c.

860 {
861  WINE_FIXME("(%s, %s, %u, %u, %s, %s)\n", debugstr_a(str1), debugstr_a(str2), u1, u2, debugstr_a(str3), debugstr_a(str4));
862 }
GLdouble GLdouble u2
Definition: glext.h:8308
GLdouble u1
Definition: glext.h:8308
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_ShortCut()

static void CALLBACK MACRO_ShortCut ( LPCSTR  str1,
LPCSTR  str2,
LONG  w,
LONG  l,
LPCSTR  str 
)
static

Definition at line 864 of file macro.c.

865 {
866  WINE_FIXME("(%s, %s, %x, %x, %s)\n", debugstr_a(str1), debugstr_a(str2), w, l, debugstr_a(str));
867 }
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
const WCHAR * str
r l[0]
Definition: byte_order.h:167
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_TCard()

static void CALLBACK MACRO_TCard ( LONG  u)
static

Definition at line 869 of file macro.c.

870 {
871  WINE_FIXME("(%u)\n", u);
872 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_Test()

static void CALLBACK MACRO_Test ( LONG  u)
static

Definition at line 874 of file macro.c.

875 {
876  WINE_FIXME("(%u)\n", u);
877 }
GLenum GLclampf GLint GLenum GLuint GLenum GLenum GLsizei GLenum const GLvoid GLfloat GLfloat GLfloat GLfloat GLclampd GLint GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean GLboolean GLboolean GLboolean GLint GLenum GLsizei const GLvoid GLenum GLint GLenum GLint GLint GLsizei GLint GLenum GLint GLint GLint GLint GLsizei GLenum GLsizei const GLuint GLboolean GLenum GLenum GLint GLsizei GLenum GLsizei GLenum const GLvoid GLboolean const GLboolean GLenum const GLdouble * u
Definition: glfuncs.h:88
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_TestALink()

static BOOL CALLBACK MACRO_TestALink ( LPCSTR  str)
static

Definition at line 879 of file macro.c.

880 {
881  WINE_FIXME("(%s)\n", debugstr_a(str));
882  return FALSE;
883 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_TestKLink()

static BOOL CALLBACK MACRO_TestKLink ( LPCSTR  str)
static

Definition at line 885 of file macro.c.

886 {
887  WINE_FIXME("(%s)\n", debugstr_a(str));
888  return FALSE;
889 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_UncheckItem()

static void CALLBACK MACRO_UncheckItem ( LPCSTR  str)
static

Definition at line 891 of file macro.c.

892 {
893  WINE_FIXME("(%s)\n", debugstr_a(str));
894 }
const WCHAR * str
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ MACRO_UpdateWindow()

static void CALLBACK MACRO_UpdateWindow ( LPCSTR  str1,
LPCSTR  str2 
)
static

Definition at line 896 of file macro.c.

897 {
898  WINE_FIXME("(%s, %s)\n", debugstr_a(str1), debugstr_a(str2));
899 }
#define debugstr_a
Definition: kernel32.h:31
#define WINE_FIXME
Definition: debug.h:365

◆ StrDup()

static char* StrDup ( const char str)
static

Definition at line 51 of file macro.c.

Referenced by MACRO_RegisterRoutine().

52 {
53  char* dst;
54  dst=HeapAlloc(GetProcessHeap(),0,strlen(str)+1);
55  strcpy(dst, str);
56  return dst;
57 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
const WCHAR * str
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
GLuint const GLubyte GLvoid const GLvoid * dst
Definition: s_context.h:57
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( winhelp  )

Variable Documentation

◆ MACRO_Builtins

struct MacroDesc MACRO_Builtins[]
static

Definition at line 913 of file macro.c.

◆ MACRO_Loaded

struct MacroDesc* MACRO_Loaded
static

Definition at line 46 of file macro.c.

◆ MACRO_NumLoaded

unsigned MACRO_NumLoaded
static

Definition at line 47 of file macro.c.

Referenced by MACRO_Lookup(), and MACRO_RegisterRoutine().