home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume11 / watcher / part01 / pp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-27  |  534 b   |  29 lines

  1. /*
  2.    pp: pretty print the command structure.
  3.  
  4.    Kenneth Ingham
  5.  
  6.    Copyright (C) 1987 The University of New Mexico
  7. */
  8.  
  9. #include "defs.h"
  10.  
  11. pp(clist)
  12. struct cmd_st *clist;
  13. {
  14.     extern char histfilename[];
  15.     extern char controlname[];
  16.  
  17.     printf("History file name: %s\n", histfilename);
  18.     printf("Control file name: %s\n", controlname);
  19.     printf("\n\n");
  20.  
  21.     while (clist != NULL) {
  22.         printf("( %s )\n", clist->pipeline);
  23.         pp_out(clist->out_type, clist->out_fmt);
  24.         printf(" :\n");
  25.         pp_change(clist->change_fmt);
  26.         clist = clist->next;
  27.     }
  28. }
  29.