source: trunk/athena/bin/discuss/include/globals.h @ 19062

Revision 19062, 1.8 KB checked in by ghudson, 21 years ago (diff)
Use errno.h.
Line 
1/*
2 *
3 *      Copyright (C) 1988, 1989 by the Massachusetts Institute of Technology
4 *      Developed by the MIT Student Information Processing Board (SIPB).
5 *      For copying information, see the file mit-copyright.h in this release.
6 *
7 */
8/*
9 *      $Id: globals.h,v 1.22 2003-03-20 06:59:38 ghudson Exp $
10 *
11 *      Declarations of global variables for discuss.
12 */
13
14#include <discuss/dsname.h>
15#include "discuss_err.h"
16#include <errno.h>
17
18/* Typedefs */
19
20typedef struct _sle {
21        int low;
22        int high;
23        int flags;
24        struct _sle *next;
25} selection_list;
26
27/* selection flags */
28#define flag_AREF               8
29
30/* filtering flags */
31#define filter_INCLUDE_DELETED 1
32#define filter_ONLY_DELETED    2
33#define filter_ONLY_INITIAL    4
34#define filter_ONLY_TERMINAL   16
35#define filter_FLAG_SET        32
36#define filter_FLAG_RESET      64
37
38struct _dsc_pub {
39     trn_nums current;
40     trn_nums highest_seen;
41     bool attending;
42     char *host;
43     char *path;
44     char *mtg_name;                            /* meeting name (user) */
45     name_blk nb;
46     mtg_info m_info;
47};
48
49/* Variables */
50
51extern struct _dsc_pub dsc_public;
52extern char     dsc_version[];
53extern char     *buffer;
54extern int      *chosen_trn_map; /* which trns we want to see */
55extern int      map_size;       /* size of chosen_trn_map */
56extern char     *temp_file;     /* generic temporary file... */
57extern int      sci_idx;
58
59extern int      interrupt;
60
61extern int      errno;          /* lusing UNIX method to pass error values */
62
63extern bool     use_editor;     /* Should we snarf input from stdin, or
64                                 * use an editor instead? */
65extern char     *editor_path;   /* Pathname of editor to use */
66
67extern  char    *user_id;       /* user.instance@realm identifier for user */
68
69/* Subroutine declarations */
70
71extern void     get_trn_map();
72extern selection_list *trn_select();
73
74#if defined(__GNUC__)
75#undef alloca
76#define alloca(x) __builtin_alloca(x)
77#endif
Note: See TracBrowser for help on using the repository browser.