1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
/* $Id: rt-select.h,v 3.0 1992/12/14 00:14:15 davison Trn $
*/
/* The authors make no claims as to the fitness or correctness of this software
* for any use whatsoever, and it is provided as is. Any use of this software
* is at the user's own risk.
*/
#define MAX_SEL 64
EXT bool sel_rereading INIT(0);
EXT int sel_mode INIT(0);
EXT int sel_threadmode INIT(0);
#define SM_THREAD 0
#define SM_SUBJECT 1
#define SM_ARTICLE 2
EXT char *sel_mode_string;
EXT int sel_sort INIT(0);
EXT int sel_artsort INIT(4);
EXT int sel_threadsort INIT(0);
#define SS_DATE 0
#define SS_SUBJECT 1
#define SS_AUTHOR 2
#define SS_COUNT 3
#define SS_NUMBER 4
#define SS_GROUPS 5
EXT char *sel_sort_string;
EXT int sel_direction INIT(1);
EXT bool sel_exclusive INIT(FALSE);
EXT int sel_mask INIT(1);
EXT bool selected_only INIT(FALSE);
EXT ART_UNREAD selected_count INIT(0);
EXT int selected_subj_cnt INIT(0);
EXT int added_articles INIT(0);
#define VOIDPTR void
struct sel_item {
VOIDPTR *ptr;
int line;
int sel;
};
EXT char *sel_chars;
EXT struct sel_item sel_items[MAX_SEL];
EXT int sel_item_index;
EXT int sel_item_cnt;
EXT int sel_total_arts;
EXT int sel_prior_arts;
EXT int sel_page_arts;
EXT int sel_page_cnt;
EXT int sel_max_cnt;
EXT int sel_line;
EXT int sel_last_line;
EXT bool sel_at_end;
EXT ARTICLE **sel_page_app;
EXT SUBJECT *sel_page_sp;
EXT ARTICLE **sel_next_app;
EXT SUBJECT *sel_next_sp;
EXT ARTICLE *sel_last_ap;
EXT SUBJECT *sel_last_sp;
char do_selector _((char_int));
#define DS_POS 0
#define DS_ASK 1
#define DS_UPDATE 2
#define DS_DISPLAY 3
#define DS_RESTART 4
#define DS_STATUS 5
#define DS_QUIT 6
#ifdef DOINIT
static void empty_complaint _((void));
static void sel_cleanup _((void));
static int sel_command _((char_int));
#endif
|