actually, only needed #ifdef DEBUG

This commit is contained in:
tg
2013-02-10 17:39:38 +00:00
parent cb93db360d
commit 63b6d920a8
2 changed files with 6 additions and 2 deletions

4
edit.c
View File

@ -28,7 +28,7 @@
#ifndef MKSH_NO_CMDLINE_EDITING #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 * in later versions we might use libtermcap for this, but since external
@ -5447,9 +5447,11 @@ x_init(void)
#endif #endif
} }
#ifdef DEBUG
void void
x_done(void) x_done(void)
{ {
afreeall(AEDIT); afreeall(AEDIT);
} }
#endif
#endif /* !MKSH_NO_CMDLINE_EDITING */ #endif /* !MKSH_NO_CMDLINE_EDITING */

4
sh.h
View File

@ -164,7 +164,7 @@
#endif #endif
#ifdef EXTERN #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 #endif
#define MKSH_VERSION "R41 2013/01/19" #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); int x_bind(const char *, const char *, bool);
#endif #endif
void x_init(void); void x_init(void);
#ifdef DEBUG
void x_done(void); void x_done(void);
#endif
int x_read(char *, size_t); int x_read(char *, size_t);
#endif #endif
void x_mkraw(int, mksh_ttyst *, bool); void x_mkraw(int, mksh_ttyst *, bool);