diff options
-rw-r--r-- | pttbbs/mbbsd/Makefile | 1 | ||||
-rw-r--r-- | pttbbs/mbbsd/fav.c | 3 | ||||
-rw-r--r-- | pttbbs/mbbsd/vtuikit.c | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/Makefile b/pttbbs/mbbsd/Makefile index 97f6402d..4477a736 100644 --- a/pttbbs/mbbsd/Makefile +++ b/pttbbs/mbbsd/Makefile @@ -93,6 +93,7 @@ all: $(PROG) $(PROG): $(OBJS) sh $(SRCROOT)/util/newvers.sh @printf "\033[0;1;32m" + @[ -z "$(DEBUG)" ] || printf "\033[31m+DEBUG \033[32m" @[ -z "$(USE_BBSLUA)" ] || echo -n "+BBSLUA " @[ -z "$(USE_PFTERM)" ] || echo -n "+PFTERM " @[ -z "$(USE_CONVERT)" ] || echo -n "+CONVERT " diff --git a/pttbbs/mbbsd/fav.c b/pttbbs/mbbsd/fav.c index 5c1b94fd..123563ae 100644 --- a/pttbbs/mbbsd/fav.c +++ b/pttbbs/mbbsd/fav.c @@ -35,6 +35,9 @@ * (FAVH_ADM_TAG == 1, FAVH_FAV == 0)�C */ +#ifdef DEBUG +#define inline +#endif /* the total number of items, every level. */ static int fav_number; diff --git a/pttbbs/mbbsd/vtuikit.c b/pttbbs/mbbsd/vtuikit.c index 9d9d6951..b116aa72 100644 --- a/pttbbs/mbbsd/vtuikit.c +++ b/pttbbs/mbbsd/vtuikit.c @@ -47,6 +47,10 @@ // otherwise you need to use real strlen. #define MACROSTRLEN(x) (sizeof(x)-1) +#ifdef DEBUG +#define inline +#endif + // ---- UTILITIES ---------------------------------------------------- inline void outnc(int n, unsigned char c) |