# HG changeset patch # User jwe # Date 798918024 0 # Node ID 606361d34c7448e51151b563e4369e1701fd6ac3 # Parent db4f4009d6e8cef42a19d776b1e31e91c5d0880a [project @ 1995-04-26 17:40:24 by jwe] Initial revision diff -r db4f4009d6e8 -r 606361d34c74 src/oct-map.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/oct-map.cc Wed Apr 26 17:40:24 1995 +0000 @@ -0,0 +1,50 @@ +// oct-map.cc -*- C++ -*- +/* + +Copyright (C) 1995 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "oct-map.h" +#include "utils.h" + +char ** +Octave_map::make_name_list (void) +{ + char **names = new char * [length () + 1]; + + int i = 0; + for (Pix p = first (); p != 0; next (p)) + names[i++] = strsave (key (p)); + + names[i] = 0; + + return names; +} + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/