File: samain.h

package info (click to toggle)
trn4 4.0-test77-13
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 3,656 kB
  • sloc: ansic: 48,331; sh: 6,817; tcl: 1,696; yacc: 660; perl: 108; makefile: 24
file content (55 lines) | stat: -rw-r--r-- 1,817 bytes parent folder | download | duplicates (11)
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
/* This file Copyright 1992,1993 by Clifford A. Adams */
/* samain.h
 *
 * Main routines for article-scan mode.
 */

/* sa_flags character bitmap:
 * 0: If set, the article is "marked" (for reading).
 * 1: If set, the article is "selected" (for zoom mode display).
 * 2: Secondary selection--not currently used.
 * 3: If set, the author of this article influenced its score.
 */
#define sa_mark(a) (sa_ents[a].sa_flags |= 1)
#define sa_clearmark(a) (sa_ents[a].sa_flags &= 0xfe)
#define sa_marked(a) (sa_ents[a].sa_flags & 1)

#define sa_select1(a) (sa_ents[a].sa_flags |= 2)
#define sa_clearselect1(a) (sa_ents[a].sa_flags &= 0xfd)
#define sa_selected1(a) (sa_ents[a].sa_flags & 2)

/* sa_select2 is not currently used */
#define sa_select2(a) (sa_ents[a].sa_flags |= 4)
#define sa_clearselect2(a) (sa_ents[a].sa_flags &= 0xfb)
#define sa_selected2(a) (sa_ents[a].sa_flags & 4)

#define sa_setauthscored(a) (sa_ents[a].sa_flags |= 8)
#define sa_clearauthscored(a) (sa_ents[a].sa_flags &= 0xf7)
#define sa_authscored(a) (sa_ents[a].sa_flags & 8)

/* misc. buffer */
EXT char sa_buf[LBUFLEN];

/* TRUE if in "zoom" (display only selected) mode */
EXT bool sa_mode_zoom INIT(FALSE);

/* if TRUE, the already-read articles have been added to the order arrays */
EXT bool sa_order_read INIT(FALSE);

/* contains the scan-context number for the current article scan */
EXT int sa_scan_context INIT(-1);

/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */

void sa_init _((void));
void sa_init_ents _((void));
void sa_clean_ents _((void));
long sa_add_ent _((ART_NUM));
void sa_cleanmain _((void));
void sa_growarts _((long,long));
void sa_init_context _((void));
bool sa_initarts _((void));
void sa_initmode _((void));
int sa_mainloop _((void));
void sa_lookahead _((void));
long sa_readmarked_elig _((void));