comparison src/input.cc @ 271:64b486b19ce4

[project @ 1994-01-06 18:34:12 by jwe]
author jwe
date Thu, 06 Jan 1994 18:34:12 +0000
parents 0febc87abbd4
children 6027a905fc06
comparison
equal deleted inserted replaced
270:36586e60f307 271:64b486b19ce4
36 // This must come before anything that includes iostream.h... 36 // This must come before anything that includes iostream.h...
37 extern "C" 37 extern "C"
38 { 38 {
39 #include "readline/readline.h" 39 #include "readline/readline.h"
40 #include "readline/history.h" 40 #include "readline/history.h"
41
42 extern void free_undo_list ();
41 43
42 extern char *xmalloc (); 44 extern char *xmalloc ();
43 45
44 /* 46 /*
45 * Yes, this sucks, but it avoids a conflict with another readline 47 * Yes, this sucks, but it avoids a conflict with another readline
407 { 409 {
408 // Allow conditional parsing of the ~/.inputrc file 410 // Allow conditional parsing of the ~/.inputrc file
409 rl_readline_name = "Octave"; 411 rl_readline_name = "Octave";
410 412
411 // Tell the completer that we want to try first. 413 // Tell the completer that we want to try first.
412 rl_attempted_completion_function = (Function *) command_completer; 414 rl_attempted_completion_function = (CPPFunction *) command_completer;
413 415
414 // Bind operate-and-get-next. 416 // Bind operate-and-get-next.
415 rl_add_defun ("operate-and-get-next", 417 rl_add_defun ("operate-and-get-next",
416 (Function *) operate_and_get_next, CTRL ('O')); 418 (Function *) operate_and_get_next, CTRL ('O'));
417 } 419 }