summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-16 13:39:17 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-16 13:39:17 +0800
commit46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d (patch)
tree70bede25e9ceab2711f456b941b1cad345194dd7 /include/common.h
parent95bd148f89a965c00b11771ccdf1d7090f4f308a (diff)
downloadpttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.gz
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.bz2
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.lz
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.xz
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.tar.zst
pttbbs-46d670eedce001eb79f4ce5cc8f6ffaf2ad83b5d.zip
include/common.h, mbbsd/friend.c: check buffer size
include/fpg.h: highlight the bug mbbsd/talk.c: change that odd time_t worked as a boolean to int git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3046 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index acbf688d..cc5e6980 100644
--- a/include/common.h
+++ b/include/common.h
@@ -220,6 +220,9 @@
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
+#define toSTR(x) __toSTR(x)
+#define __toSTR(x) #x
+
#define char_lower(c) ((c >= 'A' && c <= 'Z') ? c|32 : c)
#define STR_CURSOR "กด"