Few uncommon types removed
This commit is contained in:
parent
c5734978fa
commit
aaf04488fd
@ -129,12 +129,9 @@ typedef unsigned int uint32_t;
|
||||
|
||||
typedef int8_t sbyte;
|
||||
typedef uint8_t byte;
|
||||
typedef int8_t schar;
|
||||
typedef uint8_t uchar;
|
||||
|
||||
typedef int16_t sword;
|
||||
typedef uint16_t word;
|
||||
typedef int16_t sshort;
|
||||
typedef uint16_t ushort;
|
||||
|
||||
typedef uint32_t dword;
|
||||
@ -142,7 +139,6 @@ typedef uint32_t dword;
|
||||
|
||||
typedef uint8_t bit;
|
||||
|
||||
typedef signed int sint;
|
||||
typedef unsigned int uint;
|
||||
|
||||
typedef uint32_t time32_t; /* 32-bit time_t type */
|
||||
|
@ -165,7 +165,7 @@ typedef word OFS;
|
||||
// OBSOLETE! Only used for compatibility purposes
|
||||
|
||||
struct cl_rec {
|
||||
sword priv;
|
||||
int16_t priv;
|
||||
word max_time; // max cume time per day
|
||||
word max_call; // max time for one call
|
||||
word max_dl; // max dl kbytes per day
|
||||
@ -203,7 +203,7 @@ struct m_pointers {
|
||||
byte version; /* for safety STABLE */
|
||||
word heap_offset; /* OFFSET OF BEGINNING OF HEAP! STABLE */
|
||||
byte task_num; /* for multi-tasking systems STABLE */
|
||||
sword com_port; /* Com1=0, Com2=1, etc STABLE */
|
||||
int16_t com_port; /* Com1=0, Com2=1, etc STABLE */
|
||||
byte noise_ok; /* If yell noise is currently on STABLE */
|
||||
|
||||
/* Miscellanious system information */
|
||||
@ -214,8 +214,8 @@ struct m_pointers {
|
||||
sbyte multitasker; /* flag for DoubleDos (see below) */
|
||||
byte nlver; /* Which nodelist version we use (NLVER_XXX) */
|
||||
|
||||
sword min_ulist; /* OBSOLETE! Only used for compatibility */
|
||||
sword max_ulist; /* with Maximus 2.x! */
|
||||
int16_t min_ulist; /* OBSOLETE! Only used for compatibility */
|
||||
int16_t max_ulist; /* with Maximus 2.x! */
|
||||
|
||||
/* Information about errorlevels */
|
||||
|
||||
@ -226,8 +226,8 @@ struct m_pointers {
|
||||
|
||||
/* Modem information */
|
||||
|
||||
sword carrier_mask;
|
||||
sword handshake_mask;
|
||||
int16_t carrier_mask;
|
||||
int16_t handshake_mask;
|
||||
|
||||
/* Log-on information */
|
||||
|
||||
@ -250,7 +250,7 @@ struct m_pointers {
|
||||
word speed_rip; /* min baud for rip graphics */
|
||||
byte rsvd1[2]; /* used to be high_msgarea, begin_msgarea */
|
||||
word unlisted_priv; /* Priv needed to send to unlisted node */
|
||||
sword unlisted_cost; /* Charge to send to unlisted node */
|
||||
int16_t unlisted_cost; /* Charge to send to unlisted node */
|
||||
|
||||
word mc_reply_priv; /* Priv to reply to msg with mailchecker */
|
||||
word mc_kill_priv; /* Priv to kill msg with mailchecker */
|
||||
@ -258,7 +258,7 @@ struct m_pointers {
|
||||
|
||||
/* Information about file areas */
|
||||
|
||||
sword date_style; /* Used for FILES.BBS display */
|
||||
int16_t date_style; /* Used for FILES.BBS display */
|
||||
word rsvd20; /* Reserved (used to be dlall_priv) */
|
||||
word rsvd21; /* Reserved (used to be ulbbs_priv) */
|
||||
dword k_free; /* The number of disk space (in K) which *
|
||||
@ -280,7 +280,7 @@ struct m_pointers {
|
||||
|
||||
/* Flags for external protocols */
|
||||
|
||||
sword protoexit; /* Errorlevel for protocol exit */
|
||||
int16_t protoexit; /* Errorlevel for protocol exit */
|
||||
char protoflag[MAX_EXTERNP];
|
||||
|
||||
/* General-purpose bit-flags (See FLAGx_xxx definitions above.) */
|
||||
|
@ -37,12 +37,12 @@
|
||||
// ------------------------------------------------------------------
|
||||
// Pascal types
|
||||
|
||||
typedef unsigned char Boolean;
|
||||
typedef char Char;
|
||||
typedef unsigned char Byte;
|
||||
typedef short Integer;
|
||||
typedef unsigned short Word;
|
||||
typedef long LongInt;
|
||||
typedef uint8_t Byte;
|
||||
typedef uint8_t Boolean;
|
||||
typedef int16_t Integer;
|
||||
typedef uint16_t Word;
|
||||
typedef int32_t LongInt;
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@ -340,10 +340,12 @@ typedef struct {
|
||||
|
||||
// Some Pascal types
|
||||
typedef char Char;
|
||||
typedef unsigned char Byte;
|
||||
typedef unsigned short Word;
|
||||
typedef signed short Integer;
|
||||
typedef signed long LongInt;
|
||||
typedef uint8_t Byte;
|
||||
typedef uint8_t Boolean;
|
||||
typedef int16_t Integer;
|
||||
typedef uint16_t Word;
|
||||
typedef int32_t LongInt;
|
||||
|
||||
typedef Byte FlagType[4];
|
||||
typedef Char Time[6];
|
||||
typedef Char Date[9];
|
||||
|
@ -43,12 +43,12 @@
|
||||
//
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
typedef unsigned char Boolean;
|
||||
typedef char Char;
|
||||
typedef unsigned char Byte;
|
||||
typedef unsigned short Word;
|
||||
typedef signed short Integer;
|
||||
typedef signed long LongInt;
|
||||
typedef uint8_t Byte;
|
||||
typedef uint8_t Boolean;
|
||||
typedef int16_t Integer;
|
||||
typedef uint16_t Word;
|
||||
typedef int32_t LongInt;
|
||||
|
||||
typedef Byte FlagType[4];
|
||||
typedef Char ra_Time[6];
|
||||
|
@ -33,12 +33,9 @@
|
||||
#include <os2.h>
|
||||
#else
|
||||
typedef char CHAR;
|
||||
typedef unsigned char UCHAR;
|
||||
typedef short SHORT;
|
||||
typedef unsigned short USHORT;
|
||||
typedef long LONG;
|
||||
typedef unsigned long ULONG;
|
||||
//typedef unsigned char *PSZ;
|
||||
typedef uint8_t UCHAR;
|
||||
typedef int16_t SHORT;
|
||||
typedef uint16_t USHORT;
|
||||
#endif
|
||||
|
||||
|
||||
@ -316,7 +313,7 @@ struct _msgarea
|
||||
PADDR addr;
|
||||
PADDR feeds;
|
||||
unsigned int number;
|
||||
LONG TimeFactor;
|
||||
int32_t TimeFactor;
|
||||
char *password;
|
||||
struct _msgarea *next;
|
||||
struct _msgarea *prior;
|
||||
@ -375,7 +372,7 @@ struct _filearea
|
||||
char *dpath;
|
||||
char *password;
|
||||
char *ftpname;
|
||||
LONG TimeFactor;
|
||||
int32_t TimeFactor;
|
||||
struct _filearea *next;
|
||||
struct _filearea *prior;
|
||||
};
|
||||
@ -445,21 +442,21 @@ typedef struct _GROUP
|
||||
{
|
||||
PSZ Name;
|
||||
PSZ Password;
|
||||
LONG Number;
|
||||
ULONG Flags;
|
||||
ULONG MinutesPerDay;
|
||||
ULONG MinutesPerCall;
|
||||
ULONG DaysBeforeExpiration;
|
||||
LONG ExpireToGroup;
|
||||
ULONG MaxBankTime;
|
||||
ULONG MaxUKPerDay;
|
||||
ULONG MaxDKPerDay;
|
||||
ULONG ULDLRatio;
|
||||
ULONG RatioCredit;
|
||||
ULONG Security1;
|
||||
ULONG Security2;
|
||||
ULONG Flags1;
|
||||
ULONG Flags2;
|
||||
int32_t Number;
|
||||
uint32_t Flags;
|
||||
uint32_t MinutesPerDay;
|
||||
uint32_t MinutesPerCall;
|
||||
uint32_t DaysBeforeExpiration;
|
||||
int32_t ExpireToGroup;
|
||||
uint32_t MaxBankTime;
|
||||
uint32_t MaxUKPerDay;
|
||||
uint32_t MaxDKPerDay;
|
||||
uint32_t ULDLRatio;
|
||||
uint32_t RatioCredit;
|
||||
uint32_t Security1;
|
||||
uint32_t Security2;
|
||||
uint32_t Flags1;
|
||||
uint32_t Flags2;
|
||||
int CreditsPerUnit;
|
||||
int CreditsPerUnitPeek;
|
||||
int FreeCreditsDay;
|
||||
@ -467,7 +464,7 @@ typedef struct _GROUP
|
||||
int FreeCreditsMonth;
|
||||
int FreeCreditsPercentage;
|
||||
int MaxDebt;
|
||||
LONG GroupIfBroke;
|
||||
int32_t GroupIfBroke;
|
||||
USHORT DaysBetweenPWChange;
|
||||
PSZ MainMenu;
|
||||
PSZ MainMenuUnVerified;
|
||||
@ -503,7 +500,7 @@ typedef struct _user_info
|
||||
CHAR SysOpComment[78];
|
||||
USHORT BankTime;
|
||||
USHORT computer_type;
|
||||
ULONG userid;
|
||||
uint32_t userid;
|
||||
USHORT pointid;
|
||||
time32_t initial_logon;
|
||||
time32_t expires;
|
||||
@ -513,47 +510,47 @@ typedef struct _user_info
|
||||
UCHAR birthmonth;
|
||||
UCHAR birthday;
|
||||
UCHAR Gender;
|
||||
LONG credit;
|
||||
LONG minlimit; // what exactly is this?
|
||||
LONG Group; // must match Group->Number
|
||||
ULONG CurrLastRead; // last Read for current msg area
|
||||
ULONG time_today; // seconds used today
|
||||
ULONG time_per_day; // minutes allowed per day
|
||||
ULONG time_per_call; // minutes per call 0=just per day
|
||||
ULONG numcalls;
|
||||
ULONG ulnum; // files uploaded (ever)
|
||||
ULONG dlnum; // files downloaded (ever)
|
||||
ULONG ulk; // UL in K (ever)
|
||||
ULONG dlk; // DL in K (ever)
|
||||
ULONG uktoday; // UL in K Today
|
||||
ULONG dktoday; // DL in K Today
|
||||
ULONG ukperday; // Max UL K Per day
|
||||
ULONG dkperday; // Max DL K Per day
|
||||
ULONG numposts;
|
||||
ULONG security1;
|
||||
ULONG security2;
|
||||
ULONG flags1;
|
||||
ULONG flags2;
|
||||
ULONG attribs;
|
||||
ULONG attribs2;
|
||||
int32_t credit;
|
||||
int32_t minlimit; // what exactly is this?
|
||||
int32_t Group; // must match Group->Number
|
||||
uint32_t CurrLastRead; // last Read for current msg area
|
||||
uint32_t time_today; // seconds used today
|
||||
uint32_t time_per_day; // minutes allowed per day
|
||||
uint32_t time_per_call; // minutes per call 0=just per day
|
||||
uint32_t numcalls;
|
||||
uint32_t ulnum; // files uploaded (ever)
|
||||
uint32_t dlnum; // files downloaded (ever)
|
||||
uint32_t ulk; // UL in K (ever)
|
||||
uint32_t dlk; // DL in K (ever)
|
||||
uint32_t uktoday; // UL in K Today
|
||||
uint32_t dktoday; // DL in K Today
|
||||
uint32_t ukperday; // Max UL K Per day
|
||||
uint32_t dkperday; // Max DL K Per day
|
||||
uint32_t numposts;
|
||||
uint32_t security1;
|
||||
uint32_t security2;
|
||||
uint32_t flags1;
|
||||
uint32_t flags2;
|
||||
uint32_t attribs;
|
||||
uint32_t attribs2;
|
||||
USHORT length;
|
||||
USHORT width;
|
||||
USHORT lastmsgarea;
|
||||
USHORT lastfilearea;
|
||||
UCHAR lastprotocol;
|
||||
UCHAR lastarchiver;
|
||||
LONG forsysop;
|
||||
int32_t forsysop;
|
||||
UCHAR interface;
|
||||
UCHAR exp;
|
||||
USHORT leech_percent;
|
||||
USHORT MaxBankTime;
|
||||
SHORT TimeCredit; // can be negative or positive
|
||||
SHORT CallsToday;
|
||||
LONG TotalMinsEver;
|
||||
LONG NetmailDebits;
|
||||
int32_t TotalMinsEver;
|
||||
int32_t NetmailDebits;
|
||||
time32_t LastPWChange;
|
||||
time32_t LastListedNewFiles; //JM940822
|
||||
ULONG FileKCredit;
|
||||
uint32_t FileKCredit;
|
||||
CHAR UnixId[8];
|
||||
CHAR Country[24];
|
||||
USHORT weight;
|
||||
@ -567,8 +564,8 @@ typedef struct _user_info
|
||||
CHAR POPServer[128];
|
||||
CHAR NoLongerUsed[22];
|
||||
UCHAR _UnUsedOldTags[256];
|
||||
ULONG PasswordCRC;
|
||||
ULONG PasswordCRC2;
|
||||
uint32_t PasswordCRC;
|
||||
uint32_t PasswordCRC2;
|
||||
USHORT Max_Mail_Pkt;
|
||||
CHAR ReAsked; // TRUE if reasked question were answered
|
||||
USHORT timeout;
|
||||
@ -589,14 +586,14 @@ typedef struct _xmsg
|
||||
CHAR subj[70];
|
||||
CHAR date[35]; /* */
|
||||
CHAR indate[4]; /* import date (YMD(null)) */
|
||||
ULONG msgnum;
|
||||
ULONG timesread;
|
||||
uint32_t msgnum;
|
||||
uint32_t timesread;
|
||||
time32_t timerecv;
|
||||
ULONG length; /* Length of message */
|
||||
LONG start; /* Starting postition in text file */
|
||||
ULONG OrigMsg;
|
||||
ULONG miscdatlen;
|
||||
ULONG miscdatstart;
|
||||
uint32_t length; /* Length of message */
|
||||
int32_t start; /* Starting postition in text file */
|
||||
uint32_t OrigMsg;
|
||||
uint32_t miscdatlen;
|
||||
uint32_t miscdatstart;
|
||||
USHORT o_zone;
|
||||
USHORT o_net;
|
||||
USHORT o_node;
|
||||
@ -608,8 +605,8 @@ typedef struct _xmsg
|
||||
USHORT cost; /* Unit cost charged to send the message */
|
||||
USHORT fflags; /* Attribute (behavior) of the message */
|
||||
USHORT xflags; /* Extra attributes */
|
||||
ULONG bflags;
|
||||
ULONG cflags;
|
||||
uint32_t bflags;
|
||||
uint32_t cflags;
|
||||
} XMSG, *PXMSG;
|
||||
#endif
|
||||
|
||||
|
@ -36,9 +36,7 @@ typedef uint8_t bit;
|
||||
typedef int8_t sbyte;
|
||||
typedef uint8_t byte;
|
||||
|
||||
typedef int16_t sword;
|
||||
typedef uint16_t word;
|
||||
typedef int16_t sshort;
|
||||
typedef uint16_t ushort;
|
||||
|
||||
typedef uint32_t dword;
|
||||
|
@ -68,7 +68,6 @@ typedef unsigned int uint32_t;
|
||||
#include <stdint.h>
|
||||
#endif //#ifdef _MSC_VER
|
||||
|
||||
typedef signed int sint;
|
||||
typedef unsigned int uint;
|
||||
|
||||
typedef uint8_t bit;
|
||||
@ -76,9 +75,7 @@ typedef uint8_t bit;
|
||||
typedef int8_t sbyte;
|
||||
typedef uint8_t byte;
|
||||
|
||||
typedef int16_t sword;
|
||||
typedef uint16_t word;
|
||||
typedef int16_t sshort;
|
||||
typedef uint16_t ushort;
|
||||
|
||||
typedef uint32_t dword;
|
||||
|
Reference in New Issue
Block a user