Mercurial > hg > octave-nkf
diff src/help.cc @ 242:742c4795aea9
[project @ 1993-11-30 21:26:43 by jwe]
author | jwe |
---|---|
date | Tue, 30 Nov 1993 21:26:43 +0000 |
parents | a99f28f5e351 |
children | d66cc97f77a9 |
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++; }