summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-06 01:10:28 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-06 01:10:28 +0800
commit1603deaec5d0a94c9a8201b0ba286e8e492a3602 (patch)
treee6405cfd39f8ac166ab7d00752ed6cfa3ac0a928 /include
parent10bda3e57cad194ac33ccdcd01aee2d935f1544a (diff)
downloadpttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar.gz
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar.bz2
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar.lz
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar.xz
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.tar.zst
pttbbs-1603deaec5d0a94c9a8201b0ba286e8e492a3602.zip
indent
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@415 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/pttstruct.h322
1 files changed, 161 insertions, 161 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index f7690f43..a6e71118 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -1,33 +1,33 @@
-/* $Id: pttstruct.h,v 1.23 2002/07/04 20:08:09 in2 Exp $ */
+/* $Id: pttstruct.h,v 1.24 2002/07/05 17:10:23 in2 Exp $ */
#ifndef INCLUDE_STRUCT_H
#define INCLUDE_STRUCT_H
/* �p������� */
typedef struct chicken_t {
- char name[20];
- char type; /* ���� */
- unsigned char tech[16]; /* �ޯ� */
- time_t birthday; /* �ͤ� */
- time_t lastvisit; /* �W�����U�ɶ� */
- int oo; /* �ɫ~ */
- int food; /* ���� */
- int medicine; /* �ī~ */
- int weight; /* �魫 */
- int clean; /* ���b */
- int run; /* �ӱ��� */
- int attack; /* �����O */
- int book; /* ���� */
- int happy; /* �ּ� */
- int satis; /* ���N�� */
- int temperament; /* ��� */
- int tiredstrong; /* �h�ҫ� */
- int sick; /* �f����� */
- int hp; /* ��q */
- int hp_max; /* ����q */
- int mm; /* �k�O */
- int mm_max; /* ���k�O */
- time_t cbirth; /* ��ڭp��Ϊ��ͤ� */
- int pad[2]; /* �d�ۥH��� */
+ char name[20];
+ char type; /* ���� */
+ unsigned char tech[16]; /* �ޯ� */
+ time_t birthday; /* �ͤ� */
+ time_t lastvisit; /* �W�����U�ɶ� */
+ int oo; /* �ɫ~ */
+ int food; /* ���� */
+ int medicine; /* �ī~ */
+ int weight; /* �魫 */
+ int clean; /* ���b */
+ int run; /* �ӱ��� */
+ int attack; /* �����O */
+ int book; /* ���� */
+ int happy; /* �ּ� */
+ int satis; /* ���N�� */
+ int temperament; /* ��� */
+ int tiredstrong; /* �h�ҫ� */
+ int sick; /* �f����� */
+ int hp; /* ��q */
+ int hp_max; /* ����q */
+ int mm; /* �k�O */
+ int mm_max; /* ���k�O */
+ time_t cbirth; /* ��ڭp��Ϊ��ͤ� */
+ int pad[2]; /* �d�ۥH��� */
} chicken_t;
#define IDLEN 12 /* Length of bid/uid */
@@ -35,48 +35,48 @@ typedef struct chicken_t {
#define REGLEN 38 /* Length of registration data */
typedef struct userec_t {
- char userid[IDLEN + 1];
- char realname[20];
- char username[24];
- char passwd[PASSLEN];
- unsigned char uflag;
- unsigned int userlevel;
- unsigned short numlogins;
- unsigned short numposts;
- time_t firstlogin;
- time_t lastlogin;
- char lasthost[16];
- int money;
- char remoteuser[3]; /* �O�d �ثe�S�Ψ쪺 */
- char proverb;
- char email[50];
- char address[50];
- char justify[REGLEN + 1];
- unsigned char month;
- unsigned char day;
- unsigned char year;
- unsigned char sex;
- unsigned char state;
- unsigned char pager;
- unsigned char invisible;
- unsigned int exmailbox;
- chicken_t mychicken;
- time_t lastsong;
- unsigned int loginview;
- unsigned char channel; /* �ʺA�ݪO */
- unsigned short vl_count; /* ViolateLaw counter */
- unsigned short five_win;
- unsigned short five_lose;
- unsigned short five_tie;
- unsigned short chc_win;
- unsigned short chc_lose;
- unsigned short chc_tie;
- int mobile;
- char mind[4];
- char ident[11];
- unsigned int uflag2;
- time_t recommend;
- char pad[68];
+ char userid[IDLEN + 1];
+ char realname[20];
+ char username[24];
+ char passwd[PASSLEN];
+ unsigned char uflag;
+ unsigned int userlevel;
+ unsigned short numlogins;
+ unsigned short numposts;
+ time_t firstlogin;
+ time_t lastlogin;
+ char lasthost[16];
+ int money;
+ char remoteuser[3]; /* �O�d �ثe�S�Ψ쪺 */
+ char proverb;
+ char email[50];
+ char address[50];
+ char justify[REGLEN + 1];
+ unsigned char month;
+ unsigned char day;
+ unsigned char year;
+ unsigned char sex;
+ unsigned char state;
+ unsigned char pager;
+ unsigned char invisible;
+ unsigned int exmailbox;
+ chicken_t mychicken;
+ time_t lastsong;
+ unsigned int loginview;
+ unsigned char channel; /* �ʺA�ݪO */
+ unsigned short vl_count; /* ViolateLaw counter */
+ unsigned short five_win;
+ unsigned short five_lose;
+ unsigned short five_tie;
+ unsigned short chc_win;
+ unsigned short chc_lose;
+ unsigned short chc_tie;
+ int mobile;
+ char mind[4];
+ char ident[11];
+ unsigned int uflag2;
+ time_t recommend;
+ char pad[68];
} userec_t;
/* these are flags in userec_t.uflag */
#define SIG_FLAG 0x3 /* signature number, 2 bits */
@@ -139,13 +139,13 @@ typedef struct boardheader_t {
#define FHR_REFERENCE (1<<31)
typedef struct fileheader_t {
- char filename[FNLEN]; /* M.9876543210.A */
- char recommend; /* important level */
- char owner[IDLEN + 2]; /* uid[.] */
- char date[6]; /* [02/02] or space(5) */
- char title[TTLEN + 1];
- int money; /* rocker: if bit32 on ==> reference */
- unsigned char filemode; /* must be last field @ boards.c */
+ char filename[FNLEN]; /* M.9876543210.A */
+ char recommend; /* important level */
+ char owner[IDLEN + 2]; /* uid[.] */
+ char date[6]; /* [02/02] or space(5) */
+ char title[TTLEN + 1];
+ int money; /* rocker: if bit32 on ==> reference */
+ unsigned char filemode; /* must be last field @ boards.c */
} fileheader_t;
#define FILE_LOCAL 0x1 /* local saved */
@@ -168,27 +168,27 @@ typedef struct fileheader_t {
union xitem_t {
struct { /* bbs_item */
- char fdate[9]; /* [mm/dd/yy] */
- char editor[13]; /* user ID */
- char fname[31];
+ char fdate[9]; /* [mm/dd/yy] */
+ char editor[13]; /* user ID */
+ char fname[31];
} B;
struct { /* gopher_item */
- char path[81];
- char server[48];
- int port;
+ char path[81];
+ char server[48];
+ int port;
} G;
};
typedef struct {
- char title[63];
- union xitem_t X;
+ char title[63];
+ union xitem_t X;
} item_t;
typedef struct {
- item_t *item[MAX_ITEMS];
- char mtitle[STRLEN];
- char *path;
- int num, page, now, level;
+ item_t *item[MAX_ITEMS];
+ char mtitle[STRLEN];
+ char *path;
+ int num, page, now, level;
} gmenu_t;
#define FAVMAX 74 /* Max boards of Myfavorite */
@@ -196,56 +196,56 @@ typedef struct {
#define FAVGSLEN 8 /* Max Length of Description String */
typedef struct msgque_t {
- pid_t pid;
- char userid[IDLEN + 1];
- char last_call_in[80];
+ pid_t pid;
+ char userid[IDLEN + 1];
+ char last_call_in[80];
} msgque_t;
typedef struct userinfo_t {
- int uid; /* Used to find user name in passwd file */
- pid_t pid; /* kill() to notify user of talk request */
- int sockaddr; /* ... */
- int destuid; /* talk uses this to identify who called */
- int destuip; /* dest index in utmpshm->uinfo[] */
- unsigned char active; /* When allocated this field is true */
- unsigned char invisible; /* Used by cloaking function in Xyz menu */
- unsigned char sockactive; /* Used to coordinate talk requests */
- unsigned int userlevel;
- unsigned char mode; /* UL/DL, Talk Mode, Chat Mode, ... */
- unsigned char pager; /* pager toggle, YEA, or NA */
- unsigned char in_chat; /* for in_chat commands */
- unsigned char sig; /* signal type */
- char userid[IDLEN + 1];
- char chatid[11]; /* chat id, if in chat mode */
- char realname[20];
- char username[24];
- char from[27]; /* machine name the user called in from */
- int from_alias;
- char birth; /* �O�_�O�ͤ� Ptt*/
- char tty[11]; /* tty port */
- int friend[MAX_FRIEND];
- int friend_online[MAX_FRIEND];/* point��u�W�n�� utmpshm����m */
+ int uid; /* Used to find user name in passwd file */
+ pid_t pid; /* kill() to notify user of talk request */
+ int sockaddr; /* ... */
+ int destuid; /* talk uses this to identify who called */
+ int destuip; /* dest index in utmpshm->uinfo[] */
+ unsigned char active; /* When allocated this field is true */
+ unsigned char invisible; /* Used by cloaking function in Xyz menu */
+ unsigned char sockactive; /* Used to coordinate talk requests */
+ unsigned int userlevel;
+ unsigned char mode; /* UL/DL, Talk Mode, Chat Mode, ... */
+ unsigned char pager; /* pager toggle, YEA, or NA */
+ unsigned char in_chat; /* for in_chat commands */
+ unsigned char sig; /* signal type */
+ char userid[IDLEN + 1];
+ char chatid[11]; /* chat id, if in chat mode */
+ char realname[20];
+ char username[24];
+ char from[27]; /* machine name the user called in from */
+ int from_alias;
+ char birth; /* �O�_�O�ͤ� Ptt*/
+ char tty[11]; /* tty port */
+ int friend[MAX_FRIEND];
+ int friend_online[MAX_FRIEND];/* point��u�W�n�� utmpshm����m */
/* �n�ͤ����cache �e���bit�O���A */
- int reject[MAX_REJECT];
- char pad[4]; /* original void *nextbfriend; */
- int idoffset; /* shm id�W�� offset */
- int lock;
- int friendtotal; /* �n�ͤ����cache �j�p */
- unsigned char msgcount;
- msgque_t msgs[MAX_MSGS];
- time_t uptime;
- time_t lastact; /* �W���ϥΪ̰ʪ��ɶ� */
- unsigned int brc_id;
- unsigned char lockmode; /* ���� multi_login �����F�� */
- char turn; /* for gomo */
- char mateid[IDLEN + 1]; /* for gomo */
- unsigned short int five_win;
- unsigned short int five_lose;
- unsigned short int five_tie;
- int mailalert;
- int sex;
- char color;
- char mind[4];
+ int reject[MAX_REJECT];
+ char pad[4]; /* original void *nextbfriend; */
+ int idoffset; /* shm id�W�� offset */
+ int lock;
+ int friendtotal; /* �n�ͤ����cache �j�p */
+ unsigned char msgcount;
+ msgque_t msgs[MAX_MSGS];
+ time_t uptime;
+ time_t lastact; /* �W���ϥΪ̰ʪ��ɶ� */
+ unsigned int brc_id;
+ unsigned char lockmode; /* ���� multi_login �����F�� */
+ char turn; /* for gomo */
+ char mateid[IDLEN + 1]; /* for gomo */
+ unsigned short int five_win;
+ unsigned short int five_lose;
+ unsigned short int five_tie;
+ int mailalert;
+ int sex;
+ char color;
+ char mind[4];
#ifdef MULTI_SERVER
char hostid;
#endif
@@ -255,28 +255,28 @@ typedef struct water_t {
pid_t pid;
char userid[IDLEN + 1];
int top, count;
- msgque_t msg[MAX_REVIEW];
- userinfo_t *uin; // Ptt:�o�i�H���Nalive
+ msgque_t msg[MAX_REVIEW];
+ userinfo_t *uin; // Ptt:�o�i�H���Nalive
} water_t;
typedef struct {
- fileheader_t *header;
- char mtitle[STRLEN];
- char *path;
- int num, page, now, level;
+ fileheader_t *header;
+ char mtitle[STRLEN];
+ char *path;
+ int num, page, now, level;
} menu_t;
typedef struct onekey_t { /* Used to pass commands to the readmenu */
- int key;
- int (*fptr)();
+ int key;
+ int (*fptr)();
} onekey_t;
#define ANSILINELEN (511) /* Maximum Screen width in chars */
/* anti_crosspost */
typedef struct crosspost_t {
- int checksum[4]; /* 0 -> 'X' cross post 1-3 -> ²�d�峹�� */
- int times; /* �ĴX�� */
+ int checksum[4]; /* 0 -> 'X' cross post 1-3 -> ²�d�峹�� */
+ int times; /* �ĴX�� */
} crosspost_t;
#define SORT_BY_ID 0
@@ -288,10 +288,10 @@ typedef struct crosspost_t {
#define SORT_BY_SEX 5
typedef struct keeploc_t {
- char *key;
- int top_ln;
- int crs_ln;
- struct keeploc_t *next;
+ char *key;
+ int top_ln;
+ int crs_ln;
+ struct keeploc_t *next;
} keeploc_t;
#define USHM_SIZE (MAX_ACTIVE + 4) /* why+4? */
@@ -379,33 +379,33 @@ typedef int board_t[BRD_ROW][BRD_COL];
/* name.c ���B�Ϊ���Ƶ��c */
typedef struct word_t {
- char *word;
- struct word_t *next;
+ char *word;
+ struct word_t *next;
} word_t;
typedef struct commands_t {
- int (*cmdfunc)();
- int level;
- char *desc; /* next/key/description */
+ int (*cmdfunc)();
+ int level;
+ char *desc; /* next/key/description */
} commands_t;
typedef struct MailQueue {
- char filepath[FNLEN];
- char subject[STRLEN];
- time_t mailtime;
- char sender[IDLEN + 1];
- char username[24];
- char rcpt[50];
- int method;
- char * niamod;
+ char filepath[FNLEN];
+ char subject[STRLEN];
+ time_t mailtime;
+ char sender[IDLEN + 1];
+ char username[24];
+ char rcpt[50];
+ int method;
+ char *niamod;
} MailQueue;
enum {MQ_TEXT, MQ_UUENCODE, MQ_JUSTIFY};
typedef struct
{
- time_t chrono;
- int recno;
+ time_t chrono;
+ int recno;
} TagItem;
#endif