unbreak MKSH_SMALL after x_histp related changes
This commit is contained in:
40
edit.c
40
edit.c
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.136 2008/10/04 23:08:03 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.137 2008/10/05 16:06:43 tg Exp $");
|
||||
|
||||
/* tty driver characters we are interested in */
|
||||
typedef struct {
|
||||
@@ -28,25 +28,6 @@ X_chars edchars;
|
||||
static int modified; /* buffer has been "modified" */
|
||||
static char holdbuf[LINE]; /* place to hold last edit buffer */
|
||||
|
||||
#ifdef MKSH_SMALL
|
||||
static void x_modified(void);
|
||||
static void
|
||||
x_modified(void)
|
||||
{
|
||||
if (!modified) {
|
||||
x_histp = histptr + 1;
|
||||
modified = 1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define x_modified() do { \
|
||||
if (!modified) { \
|
||||
x_histp = histptr + 1; \
|
||||
modified = 1; \
|
||||
} \
|
||||
} while (/* CONSTCOND */ 0)
|
||||
#endif
|
||||
|
||||
static int x_getc(void);
|
||||
static void x_putcf(int);
|
||||
static bool x_mode(bool);
|
||||
@@ -1421,6 +1402,25 @@ static struct x_defbindings const x_defbindings[] = {
|
||||
{ XFUNC_edit_line, 2, 'e' }
|
||||
};
|
||||
|
||||
#ifdef MKSH_SMALL
|
||||
static void x_modified(void);
|
||||
static void
|
||||
x_modified(void)
|
||||
{
|
||||
if (!modified) {
|
||||
x_histp = histptr + 1;
|
||||
modified = 1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define x_modified() do { \
|
||||
if (!modified) { \
|
||||
x_histp = histptr + 1; \
|
||||
modified = 1; \
|
||||
} \
|
||||
} while (/* CONSTCOND */ 0)
|
||||
#endif
|
||||
|
||||
static int
|
||||
x_e_getmbc(char *sbuf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user