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

@@ -127,13 +127,8 @@ typedef unsigned int uint32_t;
#error Don't know how to define 32 bit integers
#endif
typedef int8_t sbyte;
typedef uint8_t byte;
typedef uint8_t uchar;
typedef uint16_t word;
typedef uint16_t ushort;
typedef uint32_t dword;
#endif //#ifdef _MSC_VER

View File

@@ -141,7 +141,7 @@ int ftn_version7_nodelist_index::namecmp() const {
int n = 1;
int d;
while(1) {
d = tolower((uchar)*a) - tolower((uchar)*b);
d = tolower((uint8_t)*a) - tolower((uint8_t)*b);
if((d != 0) or (*a == NUL) or (*b == NUL))
break;
a++;

View File

@@ -87,11 +87,11 @@ struct PcbUsers {
struct PcbUsersInfHdr {
ushort version; // PCBoard Version Number
ushort numofconf; // Number of EXTENDED Conferences Allocated in File
ushort sizeofrec; // Size of the 'static' PCBoard User Record
uint16_t version; // PCBoard Version Number
uint16_t numofconf; // Number of EXTENDED Conferences Allocated in File
uint16_t sizeofrec; // Size of the 'static' PCBoard User Record
long sizeofconf; // Total Size of PCBoard Conference Information
ushort numofapps; // Number of Third Party Apps adding onto the record
uint16_t numofapps; // Number of Third Party Apps adding onto the record
long totalrecsize; // Total Record Size (PCB and all TPA components)
};
@@ -102,9 +102,9 @@ struct PcbUsersInfHdr {
struct PcbUsersInfApp {
char name[15]; // Name of Application (NULL terminated)
ushort version; // Version Number
ushort sizeofrec; // Size of Application Record information (0-65535)
ushort sizeofconfrec; // Size of Conference Record information (0-65535)
uint16_t version; // Version Number
uint16_t sizeofrec; // Size of Application Record information (0-65535)
uint16_t sizeofconfrec; // Size of Conference Record information (0-65535)
char keyword[9]; // Keyword to execute Application (NULL terminated)
long offset; // Offset in User Record where TPA record begins
};