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 | |
---|
20 | typedef 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 | |
---|
38 | struct _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 | |
---|
51 | extern struct _dsc_pub dsc_public; |
---|
52 | extern char dsc_version[]; |
---|
53 | extern char *buffer; |
---|
54 | extern int *chosen_trn_map; /* which trns we want to see */ |
---|
55 | extern int map_size; /* size of chosen_trn_map */ |
---|
56 | extern char *temp_file; /* generic temporary file... */ |
---|
57 | extern int sci_idx; |
---|
58 | |
---|
59 | extern int interrupt; |
---|
60 | |
---|
61 | extern int errno; /* lusing UNIX method to pass error values */ |
---|
62 | |
---|
63 | extern bool use_editor; /* Should we snarf input from stdin, or |
---|
64 | * use an editor instead? */ |
---|
65 | extern char *editor_path; /* Pathname of editor to use */ |
---|
66 | |
---|
67 | extern char *user_id; /* user.instance@realm identifier for user */ |
---|
68 | |
---|
69 | /* Subroutine declarations */ |
---|
70 | |
---|
71 | extern void get_trn_map(); |
---|
72 | extern selection_list *trn_select(); |
---|
73 | |
---|
74 | #if defined(__GNUC__) |
---|
75 | #undef alloca |
---|
76 | #define alloca(x) __builtin_alloca(x) |
---|
77 | #endif |
---|