Changed ushort, uchar and sbyte types to intN_t

This commit is contained in:
Ianos Gnatiuc
2005-10-21 19:48:21 +00:00
parent 0c7d1f668c
commit f559b54f6e
10 changed files with 99 additions and 104 deletions

View File

@@ -208,11 +208,11 @@ struct m_pointers {
/* Miscellanious system information */
byte video; /* Mode for local video display */
byte log_mode; /* What style of logging to use */
word max_baud; /* fastest speed we can use */
sbyte multitasker; /* flag for DoubleDos (see below) */
byte nlver; /* Which nodelist version we use (NLVER_XXX) */
byte video; /* Mode for local video display */
byte log_mode; /* What style of logging to use */
word max_baud; /* fastest speed we can use */
int8_t multitasker; /* flag for DoubleDos (see below) */
byte nlver; /* Which nodelist version we use (NLVER_XXX) */
int16_t min_ulist; /* OBSOLETE! Only used for compatibility */
int16_t max_ulist; /* with Maximus 2.x! */

View File

@@ -88,23 +88,23 @@ const int SUB_HYPER = (1L<<27); // Hyper allocation
// ------------------------------------------------------------------
typedef struct { // Message group info
char lname[LEN_GLNAME+1], // Short name
sname[LEN_GSNAME+1]; // Long name
uchar ar[LEN_ARSTR+1], // Access requirements
unused[96]; // unused
char lname[LEN_GLNAME+1], // Short name
sname[LEN_GSNAME+1]; // Long name
uint8_t ar[LEN_ARSTR+1], // Access requirements
unused[96]; // unused
} grp_t;
typedef struct { // Message sub board info
ushort grp; // Which group this sub belongs to
uint16_t grp; // Which group this sub belongs to
char lname[LEN_SLNAME+1], // Long name - used for listing
sname[LEN_SSNAME+1], // Short name - used for prompts
qwkname[LEN_SQWKNAME+1], // QWK name
code[9], // Eight character code
data_dir[LEN_DIR+1]; // Data file directory
uchar ar[LEN_ARSTR+1], // Access requirements
read_ar[LEN_ARSTR+1], // Read requirements
post_ar[LEN_ARSTR+1], // Post requirements
op_ar[LEN_ARSTR+1]; // Operator requirements
uint8_t ar[LEN_ARSTR+1], // Access requirements
read_ar[LEN_ARSTR+1], // Read requirements
post_ar[LEN_ARSTR+1], // Post requirements
op_ar[LEN_ARSTR+1]; // Operator requirements
uint32_t misc; // Miscellaneous flags
char tagline[81], // Optional QWK net tag line
origline[51], // Optional EchoMail origin line
@@ -112,12 +112,12 @@ typedef struct { // Message sub board info
echopath[LEN_DIR+1]; // EchoMail path
ftn_addr faddr; // FidoNet address
uint32_t maxmsgs, // Max number of messages allowed
maxcrcs; // Max number of CRCs to keep
ushort maxage, // Max age of messages (in days)
ptridx; // Index into pointer file
uchar mod_ar[LEN_ARSTR+1]; // Moderated user requirements
ushort qwkconf; // QWK configuration
uchar unused[53]; // unused
maxcrcs; // Max number of CRCs to keep
uint16_t maxage, // Max age of messages (in days)
ptridx; // Index into pointer file
uint8_t mod_ar[LEN_ARSTR+1]; // Moderated user requirements
uint16_t qwkconf; // QWK configuration
uint8_t unused[53]; // unused
} sub_t;
// ------------------------------------------------------------------

View File

@@ -291,7 +291,7 @@ void gareafile::ReadFMail(char* tag) {
fclose(fpar);
}
uint ar_rev = (ushort)ar.revNumber;
uint32_t ar_rev = (uint16_t)ar.revNumber;
if((ar_rev >= 0x0100) and (ar_rev < 0x0110))
ReadFMail098(fp, path, file, options);

View File

@@ -39,7 +39,7 @@ void gareafile::ReadSynchronet(char* tag) {
Path file, path;
char options[80];
ushort shrt, i;
uint16_t shrt, i;
grp_t grp;
sub_t sub;
@@ -98,13 +98,13 @@ void gareafile::ReadSynchronet(char* tag) {
// unused (0xff) 512
fseek(in, 1034, SEEK_CUR);
if(fread(&shrt, sizeof(ushort), 1, in) == 1) {
if(fread(&shrt, sizeof(uint16_t), 1, in) == 1) {
for(i = 0; i < shrt; i++) {
if(fread(&grp, sizeof(grp_t), 1, in) != 1)
break;
}
}
if(fread(&shrt, sizeof(ushort), 1, in) == 1) {
if(fread(&shrt, sizeof(uint16_t), 1, in) == 1) {
for(i = 0; i < shrt; i++) {
if(fread(&sub, sizeof(sub_t), 1, in) != 1)
break;