Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh ksh: Eliminate dead MEM_DEBUG sections, there is mis...
details: https://anonhg.NetBSD.org/src/rev/4edb0875dfce
branches: trunk
changeset: 354804:4edb0875dfce
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Jun 30 04:30:26 2017 +0000
description:
ksh: Eliminate dead MEM_DEBUG sections, there is missing code for it
MEM_DEBUG used to contain malloc(3) debugging facilities.
diffstat:
bin/ksh/main.c | 12 ++----------
bin/ksh/sh.h | 8 ++------
2 files changed, 4 insertions(+), 16 deletions(-)
diffs (67 lines):
diff -r 940efbd1e83d -r 4edb0875dfce bin/ksh/main.c
--- a/bin/ksh/main.c Fri Jun 30 04:22:22 2017 +0000
+++ b/bin/ksh/main.c Fri Jun 30 04:30:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.20 2017/06/30 03:56:12 kamil Exp $ */
+/* $NetBSD: main.c,v 1.21 2017/06/30 04:30:26 kamil Exp $ */
/*
* startup, main loop, environments and error handling
@@ -10,7 +10,7 @@
#include <time.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.20 2017/06/30 03:56:12 kamil Exp $");
+__RCSID("$NetBSD: main.c,v 1.21 2017/06/30 04:30:26 kamil Exp $");
#endif
@@ -102,11 +102,6 @@
struct env env;
pid_t ppid;
-#ifdef MEM_DEBUG
- chmem_set_defaults("ct", 1);
- /* chmem_push("+c", 1); */
-#endif /* MEM_DEBUG */
-
/* make sure argv[] is sane */
if (!*argv) {
static const char *empty_argv[] = {
@@ -711,9 +706,6 @@
kill(0, sig);
}
}
-#ifdef MEM_DEBUG
- chmem_allfree();
-#endif /* MEM_DEBUG */
}
exit(exstat);
}
diff -r 940efbd1e83d -r 4edb0875dfce bin/ksh/sh.h
--- a/bin/ksh/sh.h Fri Jun 30 04:22:22 2017 +0000
+++ b/bin/ksh/sh.h Fri Jun 30 04:30:26 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sh.h,v 1.32 2017/06/30 04:22:22 kamil Exp $ */
+/* $NetBSD: sh.h,v 1.33 2017/06/30 04:30:26 kamil Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
-/* $Id: sh.h,v 1.32 2017/06/30 04:22:22 kamil Exp $ */
+/* $Id: sh.h,v 1.33 2017/06/30 04:30:26 kamil Exp $ */
#include "config.h" /* system and option configuration info */
@@ -205,10 +205,6 @@
#define APERM &aperm
#define ATEMP &e->area
-#ifdef MEM_DEBUG
-# include "chmem.h" /* a debugging front end for malloc et. al. */
-#endif /* MEM_DEBUG */
-
#ifdef KSH_DEBUG
# define kshdebug_init() kshdebug_init_()
# define kshdebug_printf(a) kshdebug_printf_ a
Home |
Main Index |
Thread Index |
Old Index