Skip to content

Commit

Permalink
indent: remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
holishing committed Nov 26, 2018
1 parent 64cfc3a commit 2590be4
Show file tree
Hide file tree
Showing 99 changed files with 1,843 additions and 1,843 deletions.
48 changes: 24 additions & 24 deletions include/attr.h
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
/*-------------------------------------------------------*/
/* attr.h ( NTHU CS MapleBBS Ver 3.10 ) */
/*-------------------------------------------------------*/
/* target : dynamic attribute database */
/* create : 99/03/11 */
/* update : / / */
/*-------------------------------------------------------*/
#ifndef _ATTR_H_
#define _ATTR_H_
/*-------------------------------------------------------*/
/* attr.h ( NTHU CS MapleBBS Ver 3.10 ) */
/*-------------------------------------------------------*/
/* target : dynamic attribute database */
/* create : 99/03/11 */
/* update : / / */
/*-------------------------------------------------------*/

#ifndef _ATTR_H_
#define _ATTR_H_

#if 0
int key;
key < 0 is reserved.
key & 0xff == 0 is reserved.
sizeof(attr): key & 0xff
file: $userhome/.ATTR
int key;
key < 0 is reserved.
key & 0xff == 0 is reserved.
sizeof(attr): key & 0xff

file: $userhome/.ATTR
#endif

#define ATTR_OTHELLO_TOTAL 0x00001004
#define ATTR_FIVE_TOTAL 0x00001104
#define ATTR_BLOCK_TOTAL 0x00001204
#define ATTR_OTHELLO_WIN 0x00001404
#define ATTR_FIVE_WIN 0x00001504
#define ATTR_BLOCK_WIN 0x00001604
#define ATTR_OTHELLO_TOTAL 0x00001004
#define ATTR_FIVE_TOTAL 0x00001104
#define ATTR_BLOCK_TOTAL 0x00001204
#define ATTR_OTHELLO_WIN 0x00001404
#define ATTR_FIVE_WIN 0x00001504
#define ATTR_BLOCK_WIN 0x00001604

/*-------------------------------------------------------*/
/* USER for WindTop */
Expand All @@ -36,7 +36,7 @@
#define REG_REQUEST 0x00000001
#define REG_OPEN 0x00000002
#define REG_FAULT 0x00000004
#define REG_SENT 0x00000008
#define REG_SENT 0x00000008
#define REG_OK 0x00000010

#endif
10 changes: 5 additions & 5 deletions include/battr.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

#define NUMATTRS 30

char *battrs[NUMATTRS] =
char *battrs[NUMATTRS] =
{
"不可 Zap",
"不轉信",
Expand Down Expand Up @@ -99,12 +99,12 @@ char *battrs[NUMATTRS] =
"不可同ID連推",
"不可快速連推",
"可以推噓文",
"可以自訂推文動詞",
"可以自訂推文動詞",
#else
"不可同ID連推(系統功\能未開啟)",
"不可快速連推(系統功\能未開啟)",
"可以推噓文(系統功\能未開啟)",
"可以自訂推文動詞(系統功\能未開啟)",
"可以自訂推文動詞(系統功\能未開啟)",
#endif
#ifdef HAVE_COUNT_BOARD
"不紀錄看板資訊統計",
Expand All @@ -119,11 +119,11 @@ char *battrs[NUMATTRS] =
#endif
"優良點數看板",
"未使用",
#ifdef ANTI_PHONETIC
#ifdef ANTI_PHONETIC
"禁止注音文",
#else
"禁止注音文(系統功\能未開啟)",
#endif
#endif
"發文限制看板",
"板主可自訂發文類別",
"RSS看板"
Expand Down
4 changes: 2 additions & 2 deletions include/bbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#include "proto.h" /* prototype of functions */
#include "skin.h" /* skin definition */
#include "attr.h" /* Thor.990311: dynamic attribute database */
#include "popup.h" /* popup menu define */
#include "popup.h" /* popup menu define */
#include "battr.h" /* board attribution */
#include "theme.h" /* custom theme */

#ifdef __linux__
#ifdef __linux__
#include <time.h>
#else
#include <sys/time.h>
Expand Down
26 changes: 13 additions & 13 deletions include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

#undef AUTO_FIX_INFO /* 開啟使用者列表同時檢查上站/板友資訊 (除非有問題否則請勿開啟) */

#define loginAD /* 進站觀看廣告 */
#define loginAD /* 進站觀看廣告 */
#define NOIDENT /* 進站不反查,加快連線速度 */
#define ANTI_PHONETIC /* 開啟檢查注音文功能 */

Expand All @@ -102,7 +102,7 @@
#ifndef MAXACTIVE
#define MAXACTIVE (4096) /* 最多同時上站人數 (ex.1400)*/
/* 若要超過 1024 請修改 kernel */
/* options SHMMAXPGS=? */
/* options SHMMAXPGS=? */
#endif

#define MAXFIREWALL (300) /* 全域擋信列表上限 */
Expand Down Expand Up @@ -193,7 +193,7 @@

#define HAVE_DETECT_VIOLATELAW /* 違法紀錄 */

#define HAVE_RESIST_WATER /* 防灌水功能 */
#define HAVE_RESIST_WATER /* 防灌水功能 */

#define HAVE_CLASSTABLE /* 個人功課表 */

Expand All @@ -205,7 +205,7 @@

#define HAVE_SEM /* 使用 Semaphores */

#define HAVE_DOWNLOAD /* 打包回家 */
#define HAVE_DOWNLOAD /* 打包回家 */

#define HAVE_MULTI_CROSSPOST /* 群組轉貼 */

Expand Down Expand Up @@ -249,7 +249,7 @@
#ifdef HAVE_WATER_LIST
#define HAVE_SYSOP_WATERLIST /* SYSOP 水桶名單 */
#endif
#endif
#endif

#undef HAVE_GAME_QKMJ /* 提供 QKMJ 遊戲 */

Expand Down Expand Up @@ -455,7 +455,7 @@
#ifdef HAVE_RESIST_WATER
#define CHECK_QUOT (3) /* 文章灌水最小行數 */

#define CHECK_QUOT_MAX (3) /* 文章灌水連續篇數 */
#define CHECK_QUOT_MAX (3) /* 文章灌水連續篇數 */
#endif

#define BANMAIL_EXPIRE (30) /* 擋信列表更新 (天) */
Expand Down Expand Up @@ -512,34 +512,34 @@
/* ----------------------------------------------------- */

#ifndef BRDSHM_KEY
#define BRDSHM_KEY (2997)
#define BRDSHM_KEY (2997)
#endif

#ifndef UTMPSHM_KEY
#define UTMPSHM_KEY (1998)
#define UTMPSHM_KEY (1998)
#endif

#ifndef FILMSHM_KEY
#define FILMSHM_KEY (2999)
#define FILMSHM_KEY (2999)
#endif

#ifndef FWSHM_KEY
#define FWSHM_KEY (3999)
#define FWSHM_KEY (3999)
#endif

#ifndef FWOSHM_KEY
#define FWOSHM_KEY (5000)
#define FWOSHM_KEY (5000)
#endif

#ifndef COUNT_KEY
#define COUNT_KEY (4000)
#define COUNT_KEY (4000)
#endif


#ifdef HAVE_OBSERVE_LIST /* 系統觀察名單 */

#ifndef OBSERVE_KEY
#define OBSERVE_KEY (6000)
#define OBSERVE_KEY (6000)
#endif

#endif
Expand Down
10 changes: 5 additions & 5 deletions include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
#define FN_MAIL_LOG "run/mail.log" /* 所有 [信件] 記錄 */
#define FN_BBSMAILPOST_LOG "run/bbsmailpost.log"
/* bbsmail mailpost 紀錄 */
#define FN_MAILSERVICE_LOG "run/mailservice.log"
#define FN_MAILSERVICE_LOG "run/mailservice.log"

#ifdef HAVE_RECOMMEND
#define FN_RECOMMEND_LOG "run/recommend.log" /* 推薦文章 */
Expand Down Expand Up @@ -192,7 +192,7 @@
#define FN_SPAMPATH_LOG "run/spampath.log" /* junk 板 spam 分析 path */
#define FN_CLASSTABLE_DB "run/class_alert.db" /* 課表時刻通知 */
#define FN_SAMEEMAIL_LOG "tmp/sameemail.log"
#define FN_EMAILADDR_LOG "run/emailaddr.log" /* 超過認證信箱上限 */
#define FN_EMAILADDR_LOG "run/emailaddr.log" /* 超過認證信箱上限 */
/* 註冊信箱使用次數統計 */

#ifdef LOG_TALK
Expand All @@ -209,7 +209,7 @@
#define FN_SECURITY "run/secure.log" /* lkchu.981201: 系統安全記錄 */
#endif
#define FN_VERIFY_LOG "run/verify.log" /* 認證記錄 */
#define FN_CRIMINAL_LOG "run/criminal.log" /* 停權名單 */
#define FN_CRIMINAL_LOG "run/criminal.log" /* 停權名單 */
#define FN_UEEQUERY_LOG "run/ueequery.log" /* 聯考查榜紀錄 */
#define FN_RFORM_R "run/rform_r.db" /* 註冊單申請資料庫 */

Expand All @@ -220,7 +220,7 @@

/* ----------------------------------------------------- */
/* 其他的檔名設定 */
/* ----------------------------------------------------- */
/* ----------------------------------------------------- */
#define FN_ERROR_CAMERA "gem/@/@error-camera" /* 錯誤的動態看版 */
#define FN_HOTBOARD "gem/@/@HotBoard" /* 熱門看板 */

Expand Down Expand Up @@ -296,7 +296,7 @@
/* ----------------------------------------------------- */
/* 參數設定 */
/* ----------------------------------------------------- */

#define GRAYOUT_DARK 0
#define GRAYOUT_BOLD 1
#define GRAYOUT_NORMAL 2
Expand Down
2 changes: 1 addition & 1 deletion include/perm.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@


/* This is the default permission granted to all new accounts. */
#define PERM_DEFAULT (PERM_BASIC)
#define PERM_DEFAULT (PERM_BASIC)

#define PERM_ADMIN (PERM_BOARD | PERM_ACCOUNTS | PERM_SYSOP | PERM_CHATROOM | PERM_KTV)
#define PERM_ALLBOARD (PERM_SYSOP | PERM_BOARD)
Expand Down
Loading

0 comments on commit 2590be4

Please sign in to comment.