home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / MOVARS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1.7 KB  |  45 lines

  1. /**
  2. *
  3. * Name        movars -- Global variables used by some MO functions:
  4. *              b_mocatch, b_momask, b_modispat, b_mohanmask
  5. *
  6. * Description    This module defines four global variables used by
  7. *        MOHANDLR, MOPRECLK, and MOCATCH.  These variables allow
  8. *        MOCATCH to coexist freely with a user interrupt handler.
  9. *
  10. *        If MOCATCH is installed via MOPRECLK, b_mocatch contains
  11. *        the address of MOCATCH and b_momask contains its call
  12. *        mask (namely MOCATCH_MASK).  If MOCATCH is not
  13. *        installed, both variables contain 0.
  14. *
  15. *        If a user mouse interrupt handler is installed via
  16. *        MOHANDLR, b_modispat contains the entry address of the
  17. *        dispatcher inside MOHANDLR.C and b_mohanmask contains
  18. *        the user's call mask.  If no user interrupt handler is
  19. *        installed, both variables contain 0.
  20. *
  21. *        (These variables are here provided in a separate module
  22. *        to allow MOPRECLK or MOHANDLR to be invoked without also
  23. *        linking in the other unnecessarily.)
  24. *
  25. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  26. *
  27. **/
  28.  
  29. #include <bmouse.h>
  30.  
  31. void (far *b_mocatch)(void) = 0;      /* Pointer to MOCATCH if          */
  32.                       /*  installed, or 0 if not.     */
  33.                       /*                  */
  34. unsigned b_momask    = 0;          /* Current MOCATCH event mask   */
  35.                       /*  (0 or MOCATCH_MASK).          */
  36.                       /*                  */
  37. ISRCTRL far *b_modispat = FARNIL;     /* Address of dispatcher that   */
  38.                       /*  invokes user interrupt      */
  39.                       /*  handler, or 0 if no handler */
  40.                       /*  installed.              */
  41.                       /*                  */
  42. unsigned b_mohanmask    = 0;          /* Call mask for user mouse     */
  43.                       /*  interrupt handler (0 if     */
  44.                       /*  none).              */
  45.