2001-07-15 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / completer.c
index 19db617f9cd0f0cdd241ddea9bf1854a663074d9..f63fe02f99329d272c573019b75b0cbcf42538b7 100644 (file)
@@ -38,6 +38,8 @@
 #include "completer.h"
 
 /* Prototypes for local functions */
+char *line_completion_function (char *text, int matches, char *line_buffer,
+                               int point);
 
 /* readline uses the word breaks for two things:
    (1) In figuring out where to point the TEXT parameter to the
@@ -97,6 +99,22 @@ get_gdb_completer_quote_characters (void)
   return gdb_completer_quote_characters;
 }
 
+/* Line completion interface function for readline.  */
+
+char *
+readline_line_completion_function (char *text, int matches)
+{
+  return line_completion_function (text, matches, rl_line_buffer, rl_point);
+}
+
+/* This can be used for functions which don't want to complete on symbols
+   but don't want to complete on anything else either.  */
+char **
+noop_completer (char *text, char *prefix)
+{
+  return NULL;
+}
+
 /* Complete on filenames.  */
 char **
 filename_completer (char *text, char *word)
This page took 0.0238 seconds and 4 git commands to generate.