aboutsummaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-01-07 21:01:59 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-01-07 21:01:59 +0200
commit54684e9a410c64bcde42c39e02832d586ffd1074 (patch)
tree84e7e94c429a3eaecded43c7577666723247a76c /command.c
parent253b88d9f30c3513ab5c525e0a63cc3b055fd80d (diff)
parent56213f42462dc91f4de5a509095dd8bfc4aeef84 (diff)
downloadegawk-54684e9a410c64bcde42c39e02832d586ffd1074.tar.gz
egawk-54684e9a410c64bcde42c39e02832d586ffd1074.tar.bz2
egawk-54684e9a410c64bcde42c39e02832d586ffd1074.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/command.c b/command.c
index d170e4c1..91a8335e 100644
--- a/command.c
+++ b/command.c
@@ -99,10 +99,10 @@ static bool in_eval = false;
static const char start_EVAL[] = "function @eval(){";
static const char end_EVAL[] = "}";
static CMDARG *append_statement(CMDARG *stmt_list, char *stmt);
-static char *next_word(char *p, int len, char **endp);
static NODE *concat_args(CMDARG *a, int count);
#ifdef HAVE_LIBREADLINE
+static char *next_word(char *p, int len, char **endp);
static void history_expand_line(char **line);
static char *command_generator(const char *text, int state);
static char *srcfile_generator(const char *text, int state);
@@ -3395,6 +3395,8 @@ do_help(CMDARG *arg, int cmd)
}
+#ifdef HAVE_LIBREADLINE
+
/* next_word --- find the next word in a line to complete
* (word seperation characters are space and tab).
*/
@@ -3421,8 +3423,6 @@ next_word(char *p, int len, char **endp)
return p;
}
-#ifdef HAVE_LIBREADLINE
-
/* command_completion --- attempt to complete based on the word number in line;
* try to complete on command names if this is the first word; for the next
* word(s), the type of completion depends on the command name (first word).