Rev | Line | |
---|
[101] | 1 | /* |
---|
[1932] | 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 | /* |
---|
[19062] | 9 | * $Id: globals.h,v 1.22 2003-03-20 06:59:38 ghudson Exp $ |
---|
[101] | 10 | * |
---|
[196] | 11 | * Declarations of global variables for discuss. |
---|
[101] | 12 | */ |
---|
| 13 | |
---|
[1631] | 14 | #include <discuss/dsname.h> |
---|
[1748] | 15 | #include "discuss_err.h" |
---|
[19062] | 16 | #include <errno.h> |
---|
[118] | 17 | |
---|
| 18 | /* Typedefs */ |
---|
| 19 | |
---|
| 20 | typedef struct _sle { |
---|
| 21 | int low; |
---|
| 22 | int high; |
---|
[880] | 23 | int flags; |
---|
[118] | 24 | struct _sle *next; |
---|
| 25 | } selection_list; |
---|
| 26 | |
---|
[1845] | 27 | /* selection flags */ |
---|
[1844] | 28 | #define flag_AREF 8 |
---|
[880] | 29 | |
---|
[1845] | 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 | |
---|
[118] | 38 | struct _dsc_pub { |
---|
| 39 | trn_nums current; |
---|
| 40 | trn_nums highest_seen; |
---|
| 41 | bool attending; |
---|
[289] | 42 | char *host; |
---|
| 43 | char *path; |
---|
[118] | 44 | char *mtg_name; /* meeting name (user) */ |
---|
| 45 | name_blk nb; |
---|
| 46 | mtg_info m_info; |
---|
| 47 | }; |
---|
| 48 | |
---|
[84] | 49 | /* Variables */ |
---|
| 50 | |
---|
[118] | 51 | extern struct _dsc_pub dsc_public; |
---|
[351] | 52 | extern char dsc_version[]; |
---|
[84] | 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... */ |
---|
[188] | 57 | extern int sci_idx; |
---|
[84] | 58 | |
---|
[222] | 59 | extern int interrupt; |
---|
[216] | 60 | |
---|
[84] | 61 | extern int errno; /* lusing UNIX method to pass error values */ |
---|
| 62 | |
---|
[196] | 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 | |
---|
[231] | 67 | extern char *user_id; /* user.instance@realm identifier for user */ |
---|
| 68 | |
---|
[84] | 69 | /* Subroutine declarations */ |
---|
| 70 | |
---|
| 71 | extern void get_trn_map(); |
---|
[101] | 72 | extern selection_list *trn_select(); |
---|
| 73 | |
---|
[1742] | 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.