diff --git a/edit.c b/edit.c index 51f3bbc..d18533f 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.262 2013/02/10 17:38:13 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.263 2013/02/10 17:39:36 tg Exp $"); /* * in later versions we might use libtermcap for this, but since external @@ -5447,9 +5447,11 @@ x_init(void) #endif } +#ifdef DEBUG void x_done(void) { afreeall(AEDIT); } +#endif #endif /* !MKSH_NO_CMDLINE_EDITING */ diff --git a/sh.h b/sh.h index 47a47b9..eb786ac 100644 --- a/sh.h +++ b/sh.h @@ -164,7 +164,7 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.630 2013/02/10 17:38:15 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.631 2013/02/10 17:39:38 tg Exp $"); #endif #define MKSH_VERSION "R41 2013/01/19" @@ -1674,7 +1674,9 @@ int x_bind(const char *, const char *, bool, bool); int x_bind(const char *, const char *, bool); #endif void x_init(void); +#ifdef DEBUG void x_done(void); +#endif int x_read(char *, size_t); #endif void x_mkraw(int, mksh_ttyst *, bool);