diff --git a/edit.c b/edit.c index d18533f..c465680 100644 --- a/edit.c +++ b/edit.c @@ -28,7 +28,7 @@ #ifndef MKSH_NO_CMDLINE_EDITING -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.263 2013/02/10 17:39:36 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.264 2013/02/10 17:41:03 tg Exp $"); /* * in later versions we might use libtermcap for this, but since external @@ -5447,7 +5447,7 @@ x_init(void) #endif } -#ifdef DEBUG +#ifdef DEBUG_LEAKS void x_done(void) { diff --git a/main.c b/main.c index fb75065..b7bafe4 100644 --- a/main.c +++ b/main.c @@ -34,7 +34,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/main.c,v 1.253 2013/02/10 17:38:14 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/main.c,v 1.254 2013/02/10 17:41:05 tg Exp $"); extern char **environ; @@ -998,7 +998,7 @@ quitenv(struct shf *shf) if (shf) shf_close(shf); reclaim(); -#ifdef DEBUG +#ifdef DEBUG_LEAKS #ifndef MKSH_NO_CMDLINE_EDITING if (Flag(FTALKING)) x_done(); diff --git a/sh.h b/sh.h index eb786ac..a74db6b 100644 --- a/sh.h +++ b/sh.h @@ -164,7 +164,7 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.631 2013/02/10 17:39:38 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.632 2013/02/10 17:41:06 tg Exp $"); #endif #define MKSH_VERSION "R41 2013/01/19" @@ -504,6 +504,9 @@ char *ucstrstr(char *, const char *); #if defined(DEBUG) || defined(__COVERITY__) #define mkssert(e) do { if (!(e)) exit(255); } while (/* CONSTCOND */ 0) +#ifndef DEBUG_LEAKS +#define DEBUG_LEAKS +#endif #else #define mkssert(e) do { } while (/* CONSTCOND */ 0) #endif @@ -1674,7 +1677,7 @@ int x_bind(const char *, const char *, bool, bool); int x_bind(const char *, const char *, bool); #endif void x_init(void); -#ifdef DEBUG +#ifdef DEBUG_LEAKS void x_done(void); #endif int x_read(char *, size_t);