home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_100 / 137_01 / _lsup.h next >
Text File  |  1985-03-10  |  1KB  |  57 lines

  1. /************************************************************************
  2. *                                    *
  3. *    _lsup.h                created: 25-Mar-84        *
  4. *                                    *
  5. *    a component of lsup.c                        *
  6. *                                    *
  7. *    version 1.00 as of 25-Mar-84                    *
  8. *                                    *
  9. *    Copyright 1984 (c) Anthony Skjellum.                *
  10. *    All rights reserved.                          *
  11. *                                    *
  12. *    This program may be freely distributed for all non-commercial    *
  13. *    purposes, but may not be sold.                    *
  14. *                                    *
  15. *    This is a header/definition file which must be included        *
  16. *    in any module which utilizes long pointers.            *
  17. *                                    *
  18. ************************************************************************/
  19.  
  20. /*
  21.     compiler feature toggles:
  22.     comment out any which don't apply to the compiler in use.
  23. */
  24.  
  25. #define    MSUBST            /* macro substitution supported */
  26.  
  27. /* typedefs */
  28.  
  29. typedef struct __lword
  30. {
  31.     unsigned _addr;        /* address */
  32.     unsigned _segm;     /* segment */
  33. } LWORD;
  34.  
  35. typedef union __lptr
  36. {
  37.     long    _llong;        /* long format (for assignments) */
  38.     char    _lstr[4];    /* character format */
  39.     LWORD    _lword;        /* long-word format */
  40. } LPTR;
  41.  
  42. /* constants */
  43.  
  44. /* macros */
  45.  
  46. /* lassign(destination,source): effect assignment of type LPTR */
  47.  
  48. #ifdef    MSUBST
  49. #define    lassign(d,s)    d._llong = s._llong;
  50. #endif
  51.  
  52. /* function specifications: */
  53.  
  54. char lchr();
  55.  
  56.  
  57.