home *** CD-ROM | disk | FTP | other *** search
- /*
- pp: pretty print the command structure.
-
- Kenneth Ingham
-
- Copyright (C) 1987 The University of New Mexico
- */
-
- #include "defs.h"
-
- pp(clist)
- struct cmd_st *clist;
- {
- extern char histfilename[];
- extern char controlname[];
-
- printf("History file name: %s\n", histfilename);
- printf("Control file name: %s\n", controlname);
- printf("\n\n");
-
- while (clist != NULL) {
- printf("( %s )\n", clist->pipeline);
- pp_out(clist->out_type, clist->out_fmt);
- printf(" :\n");
- pp_change(clist->change_fmt);
- clist = clist->next;
- }
- }
-