home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trash / part01 / flag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-22  |  531 b   |  27 lines

  1. #define    say_flag(mask,string,arg) \
  2. { \
  3.     if (((arg) & (mask)) == (mask)) \
  4.     { \
  5.         fprintf(outfp, "%s%s", need_leading_pipe ? "|" : "", string); \
  6.         need_leading_pipe = 1; \
  7.         arg &= ~(mask); \
  8.     } \
  9. }
  10.  
  11. #define    say_notflag(mask,string,arg) \
  12. { \
  13.     if (((arg) & (mask)) == 0) \
  14.     { \
  15.         fprintf(outfp, "%s%s", need_leading_pipe ? "|" : "", string); \
  16.         need_leading_pipe = 1; \
  17.     } \
  18. }
  19.  
  20. #define    say_residual(arg) \
  21. { \
  22.     if ((arg) != 0) \
  23.         fprintf(outfp, "%s0x%x", need_leading_pipe ? "|" : "", (arg)); \
  24. }
  25.  
  26. extern int    need_leading_pipe;
  27.