summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 09:08:43 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 09:08:43 +0800
commitca9e454af4d8cc270abd65cf4d34a74b640ac041 (patch)
tree625409f2c2a440c493c2cabe43b28e8b403eee4b /include/common.h
parentb4251a2af36811ae386837cda23bb6325ad65c1c (diff)
downloadpttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar.gz
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar.bz2
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar.lz
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar.xz
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.tar.zst
pttbbs-ca9e454af4d8cc270abd65cf4d34a74b640ac041.zip
Merged trunk to current branch in ./include
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1973 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index bbec1585..b3ccfbed 100644
--- a/include/common.h
+++ b/include/common.h
@@ -189,6 +189,19 @@
#define NOTREPLYING -1
#define REPLYING 0
#define RECVINREPLYING 1
+
+#define LOG_CREAT 1
+#define LOG_VF 2
+
+
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
+ #define __builtin_expect(exp,c) (exp)
+
#endif
#define I18N SHM->i18nstr[cuser.language]
+
+#define likely(x) __builtin_expect(!!(x), 1)
+#define unlikely(x) __builtin_expect(!!(x), 0)
+
+#endif