Module Name: src Committed By: kamil Date: Fri Jun 30 04:30:26 UTC 2017
Modified Files: src/bin/ksh: main.c sh.h Log Message: ksh: Eliminate dead MEM_DEBUG sections, there is missing code for it MEM_DEBUG used to contain malloc(3) debugging facilities. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/bin/ksh/main.c cvs rdiff -u -r1.32 -r1.33 src/bin/ksh/sh.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ksh/main.c diff -u src/bin/ksh/main.c:1.20 src/bin/ksh/main.c:1.21 --- src/bin/ksh/main.c:1.20 Fri Jun 30 03:56:12 2017 +++ src/bin/ksh/main.c Fri Jun 30 04:30:26 2017 @@ -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 @@ main(int argc, char *argv[]) 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 @@ quitenv() kill(0, sig); } } -#ifdef MEM_DEBUG - chmem_allfree(); -#endif /* MEM_DEBUG */ } exit(exstat); } Index: src/bin/ksh/sh.h diff -u src/bin/ksh/sh.h:1.32 src/bin/ksh/sh.h:1.33 --- src/bin/ksh/sh.h:1.32 Fri Jun 30 04:22:22 2017 +++ src/bin/ksh/sh.h Fri Jun 30 04:30:26 2017 @@ -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 @@ EXTERN Area aperm; /* permanent object #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