2001-07-15 Elena Zannoni <ezannoni@redhat.com>
* top.c (readline_line_completion_function, noop_completer): Move from here... * completer.c (readline_line_completion_function, noop_completer): ...to here. * gdbcmd.h (readline_line_completion_function, noop_completer): Move declarations from here... * completer.h (readline_line_completion_function, noop_completer): ...to here. * corefile.c: Include completer.h. * source.c: Ditto. * symfile.c: Ditto. * Makefile.in: Update dependencies.
This commit is contained in:
parent
ed8fee27bc
commit
d75b5104df
9 changed files with 60 additions and 41 deletions
|
@ -1,3 +1,18 @@
|
||||||
|
2001-07-15 Elena Zannoni <ezannoni@redhat.com>
|
||||||
|
|
||||||
|
* top.c (readline_line_completion_function, noop_completer): Move
|
||||||
|
from here...
|
||||||
|
* completer.c (readline_line_completion_function, noop_completer):
|
||||||
|
...to here.
|
||||||
|
* gdbcmd.h (readline_line_completion_function, noop_completer):
|
||||||
|
Move declarations from here...
|
||||||
|
* completer.h (readline_line_completion_function, noop_completer):
|
||||||
|
...to here.
|
||||||
|
* corefile.c: Include completer.h.
|
||||||
|
* source.c: Ditto.
|
||||||
|
* symfile.c: Ditto.
|
||||||
|
* Makefile.in: Update dependencies.
|
||||||
|
|
||||||
2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
|
2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
* go32-nat.c (go32_create_inferior): Support command lines longer
|
* go32-nat.c (go32_create_inferior): Support command lines longer
|
||||||
|
|
|
@ -610,8 +610,9 @@ remote_h = remote.h
|
||||||
version_h = version.h
|
version_h = version.h
|
||||||
ui_out_h = ui-out.h
|
ui_out_h = ui-out.h
|
||||||
cli_out_h = cli-out.h
|
cli_out_h = cli-out.h
|
||||||
arch_utils_h = arch-utils.h
|
arch_utils_h = arch-utils.h
|
||||||
gdb_string_h = gdb_string.h
|
gdb_string_h = gdb_string.h
|
||||||
|
completer_h = completer.h
|
||||||
|
|
||||||
cli_decode_h = $(srcdir)/cli/cli-decode.h
|
cli_decode_h = $(srcdir)/cli/cli-decode.h
|
||||||
cli_cmds_h = $(srcdir)/cli/cli-cmds.h
|
cli_cmds_h = $(srcdir)/cli/cli-cmds.h
|
||||||
|
@ -1223,7 +1224,7 @@ blockframe.o: blockframe.c $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
|
|
||||||
breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
|
breakpoint.o: breakpoint.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
|
||||||
$(inferior_h) language.h target.h gdbthread.h $(gdb_string_h) \
|
$(inferior_h) language.h target.h gdbthread.h $(gdb_string_h) \
|
||||||
gdb-events.h linespec.h $(ui_out_h)
|
gdb-events.h linespec.h $(ui_out_h) $(completer_h)
|
||||||
|
|
||||||
buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
|
buildsym.o: buildsym.c $(bfd_h) buildsym.h complaints.h $(defs_h) \
|
||||||
objfiles.h symfile.h $(symtab_h) $(gdb_string_h)
|
objfiles.h symfile.h $(symtab_h) $(gdb_string_h)
|
||||||
|
@ -1283,7 +1284,7 @@ core-regset.o: core-regset.c $(command_h) $(defs_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h $(gdb_string_h)
|
$(inferior_h) target.h $(gdb_string_h)
|
||||||
|
|
||||||
corefile.o: corefile.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
|
corefile.o: corefile.c $(dis-asm_h) $(defs_h) $(gdbcmd_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h language.h $(gdb_string_h) completer.h \
|
$(inferior_h) target.h language.h $(gdb_string_h) $(completer_h) \
|
||||||
symfile.h
|
symfile.h
|
||||||
|
|
||||||
corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
corelow.o: corelow.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
|
@ -1342,7 +1343,7 @@ inf-loop.o: inf-loop.c $(defs_h) $(inferior_h) $(inf_loop_h) $(event_loop_h) \
|
||||||
$(event_top_h)
|
$(event_top_h)
|
||||||
|
|
||||||
exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
|
exec.o: exec.c $(defs_h) $(gdbcmd_h) $(gdbcore_h) $(inferior_h) \
|
||||||
target.h language.h $(gdb_string_h) completer.h
|
target.h language.h $(gdb_string_h) $(completer_h)
|
||||||
|
|
||||||
expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
|
expprint.o: expprint.c $(defs_h) $(expression_h) $(gdbtypes_h) \
|
||||||
language.h parser-defs.h $(symtab_h) $(value_h)
|
language.h parser-defs.h $(symtab_h) $(value_h)
|
||||||
|
@ -1476,7 +1477,7 @@ v850-tdep.o: v850-tdep.c $(defs_h) $(frame_h) $(inferior_h) $(obstack_h) \
|
||||||
tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \
|
tracepoint.o: tracepoint.c $(defs_h) $(symtab_h) $(frame_h) $(tracepoint_h) \
|
||||||
$(gdbtypes_h) $(expression_h) $(gdbcmd_h) $(value_h) target.h \
|
$(gdbtypes_h) $(expression_h) $(gdbcmd_h) $(value_h) target.h \
|
||||||
language.h $(gdb_string_h) $(readline_headers) $(remote_h) linespec.h \
|
language.h $(gdb_string_h) $(readline_headers) $(remote_h) linespec.h \
|
||||||
$(regcache_h)
|
$(regcache_h) $(completer_h)
|
||||||
|
|
||||||
gdbarch.o: gdbarch.c $(defs_h) $(bfd_h) $(gdbcmd_h)
|
gdbarch.o: gdbarch.c $(defs_h) $(bfd_h) $(gdbcmd_h)
|
||||||
|
|
||||||
|
@ -1576,7 +1577,7 @@ ia64-tdep.o: ia64-tdep.c $(defs_h) $(inferior_h) symfile.h $(gdbcore_h) \
|
||||||
|
|
||||||
infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
|
infcmd.o: infcmd.c $(defs_h) environ.h $(gdbcmd_h) $(gdbcore_h) \
|
||||||
$(inferior_h) target.h language.h symfile.h $(gdb_string_h) \
|
$(inferior_h) target.h language.h symfile.h $(gdb_string_h) \
|
||||||
$(ui_out_h)
|
$(ui_out_h) $(completer_h)
|
||||||
|
|
||||||
inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
|
inflow.o: inflow.c $(bfd_h) $(command_h) $(defs_h) $(inferior_h) \
|
||||||
target.h terminal.h gdbthread.h $(gdb_string_h)
|
target.h terminal.h gdbthread.h $(gdb_string_h)
|
||||||
|
@ -1782,7 +1783,8 @@ ppcbug-rom.o: ppcbug-rom.c monitor.h $(bfd_h) gdb_wait.h $(defs_h) \
|
||||||
|
|
||||||
printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
|
printcmd.o: printcmd.c $(breakpoint_h) $(defs_h) $(expression_h) \
|
||||||
$(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
|
$(gdbcmd_h) $(gdbcore_h) $(gdbtypes_h) language.h objfiles.h \
|
||||||
symfile.h $(symtab_h) target.h $(gdb_string_h) $(ui_out_h)
|
symfile.h $(symtab_h) target.h $(gdb_string_h) $(ui_out_h) \
|
||||||
|
$(completer_h)
|
||||||
|
|
||||||
# FIXME: Procfs.o gets -Wformat errors because things like pid_t don't
|
# FIXME: Procfs.o gets -Wformat errors because things like pid_t don't
|
||||||
# match output format strings.
|
# match output format strings.
|
||||||
|
@ -1790,7 +1792,7 @@ procfs.o: procfs.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
target.h $(gdb_string_h) gdbthread.h proc-utils.h
|
target.h $(gdb_string_h) gdbthread.h proc-utils.h
|
||||||
$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<
|
$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) $<
|
||||||
|
|
||||||
proc-api.o: proc-api.c $(defs_h) $(gdbcmd_h) proc-utils.h
|
proc-api.o: proc-api.c $(defs_h) $(gdbcmd_h) proc-utils.h $(completer_h)
|
||||||
|
|
||||||
proc-events.o: proc-events.c $(defs_h)
|
proc-events.o: proc-events.c $(defs_h)
|
||||||
|
|
||||||
|
@ -1824,7 +1826,7 @@ remote-array.o: remote-array.c $(defs_h) $(gdbcore_h) target.h \
|
||||||
$(version_h) $(regcache_h)
|
$(version_h) $(regcache_h)
|
||||||
|
|
||||||
remote-rdi.o: remote-rdi.c $(defs_h) $(gdbcore_h) \
|
remote-rdi.o: remote-rdi.c $(defs_h) $(gdbcore_h) \
|
||||||
$(inferior_h) $(gdb_string_h)
|
$(inferior_h) $(gdb_string_h) $(completer_h)
|
||||||
|
|
||||||
rdi-share/libangsd.a: force
|
rdi-share/libangsd.a: force
|
||||||
@dir=rdi-share; \
|
@dir=rdi-share; \
|
||||||
|
@ -1959,7 +1961,8 @@ mon960-rom.o: mon960-rom.c monitor.h $(bfd_h) gdb_wait.h $(defs_h) $(gdbcmd_h) \
|
||||||
$(inferior_h) target.h serial.h terminal.h
|
$(inferior_h) target.h serial.h terminal.h
|
||||||
|
|
||||||
solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
solib.o: solib.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
objfiles.h gnu-regex.h symfile.h target.h $(gdb_string_h) solist.h
|
objfiles.h gnu-regex.h symfile.h target.h $(gdb_string_h) solist.h \
|
||||||
|
$(completer_h)
|
||||||
|
|
||||||
solib-svr4.o: solib-svr4.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
solib-svr4.o: solib-svr4.c $(command_h) $(defs_h) $(gdbcore_h) $(inferior_h) \
|
||||||
objfiles.h gnu-regex.h symfile.h target.h $(gdb_string_h) solist.h \
|
objfiles.h gnu-regex.h symfile.h target.h $(gdb_string_h) solist.h \
|
||||||
|
@ -1969,7 +1972,7 @@ solib-legacy.o: solib-legacy.c $(defs_h) $(gdbcore_h) solib-svr4.h
|
||||||
|
|
||||||
source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
|
source.o: source.c $(defs_h) $(expression_h) $(frame_h) $(gdbcmd_h) \
|
||||||
$(gdbcore_h) language.h objfiles.h gnu-regex.h symfile.h $(symtab_h) \
|
$(gdbcore_h) language.h objfiles.h gnu-regex.h symfile.h $(symtab_h) \
|
||||||
$(gdb_string_h) source.h completer.h linespec.h $(ui_out_h)
|
$(gdb_string_h) source.h $(completer_h) linespec.h $(ui_out_h)
|
||||||
|
|
||||||
sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(gdbcore_h) \
|
sparc-nat.o: sparc-nat.c $(bfd_h) $(defs_h) $(inferior_h) $(gdbcore_h) \
|
||||||
target.h $(regcache_h)
|
target.h $(regcache_h)
|
||||||
|
@ -2005,7 +2008,7 @@ sun3-nat.o: sun3-nat.c $(defs_h) $(gdbcore_h) $(inferior_h) $(regcache_h)
|
||||||
symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
|
symfile.o: symfile.c $(breakpoint_h) complaints.h $(defs_h) \
|
||||||
$(expression_h) gdb-stabs.h $(gdbcmd_h) $(gdbcore_h) \
|
$(expression_h) gdb-stabs.h $(gdbcmd_h) $(gdbcore_h) \
|
||||||
$(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) \
|
$(gdbtypes_h) language.h objfiles.h symfile.h $(symtab_h) \
|
||||||
target.h $(gdb_string_h) completer.h
|
target.h $(gdb_string_h) $(completer_h)
|
||||||
|
|
||||||
symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
|
symm-tdep.o: symm-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h)
|
||||||
|
|
||||||
|
@ -2021,7 +2024,7 @@ symtab.o: symtab.c call-cmds.h $(defs_h) $(expression_h) $(frame_h) \
|
||||||
$(gdb_string_h) linespec.h $(cp_abi_h)
|
$(gdb_string_h) linespec.h $(cp_abi_h)
|
||||||
|
|
||||||
linespec.o: linespec.c linespec.h $(defs_h) $(frame_h) $(value_h) \
|
linespec.o: linespec.c linespec.h $(defs_h) $(frame_h) $(value_h) \
|
||||||
objfiles.h symfile.h completer.h $(symtab_h) \
|
objfiles.h symfile.h $(completer_h) $(symtab_h) \
|
||||||
$(demangle_h) command.h $(cp_abi_h)
|
$(demangle_h) command.h $(cp_abi_h)
|
||||||
|
|
||||||
tic80-tdep.o: tic80-tdep.c $(defs_h) $(regcache_h)
|
tic80-tdep.o: tic80-tdep.c $(defs_h) $(regcache_h)
|
||||||
|
@ -2032,13 +2035,13 @@ target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
|
||||||
thread.o: thread.c $(defs_h) gdbthread.h $(gdbcmd_h) target.h \
|
thread.o: thread.c $(defs_h) gdbthread.h $(gdbcmd_h) target.h \
|
||||||
$(regcache_h) $(ui_out_h)
|
$(regcache_h) $(ui_out_h)
|
||||||
|
|
||||||
completer.o: completer.c completer.h $(gdbtypes_h) $(symtab_h) \
|
completer.o: completer.c $(completer_h) $(gdbtypes_h) $(symtab_h) \
|
||||||
$(defs_h) $(gdbcmd_h) $(expression_h) $(readline_headers)
|
$(defs_h) $(gdbcmd_h) $(expression_h) $(readline_headers)
|
||||||
|
|
||||||
top.o: top.c top.h $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
|
top.o: top.c top.h $(bfd_h) $(getopt_h) $(readline_headers) call-cmds.h \
|
||||||
$(defs_h) $(gdbcmd_h) $(inferior_h) language.h \
|
$(defs_h) $(gdbcmd_h) $(inferior_h) language.h \
|
||||||
$(remote_utils_h) $(gdb_string_h) $(event_loop_h) $(event_top_h) \
|
$(remote_utils_h) $(gdb_string_h) $(event_loop_h) $(event_top_h) \
|
||||||
completer.h $(version_h) $(ui_out_h)
|
$(completer_h) $(version_h) $(ui_out_h)
|
||||||
|
|
||||||
typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
|
typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
|
||||||
$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
|
$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \
|
||||||
|
@ -2074,7 +2077,7 @@ vax-tdep.o: vax-tdep.c $(OP_INCLUDE)/vax.h $(defs_h) $(symtab_h)
|
||||||
w65-tdep.o : w65-tdep.c $(gdbcore_h) $(regcache_h)
|
w65-tdep.o : w65-tdep.c $(gdbcore_h) $(regcache_h)
|
||||||
|
|
||||||
win32-nat.o: win32-nat.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
|
win32-nat.o: win32-nat.c $(gdbcmd_h) $(gdbcore_h) $(inferior_h) $(defs_h) \
|
||||||
$(gdb_string_h) $(regcache_h)
|
$(gdb_string_h) $(regcache_h) $(completer_h)
|
||||||
|
|
||||||
xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
|
xdr_ld.o: vx-share/xdr_ld.c $(defs_h) vx-share/vxTypes.h \
|
||||||
vx-share/vxWorks.h vx-share/xdr_ld.h
|
vx-share/vxWorks.h vx-share/xdr_ld.h
|
||||||
|
@ -2146,7 +2149,7 @@ cli-decode.o: $(srcdir)/cli/cli-decode.c $(cli_decode_h) \
|
||||||
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-decode.c
|
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-decode.c
|
||||||
|
|
||||||
cli-cmds.o: $(srcdir)/cli/cli-cmds.c $(cli_cmds_h) $(cli_decode_h) \
|
cli-cmds.o: $(srcdir)/cli/cli-cmds.c $(cli_cmds_h) $(cli_decode_h) \
|
||||||
$(cli_script_h) $(cli_setshow_h) top.h completer.h $(defs_h) \
|
$(cli_script_h) $(cli_setshow_h) top.h $(completer_h) $(defs_h) \
|
||||||
$(target_h) gdb_wait.h gnu-regex.h $(ui_out_h)
|
$(target_h) gdb_wait.h gnu-regex.h $(ui_out_h)
|
||||||
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c
|
$(CC) -c $(INTERNAL_CFLAGS) $(srcdir)/cli/cli-cmds.c
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@
|
||||||
#include "completer.h"
|
#include "completer.h"
|
||||||
|
|
||||||
/* Prototypes for local functions */
|
/* 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:
|
/* readline uses the word breaks for two things:
|
||||||
(1) In figuring out where to point the TEXT parameter to the
|
(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;
|
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. */
|
/* Complete on filenames. */
|
||||||
char **
|
char **
|
||||||
filename_completer (char *text, char *word)
|
filename_completer (char *text, char *word)
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
extern char *line_completion_function (char *, int, char *, int);
|
extern char *line_completion_function (char *, int, char *, int);
|
||||||
|
|
||||||
|
extern char *readline_line_completion_function (char *text, int matches);
|
||||||
|
|
||||||
|
extern char **noop_completer (char *, char *);
|
||||||
|
|
||||||
extern char **filename_completer (char *, char *);
|
extern char **filename_completer (char *, char *);
|
||||||
|
|
||||||
extern char **location_completer (char *, char *);
|
extern char **location_completer (char *, char *);
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "gdbcore.h"
|
#include "gdbcore.h"
|
||||||
#include "dis-asm.h"
|
#include "dis-asm.h"
|
||||||
#include "gdb_stat.h"
|
#include "gdb_stat.h"
|
||||||
|
#include "completer.h"
|
||||||
|
|
||||||
/* Local function declarations. */
|
/* Local function declarations. */
|
||||||
|
|
||||||
|
|
|
@ -125,8 +125,4 @@ extern void print_command_lines (struct ui_out *,
|
||||||
struct command_line *, unsigned int);
|
struct command_line *, unsigned int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char **noop_completer (char *, char *);
|
|
||||||
|
|
||||||
extern char **filename_completer (char *, char *);
|
|
||||||
|
|
||||||
#endif /* !defined (GDBCMD_H) */
|
#endif /* !defined (GDBCMD_H) */
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include "gdbtypes.h"
|
#include "gdbtypes.h"
|
||||||
#include "linespec.h"
|
#include "linespec.h"
|
||||||
#include "filenames.h" /* for DOSish file names */
|
#include "filenames.h" /* for DOSish file names */
|
||||||
|
#include "completer.h"
|
||||||
#ifdef UI_OUT
|
#ifdef UI_OUT
|
||||||
#include "ui-out.h"
|
#include "ui-out.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
#include "inferior.h" /* for write_pc */
|
#include "inferior.h" /* for write_pc */
|
||||||
#include "gdb-stabs.h"
|
#include "gdb-stabs.h"
|
||||||
#include "obstack.h"
|
#include "obstack.h"
|
||||||
|
#include "completer.h"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
20
gdb/top.c
20
gdb/top.c
|
@ -95,8 +95,6 @@ static void init_signals (void);
|
||||||
static void stop_sig (int);
|
static void stop_sig (int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char *readline_line_completion_function (char *, int);
|
|
||||||
|
|
||||||
static void init_main (void);
|
static void init_main (void);
|
||||||
|
|
||||||
static void float_handler (int);
|
static void float_handler (int);
|
||||||
|
@ -1035,24 +1033,6 @@ static int write_history_p;
|
||||||
static int history_size;
|
static int history_size;
|
||||||
static char *history_filename;
|
static char *history_filename;
|
||||||
|
|
||||||
/* Functions that are used as part of the fancy command line editing. */
|
|
||||||
|
|
||||||
/* This can be used for functions which don't want to complete on symbols
|
|
||||||
but don't want to complete on anything else either. */
|
|
||||||
/* ARGSUSED */
|
|
||||||
char **
|
|
||||||
noop_completer (char *text, char *prefix)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Line completion interface function for readline. */
|
|
||||||
|
|
||||||
static char *
|
|
||||||
readline_line_completion_function (char *text, int matches)
|
|
||||||
{
|
|
||||||
return line_completion_function (text, matches, rl_line_buffer, rl_point);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef STOP_SIGNAL
|
#ifdef STOP_SIGNAL
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Reference in a new issue