source: trunk/athena/bin/delete/col.h @ 24908

Revision 24908, 1.7 KB checked in by ghudson, 14 years ago (diff)
In delete: * Patches from Jonathan Kamens: - The "-f" flag to delete should suppress nonexistent file errors but not other errors. - When the "-v" flag is specified to expunge, the correct totals should be reported. Previously, the totals were incorrect. - Code cleanup.
Line 
1/*
2 * $Id: col.h,v 1.4 1999-01-22 23:08:51 ghudson Exp $
3 *
4 * This header file is part of a package including delete, undelete,
5 * lsdel, expunge and purge.  The software suite is meant as a
6 * replacement for rm which allows for file recovery.
7 *
8 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
9 * For copying and distribution information, see the file "mit-copying.h."
10 */
11#include "mit-copying.h"
12
13#include <stdio.h>
14
15/*
16 * DEF_COL_WIDTH: the column with to try to use if none is specified.
17 * DEF_WAIT: 1 if the program is supposed to wait for stdin to get to
18 *           end-of-file and then print out everything in order in
19 *           columns by default.  If this is 0, then the default is
20 *           for the program to print across instead of down and to
21 *           print as it receives input from stdin.
22 * DEF_VAR_COLS: if 1, use variable-width columns based on text width.
23 *               if 1, DEF_WAIT must be true.
24 * DEF_SCR_WIDTH: default screen width
25 * DEF_NUM_ITEMS: if 1, number each item
26 * DEF_MARGIN: the default margin in between columns of text
27 */
28#define DEF_COL_WIDTH 20
29#define DEF_WAIT 1
30#define DEF_VAR_COLS 1
31#define DEF_SCR_WIDTH 80
32#define DEF_NUM_ITEMS 1
33#define DEF_MARGIN 2
34 /* This is used for when we need a guess as to how long a number will */
35 /* be when printed.  Also, if we are supposed to work in wait mode    */
36 /* and are not given a maxitems value, this is what is used.          */
37#define DEF_MAX_ITEMS 10000
38
39int column_array(char **strings, int num_to_print, int screen_width,
40                 int column_width, int number_of_columns, int margin,
41                 int spread_flag, int number_flag, int var_col_flag,
42                 FILE *outfile);
Note: See TracBrowser for help on using the repository browser.