Mercurial > hg > octave-terminal
changeset 242:742c4795aea9
[project @ 1993-11-30 21:26:43 by jwe]
author | jwe |
---|---|
date | Tue, 30 Nov 1993 21:26:43 +0000 |
parents | 62fec093c19e |
children | 5b2f4a58254b |
files | src/help.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/help.cc +++ b/src/help.cc @@ -28,6 +28,7 @@ #include <iostream.h> #include "builtins.h" +#include "utils.h" #include "help.h" static help_list operators[] = @@ -217,6 +218,9 @@ { (char *) NULL, (char *) NULL, }, }; +/* + * Return a copy of the operator or keyword names. + */ char ** names (help_list *lst, int& count) { @@ -237,7 +241,7 @@ int i = 0; while (ptr->name != (char *) NULL) { - name_list[i++] = ptr->name; + name_list[i++] = strsave (ptr->name); ptr++; }