call it DEBUG_LEAKS so Android can always enable it
This commit is contained in:
4
edit.c
4
edit.c
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
#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
|
* in later versions we might use libtermcap for this, but since external
|
||||||
@ -5447,7 +5447,7 @@ x_init(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG_LEAKS
|
||||||
void
|
void
|
||||||
x_done(void)
|
x_done(void)
|
||||||
{
|
{
|
||||||
|
4
main.c
4
main.c
@ -34,7 +34,7 @@
|
|||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#endif
|
#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;
|
extern char **environ;
|
||||||
|
|
||||||
@ -998,7 +998,7 @@ quitenv(struct shf *shf)
|
|||||||
if (shf)
|
if (shf)
|
||||||
shf_close(shf);
|
shf_close(shf);
|
||||||
reclaim();
|
reclaim();
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG_LEAKS
|
||||||
#ifndef MKSH_NO_CMDLINE_EDITING
|
#ifndef MKSH_NO_CMDLINE_EDITING
|
||||||
if (Flag(FTALKING))
|
if (Flag(FTALKING))
|
||||||
x_done();
|
x_done();
|
||||||
|
7
sh.h
7
sh.h
@ -164,7 +164,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#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
|
#endif
|
||||||
#define MKSH_VERSION "R41 2013/01/19"
|
#define MKSH_VERSION "R41 2013/01/19"
|
||||||
|
|
||||||
@ -504,6 +504,9 @@ char *ucstrstr(char *, const char *);
|
|||||||
|
|
||||||
#if defined(DEBUG) || defined(__COVERITY__)
|
#if defined(DEBUG) || defined(__COVERITY__)
|
||||||
#define mkssert(e) do { if (!(e)) exit(255); } while (/* CONSTCOND */ 0)
|
#define mkssert(e) do { if (!(e)) exit(255); } while (/* CONSTCOND */ 0)
|
||||||
|
#ifndef DEBUG_LEAKS
|
||||||
|
#define DEBUG_LEAKS
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define mkssert(e) do { } while (/* CONSTCOND */ 0)
|
#define mkssert(e) do { } while (/* CONSTCOND */ 0)
|
||||||
#endif
|
#endif
|
||||||
@ -1674,7 +1677,7 @@ int x_bind(const char *, const char *, bool, bool);
|
|||||||
int x_bind(const char *, const char *, bool);
|
int x_bind(const char *, const char *, bool);
|
||||||
#endif
|
#endif
|
||||||
void x_init(void);
|
void x_init(void);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG_LEAKS
|
||||||
void x_done(void);
|
void x_done(void);
|
||||||
#endif
|
#endif
|
||||||
int x_read(char *, size_t);
|
int x_read(char *, size_t);
|
||||||
|
Reference in New Issue
Block a user