macro.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * Help Viewer
  3. *
  4. * Copyright 1996 Ulrich Schmid
  5. * Copyright 2002 Eric Pouech
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  20. */
  21. #include <stdarg.h>
  22. #include "windef.h"
  23. #include "winbase.h"
  24. struct lexret {
  25. LPCSTR proto;
  26. BOOL bool;
  27. LONG integer;
  28. LPCSTR string;
  29. FARPROC function;
  30. };
  31. extern struct lexret yylval;
  32. struct tagWinHelp;
  33. BOOL MACRO_ExecuteMacro(struct tagWinHelp*, LPCSTR);
  34. int MACRO_Lookup(const char* name, struct lexret* lr);
  35. struct tagWinHelp* MACRO_CurrentWindow(void);
  36. enum token_types {EMPTY, VOID_FUNCTION, BOOL_FUNCTION, INTEGER, STRING, IDENTIFIER};
  37. void CALLBACK MACRO_About(void);
  38. void CALLBACK MACRO_Annotate(void);
  39. void CALLBACK MACRO_BookmarkDefine(void);
  40. void CALLBACK MACRO_CopyDialog(void);
  41. void CALLBACK MACRO_CreateButton(LPCSTR, LPCSTR, LPCSTR);
  42. void CALLBACK MACRO_DisableButton(LPCSTR);
  43. void CALLBACK MACRO_Exit(void);
  44. void CALLBACK MACRO_FileOpen(void);
  45. void CALLBACK MACRO_HelpOn(void);
  46. void CALLBACK MACRO_HelpOnTop(void);
  47. void CALLBACK MACRO_History(void);
  48. void CALLBACK MACRO_JumpContents(LPCSTR, LPCSTR);
  49. void CALLBACK MACRO_JumpContext(LPCSTR, LPCSTR, LONG);
  50. void CALLBACK MACRO_JumpHash(LPCSTR, LPCSTR, LONG);
  51. void CALLBACK MACRO_PopupContext(LPCSTR, LONG);
  52. void CALLBACK MACRO_Print(void);
  53. void CALLBACK MACRO_PrinterSetup(void);
  54. void CALLBACK MACRO_SetContents(LPCSTR, LONG);
  55. /* Local Variables: */
  56. /* c-file-style: "GNU" */
  57. /* End: */