home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / dca2troff / do_sfe8.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-02-18  |  626 b   |  24 lines

  1. #include "dca2troff.h"
  2. /* structured field class e8 */
  3. do_sfe8()
  4. {
  5.     switch(sf_type)
  6.     {                /* Margin Text */
  7.     case 0x01:            /* MTTA - Top Margin - All Pages */
  8.     case 0x02:            /* MTTO - Top Margin - Odd Pages */
  9.     case 0x03:            /* MTTE - Top Margin - Even Pages */
  10.     case 0x04:            /* MTBA - Bottom Margin - All Pages */
  11.     case 0x05:            /* MTBO - Bottom Margin - Odd Pages */
  12.     case 0x06:            /* MTBE - Bottom Margin - Even Pages */
  13.         flush_sf();
  14.         return;
  15.     case 0x07:            /* BT   - Body Text */
  16.         do_text();
  17.         return;
  18.     default:
  19.         fprintf(stderr, "unknown sf e8 type (x%02x)\n", sf_type);
  20.         flush_sf();
  21.         return;
  22.     }
  23. }
  24.