call it DEBUG_LEAKS so Android can always enable it
This commit is contained in:
parent
63b6d920a8
commit
59009ac78f
4
edit.c
4
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)
|
||||
{
|
||||
|
4
main.c
4
main.c
@ -34,7 +34,7 @@
|
||||
#include <locale.h>
|
||||
#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();
|
||||
|
7
sh.h
7
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);
|
||||
|
Loading…
Reference in New Issue
Block a user