• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂6 (tree)
時間2009-12-31 20:08:05
作者ornse01

Log Message

fix debug macro argument and build config.

Change Summary

差異

--- bchanl/trunk/src/retriever.c (revision 5)
+++ bchanl/trunk/src/retriever.c (revision 6)
@@ -37,7 +37,7 @@
3737
3838 #ifdef BCHANL_CONFIG_DEBUG
3939 # define DP(arg) printf arg
40-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
40+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4141 #else
4242 # define DP(arg) /**/
4343 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/bbsmenuparser.c (revision 5)
+++ bchanl/trunk/src/bbsmenuparser.c (revision 6)
@@ -36,7 +36,7 @@
3636
3737 #ifdef BCHANL_CONFIG_DEBUG
3838 # define DP(arg) printf arg
39-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
39+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4040 #else
4141 # define DP(arg) /**/
4242 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/subjectcache.c (revision 5)
+++ bchanl/trunk/src/subjectcache.c (revision 6)
@@ -37,7 +37,7 @@
3737
3838 #ifdef BCHANL_CONFIG_DEBUG
3939 # define DP(arg) printf arg
40-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
40+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4141 #else
4242 # define DP(arg) /**/
4343 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/bbsmenuretriever.c (revision 5)
+++ bchanl/trunk/src/bbsmenuretriever.c (revision 6)
@@ -39,7 +39,7 @@
3939
4040 #ifdef BCHANL_CONFIG_DEBUG
4141 # define DP(arg) printf arg
42-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
42+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4343 #else
4444 # define DP(arg) /**/
4545 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/Makefile (revision 5)
+++ bchanl/trunk/src/Makefile (revision 6)
@@ -55,6 +55,8 @@
5555 CFLAGS += -Wall
5656 endif
5757
58+CFLAGS += $(BUILDOPTIONS)
59+
5860 LOADLIBES += -limg
5961
6062 #----------------------------------------------------------------------
--- bchanl/trunk/src/subjectlayout.c (revision 5)
+++ bchanl/trunk/src/subjectlayout.c (revision 6)
@@ -38,7 +38,7 @@
3838
3939 #ifdef BCHANL_CONFIG_DEBUG
4040 # define DP(arg) printf arg
41-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
41+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4242 #else
4343 # define DP(arg) /**/
4444 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/tadlib.c (revision 5)
+++ bchanl/trunk/src/tadlib.c (revision 6)
@@ -35,7 +35,7 @@
3535
3636 #ifdef BCHANL_CONFIG_DEBUG
3737 # define DP(arg) printf arg
38-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
38+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
3939 #else
4040 # define DP(arg) /**/
4141 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/parselib.c (revision 5)
+++ bchanl/trunk/src/parselib.c (revision 6)
@@ -34,7 +34,7 @@
3434
3535 #ifdef BCHANL_CONFIG_DEBUG
3636 # define DP(arg) printf arg
37-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
37+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
3838 #else
3939 # define DP(arg) /**/
4040 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/cache.c (revision 5)
+++ bchanl/trunk/src/cache.c (revision 6)
@@ -30,7 +30,7 @@
3030
3131 #ifdef BCHANL_CONFIG_DEBUG
3232 # define DP(arg) printf arg
33-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
33+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
3434 #else
3535 # define DP(arg) /**/
3636 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/window.c (revision 5)
+++ bchanl/trunk/src/window.c (revision 6)
@@ -33,7 +33,7 @@
3333
3434 #ifdef BCHANL_CONFIG_DEBUG
3535 # define DP(arg) printf arg
36-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
36+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
3737 #else
3838 # define DP(arg) /**/
3939 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/subjectparser.c (revision 5)
+++ bchanl/trunk/src/subjectparser.c (revision 6)
@@ -36,7 +36,7 @@
3636
3737 #ifdef BCHANL_CONFIG_DEBUG
3838 # define DP(arg) printf arg
39-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
39+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4040 #else
4141 # define DP(arg) /**/
4242 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/bbsmenucache.c (revision 5)
+++ bchanl/trunk/src/bbsmenucache.c (revision 6)
@@ -35,7 +35,7 @@
3535
3636 #ifdef BCHANL_CONFIG_DEBUG
3737 # define DP(arg) printf arg
38-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
38+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
3939 #else
4040 # define DP(arg) /**/
4141 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/main.c (revision 5)
+++ bchanl/trunk/src/main.c (revision 6)
@@ -53,7 +53,7 @@
5353
5454 #ifdef BCHANL_CONFIG_DEBUG
5555 # define DP(arg) printf arg
56-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
56+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
5757 #else
5858 # define DP(arg) /**/
5959 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/subjectretriever.c (revision 5)
+++ bchanl/trunk/src/subjectretriever.c (revision 6)
@@ -39,7 +39,7 @@
3939
4040 #ifdef BCHANL_CONFIG_DEBUG
4141 # define DP(arg) printf arg
42-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
42+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4343 #else
4444 # define DP(arg) /**/
4545 # define DP_ER(msg, err) /**/
--- bchanl/trunk/src/bbsmenulayout.c (revision 5)
+++ bchanl/trunk/src/bbsmenulayout.c (revision 6)
@@ -38,7 +38,7 @@
3838
3939 #ifdef BCHANL_CONFIG_DEBUG
4040 # define DP(arg) printf arg
41-# define DP_ER(msg, err) printf("%s (%d/%z)\n", msg, err>>16, err)
41+# define DP_ER(msg, err) printf("%s (%d/%x)\n", msg, err>>16, err)
4242 #else
4343 # define DP(arg) /**/
4444 # define DP_ER(msg, err) /**/
Show on old repository browser