Mercurial > hg > octave-lyh
diff src/input.cc @ 1466:2f85a175308f
[project @ 1995-09-22 07:48:59 by jwe]
author | jwe |
---|---|
date | Fri, 22 Sep 1995 07:56:05 +0000 |
parents | b44fe7cf2a6b |
children | 89c587478067 |
line wrap: on
line diff
--- a/src/input.cc +++ b/src/input.cc @@ -54,15 +54,10 @@ // This must come before anything that includes iostream.h... // (This is apparently no longer true...) -extern "C" -{ + #include "readline/readline.h" #include "readline/history.h" -extern void free_undo_list (); - -extern char *xmalloc (); - // Yes, this sucks, but it avoids a conflict with another readline // function declared in iostream.h. // (Apparently, there isn't one there now...) @@ -93,7 +88,6 @@ #endif return readline (s); } -} #include "defun.h" #include "dirfns.h" @@ -832,7 +826,7 @@ if (strncmp (name, hint, hint_len) == 0) { int len = 2 + prefix_len + strlen (name); - char *buf = (char *) xmalloc (len); + char *buf = (char *) malloc (len); if (prefix) {