Changet type bit to bits

This commit is contained in:
Ianos Gnatiuc 2005-10-22 03:38:17 +00:00
parent fb668729c2
commit 54a3490eaa
6 changed files with 137 additions and 140 deletions

View File

@ -129,10 +129,9 @@ typedef uint16_t word;
typedef uint32_t dword;
#endif //#ifdef _MSC_VER
typedef uint8_t bit;
typedef unsigned int uint;
typedef uint8_t bits;
typedef uint32_t time32_t; /* 32-bit time_t type */
// ------------------------------------------------------------------

View File

@ -304,27 +304,27 @@ typedef struct
short messages;
struct
{
bit origin : 3;
bit group : 5; /* 0 ... MAX_GROUPS-1 */
bit type : 3;
bit umlaut : 1;
bit aka : 4; /* 0 ... MAX_AKAS-1 */
bits origin : 3;
bits group : 5; /* 0 ... MAX_GROUPS-1 */
bits type : 3;
bits umlaut : 1;
bits aka : 4; /* 0 ... MAX_AKAS-1 */
} flags;
short days;
word conference; /* 0 ... 991 */
word read_sec,write_sec;
struct
{
bit autoadded : 1;
bit tinyseen : 1;
bit cpd : 1;
bit passive : 1;
bit keepseen : 1;
bit mandatory : 1;
bit keepsysop : 1;
bit killread : 1;
bit disablepsv : 1;
bit resv : 7;
bits autoadded : 1;
bits tinyseen : 1;
bits cpd : 1;
bits passive : 1;
bits keepseen : 1;
bits mandatory : 1;
bits keepsysop : 1;
bits killread : 1;
bits disablepsv : 1;
bits resv : 7;
} advflags;
char path[_MAXPATH];
char desc[42];
@ -375,14 +375,14 @@ typedef struct
word nodenr;
struct
{
bit sendto : 3;
bit newgroup: 5;
bit valid : 1;
bit uncond : 1;
bit addplus : 1;
bit addtear : 1;
bit format : 3;
bit active : 1;
bits sendto : 3;
bits newgroup: 5;
bits valid : 1;
bits uncond : 1;
bits addplus : 1;
bits addtear : 1;
bits format : 3;
bits active : 1;
} flags;
char file[_MAXPATH];
dword groups;

View File

@ -121,11 +121,11 @@
// Structs used in IMAIL Configuration files
struct eaddress { /* used in Area Manager ... */
ftn_addr dstn; /* node number */
bit exp_only:1; /* export only flag */
bit imp_only:1; /* import only flag */
bit paused:1; /* echo mail paused */
bit rsvd1:5; /* reserved */
ftn_addr dstn; /* node number */
bits exp_only:1; /* export only flag */
bits imp_only:1; /* import only flag */
bits paused:1; /* echo mail paused */
bits rsvd1:5; /* reserved */
};
struct fwd_link { /* used for forward request nodes ... */
@ -193,29 +193,29 @@ struct im_config_type {
char maint_help[IMAXFILE+IMAXEXT]; /* Alnk Remote Maint. Helptext */
char rsvd2[IMAXFILE+IMAXEXT]; /* reserved */
char dflt_origin[MAXORIGIN]; /* default origin line */
bit rtnrecpt:1; /* True if to send rtn recpt */
bit del_empty_msg:1; /* delete empty netmails (TOSS) */
bit ARCmail06:1; /* ARCmail 0.6 compatibility */
bit use_crc_names:1; /* use crc-names for auto-areas */
bit rsvd3:1; /* reserved */
bit multi_tasking:1; /* true if multi-tasking */
bit ignore_unknown:1; /* ALNK ignores unknown systems */
bit singleextract:1; /* extract 1 bundle at a time */
bit trunc_sent:1; /* 1 = Trunc 0 = Delete */
bit keep_alnk_answ:1; /* keep arealink answer */
bit prod_names:1; /* use the FTSC product list */
bit swap_ems:1; /* swap to EMS */
bit swap_ext:1; /* swap to extended memory */
bit forward_everything:1; /* forward req. not in fwd-lists */
bit direct_video:1; /* use direct screen writing */
bit rsvd4:1; /* reserved */
bit compr_after_pkt:1; /* compress after each PKT? */
bit delete_bases:1; /* when removing an area, */
bits rtnrecpt:1; /* True if to send rtn recpt */
bits del_empty_msg:1; /* delete empty netmails (TOSS) */
bits ARCmail06:1; /* ARCmail 0.6 compatibility */
bits use_crc_names:1; /* use crc-names for auto-areas */
bits rsvd3:1; /* reserved */
bits multi_tasking:1; /* true if multi-tasking */
bits ignore_unknown:1; /* ALNK ignores unknown systems */
bits singleextract:1; /* extract 1 bundle at a time */
bits trunc_sent:1; /* 1 = Trunc 0 = Delete */
bits keep_alnk_answ:1; /* keep arealink answer */
bits prod_names:1; /* use the FTSC product list */
bits swap_ems:1; /* swap to EMS */
bits swap_ext:1; /* swap to extended memory */
bits forward_everything:1; /* forward req. not in fwd-lists */
bits direct_video:1; /* use direct screen writing */
bits rsvd4:1; /* reserved */
bits compr_after_pkt:1; /* compress after each PKT? */
bits delete_bases:1; /* when removing an area, */
/* delete also squish/msg-base */
bit rsvd5:1; /* reserved */
bit use_imcomp:1; /* call IMCOMP in case of tight */
bits rsvd5:1; /* reserved */
bits use_imcomp:1; /* call IMCOMP in case of tight */
/* diskspace or abort at once */
bit rsvd6:4; /* reserved */
bits rsvd6:4; /* reserved */
long last_run; /* last maintenance run */
word rsvd7; /* reserved */
byte rsvd8; /* reserved */
@ -274,28 +274,28 @@ struct areas_record_type {
byte msg_base_type; /* message base type */
byte brd; /* board number */
char msg_path[IMAXPATH]; /* MSG/Squish path */
bit active:1; /* flag area active */
bit zone_gate:1; /* Zone-gate stripping */
bit tiny_seen:1; /* tiny seen-by flag */
bit secure:1; /* secure flag */
bit import_seen:1; /* import seen-by into base */
bit deleted:1; /* flag deleted area */
bit auto_added:1; /* flag auto-added record */
bit mandatory:1; /* area is mandatory */
bit read_only:1; /* area is read only */
bit unlinked:1; /* area has been unlinked */
bit ulnk_req:1; /* perform unlinked requests? */
bit hidden:1; /* area is hidden */
bit to_link:1; /* should by processed by LINK */
bit check_dup:1; /* check for dupes in this area? */
bit no_pause:1; /* %PAUSE not allowed in this echo? */
bit hide_seen:1; /* Hide seens when importing */
bit manual:1; /* No changes via Arealink */
bit fwdreq_pending:1; /* Requested but yet not arrived */
bit sqkillfly:1; /* Squish 'Kill on the fly' */
bit dupe_msgid:1; /* Dupecheck on MSGID only? */
bit deadlink_req:1; /* Deadlink request has been sent */
bit rsvd:2; /* reserved */
bits active:1; /* flag area active */
bits zone_gate:1; /* Zone-gate stripping */
bits tiny_seen:1; /* tiny seen-by flag */
bits secure:1; /* secure flag */
bits import_seen:1; /* import seen-by into base */
bits deleted:1; /* flag deleted area */
bits auto_added:1; /* flag auto-added record */
bits mandatory:1; /* area is mandatory */
bits read_only:1; /* area is read only */
bits unlinked:1; /* area has been unlinked */
bits ulnk_req:1; /* perform unlinked requests? */
bits hidden:1; /* area is hidden */
bits to_link:1; /* should by processed by LINK */
bits check_dup:1; /* check for dupes in this area? */
bits no_pause:1; /* %PAUSE not allowed in this echo? */
bits hide_seen:1; /* Hide seens when importing */
bits manual:1; /* No changes via Arealink */
bits fwdreq_pending:1; /* Requested but yet not arrived */
bits sqkillfly:1; /* Squish 'Kill on the fly' */
bits dupe_msgid:1; /* Dupecheck on MSGID only? */
bits deadlink_req:1; /* Deadlink request has been sent */
bits rsvd:2; /* reserved */
byte user_bits; /* 8 user-available bits */
byte days; /* days to keep messages */
word msgs; /* num messages to keep */

View File

@ -120,14 +120,14 @@
// Structs used in IMAIL Configuration files
struct eaddress { /* used in Area Manager */
ftn_addr dstn; /* node number */
bit exp_only:1; /* export only flag */
bit imp_only:1; /* import only flag */
bit paused:1; /* echo mail paused */
bit denied:1; /* access is denied */
bit uplink:1; /* uplink */
bit rsvd1:3; /* reserved */
struct eaddress { /* used in Area Manager */
ftn_addr dstn; /* node number */
bits exp_only:1; /* export only flag */
bits imp_only:1; /* import only flag */
bits paused:1; /* echo mail paused */
bits denied:1; /* access is denied */
bits uplink:1; /* uplink */
bits rsvd1:3; /* reserved */
};
struct fwd_link { /* used in Forward Manager */
@ -199,32 +199,32 @@ struct im_config_type {
char maint_help[MAXFILE+MAXEXT]; /* Alnk Remote Maint. Helptext */
char rsvd2[MAXFILE+MAXEXT]; /* reserved */
char dflt_origin[MAXORIGIN]; /* default origin line */
bit rtnrecpt:1; /* True if to send rtn recpt */
bit del_empty_msg:1; /* delete empty netmails (TOSS) */
bit ARCmail06:1; /* ARCmail 0.6 compatibility */
bit use_crc_names:1; /* use crc-names for auto-areas */
bit req_all_allowed:1; /* allow arealink +* command */
bit multi_tasking:1; /* true if multi-tasking */
bit ignore_unknown:1; /* ALNK ignores unknown systems */
bit singleextract:1; /* extract 1 bundle at a time */
bit trunc_sent:1; /* 1 = Trunc 0 = Delete */
bit keep_alnk_answ:1; /* keep arealink answer */
bit prod_names:1; /* use the FTSC product list */
bit swap_ems:1; /* swap to EMS */
bit swap_ext:1; /* swap to extended memory */
bit forward_everything:1; /* forward req. not in fwd-lists */
bit direct_video:1; /* use direct screen writing */
bit close_at_end:1; /* close graphic window at end */
bit compr_after_pkt:1; /* compress after each PKT? */
bit delete_bases:1; /* when removing an area, */
bits rtnrecpt:1; /* True if to send rtn recpt */
bits del_empty_msg:1; /* delete empty netmails (TOSS) */
bits ARCmail06:1; /* ARCmail 0.6 compatibility */
bits use_crc_names:1; /* use crc-names for auto-areas */
bits req_all_allowed:1; /* allow arealink +* command */
bits multi_tasking:1; /* true if multi-tasking */
bits ignore_unknown:1; /* ALNK ignores unknown systems */
bits singleextract:1; /* extract 1 bundle at a time */
bits trunc_sent:1; /* 1 = Trunc 0 = Delete */
bits keep_alnk_answ:1; /* keep arealink answer */
bits prod_names:1; /* use the FTSC product list */
bits swap_ems:1; /* swap to EMS */
bits swap_ext:1; /* swap to extended memory */
bits forward_everything:1; /* forward req. not in fwd-lists */
bits direct_video:1; /* use direct screen writing */
bits close_at_end:1; /* close graphic window at end */
bits compr_after_pkt:1; /* compress after each PKT? */
bits delete_bases:1; /* when removing an area, */
/* delete also squish/msg-base */
bit quiet_packers:1; /* send packer output >NUL */
bit use_imcomp:1; /* call IMCOMP in case of tight */
bits quiet_packers:1; /* send packer output >NUL */
bits use_imcomp:1; /* call IMCOMP in case of tight */
/* diskspace or abort at once */
bit sort_alnk_lists:1; /* sort ALNK lists by areatag */
bit ulnk_hudson_passth:1; /* unlinked Hudson areas passth */
bit compr_before_unpack:1; /* compress before unpacking */
bit rsvd3:1; /* reserved */
bits sort_alnk_lists:1; /* sort ALNK lists by areatag */
bits ulnk_hudson_passth:1; /* unlinked Hudson areas passth */
bits compr_before_unpack:1; /* compress before unpacking */
bits rsvd3:1; /* reserved */
time32_t last_run; /* last maintenance run */
word rsvd4; /* reserved */
byte rsvd5; /* reserved */
@ -291,29 +291,29 @@ struct areas_record_type
byte msg_base_type; /* message base type */
byte brd; /* board number */
char msg_path[MAXPATH]; /* MSG/Squish path */
bit active:1; /* flag area active */
bit zone_gate:1; /* Zone-gate stripping */
bit tiny_seen:1; /* tiny seen-by flag */
bit secure:1; /* secure flag */
bit import_seen:1; /* import seen-by into base */
bit deleted:1; /* flag deleted area */
bit auto_added:1; /* flag auto-added record */
bit mandatory:1; /* area is mandatory */
bit read_only:1; /* area is read only */
bit unlinked:1; /* area has been unlinked */
bit ulnk_req:1; /* perform unlinked requests? */
bit hidden:1; /* area is hidden */
bit to_link:1; /* should by processed by LINK */
bit check_dup:1; /* check for dupes in this area? */
bit no_pause:1; /* %PAUSE not allowed in this echo? */
bit hide_seen:1; /* Hide seens when importing */
bit manual:1; /* No changes via Arealink */
bit fwdreq_pending:1; /* Requested but yet not arrived */
bit sqkillfly:1; /* Squish 'Kill on the fly' */
bit dupe_msgid:1; /* Dupecheck on MSGID only? */
bit deadlink_req:1; /* Deadlink request has been sent */
bit packing_pending:1; /* areas contains msgs deleted by KILL */
bit rsvd:1; /* reserved */
bits active:1; /* flag area active */
bits zone_gate:1; /* Zone-gate stripping */
bits tiny_seen:1; /* tiny seen-by flag */
bits secure:1; /* secure flag */
bits import_seen:1; /* import seen-by into base */
bits deleted:1; /* flag deleted area */
bits auto_added:1; /* flag auto-added record */
bits mandatory:1; /* area is mandatory */
bits read_only:1; /* area is read only */
bits unlinked:1; /* area has been unlinked */
bits ulnk_req:1; /* perform unlinked requests? */
bits hidden:1; /* area is hidden */
bits to_link:1; /* should by processed by LINK */
bits check_dup:1; /* check for dupes in this area? */
bits no_pause:1; /* %PAUSE not allowed in this echo? */
bits hide_seen:1; /* Hide seens when importing */
bits manual:1; /* No changes via Arealink */
bits fwdreq_pending:1; /* Requested but yet not arrived */
bits sqkillfly:1; /* Squish 'Kill on the fly' */
bits dupe_msgid:1; /* Dupecheck on MSGID only? */
bits deadlink_req:1; /* Deadlink request has been sent */
bits packing_pending:1; /* areas contains msgs deleted by KILL */
bits rsvd:1; /* reserved */
byte user_bits; /* 8 user-available bits */
byte days; /* days to keep messages */
word msgs; /* num messages to keep */

View File

@ -38,8 +38,6 @@
// ------------------------------------------------------------------
typedef unsigned char bits;
#define MAXFLAGS 4
#define SIZEOF_MSGAREA 512

View File

@ -54,21 +54,21 @@
typedef struct {
char echoname[51]; /* Echomail conference name */
char path[51]; /* Path, if .MSG format otherwise NUL'ed */
bit seenbys : 1; /* 1 = Import Seen-By 0 = No Seen-By */
bit security : 1; /* 1 = Security On 0 = Security Off */
bit passthru : 1; /* 1 = Passthru 0 = Not Passthru */
bit visible : 1; /* 1 = Visible 0 = Not visible */
bit deleted : 1; /* 1 = Deleted 0 = In Use */
bit cpp : 1; /* 1 = CPP On 0 = CPP Off */
bit tiny : 1; /* 1 = Tiny 0 = Not Tiny */
bit Private : 1; /* 1 = Private 0 = Not Private */
bits seenbys : 1; /* 1 = Import Seen-By 0 = No Seen-By */
bits security : 1; /* 1 = Security On 0 = Security Off */
bits passthru : 1; /* 1 = Passthru 0 = Not Passthru */
bits visible : 1; /* 1 = Visible 0 = Not visible */
bits deleted : 1; /* 1 = Deleted 0 = In Use */
bits cpp : 1; /* 1 = CPP On 0 = CPP Off */
bits tiny : 1; /* 1 = Tiny 0 = Not Tiny */
bits Private : 1; /* 1 = Private 0 = Not Private */
byte originno; /* FrontDoor origin number? Seems to follow origno */
ftn_addr feeders[60]; /* List of feeds. Sorted descending, NUL-padded */
char fill2[4]; /* Unknown */
byte groupid; /* Group-relation. (A-Z, uppercase) */
byte board; /* Board number, if QBBS format - otherwise zero */
bit akano : 4; /* Index in FD.SYS - Aka number */
bit origno : 4; /* Index in FD.SYS - Origin number */
bits akano : 4; /* Index in FD.SYS - Aka number */
bits origno : 4; /* Index in FD.SYS - Origin number */
char fill3; /* Unknown */
short maxmsgs; /* Max msgs in area (max 20000) */
short dayskeep; /* Day to keep before deleting (max 365) */