]> diplodocus.org Git - nmh/blobdiff - sbr/read_switch_multiword_via_readline.c
scansbr.c: Move interface to own file.
[nmh] / sbr / read_switch_multiword_via_readline.c
index 94a17df96f1f7dbabe3fe53c79ffd651ff138b2d..df91701c7872d841b49c756abdd19373a4de601d 100644 (file)
@@ -5,7 +5,12 @@
  * complete copyright information.
  */
 
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "read_switch_multiword_via_readline.h"
+#include "smatch.h"
+#include "brkstring.h"
+#include "ambigsw.h"
+#include "print_sw.h"
 
 #ifdef READLINE_SUPPORT
 #include <readline/readline.h>
 
 #ifdef READLINE_SUPPORT
 #include <readline/readline.h>
@@ -75,16 +80,12 @@ initialize_readline(void)
 static char **
 nmh_completion(const char *text, int start, int end)
 {
 static char **
 nmh_completion(const char *text, int start, int end)
 {
-    char **matches;
-
     NMH_UNUSED (end);
 
     NMH_UNUSED (end);
 
-    matches = NULL;
-
     if (start == 0)
     if (start == 0)
-       matches = rl_completion_matches(text, nmh_command_generator);
+       return rl_completion_matches(text, nmh_command_generator);
 
 
-    return matches;
+    return NULL;
 }
 
 static char *
 }
 
 static char *