Mercurial > hg > octave-nkf
comparison src/oct-map.cc @ 1278:606361d34c74
[project @ 1995-04-26 17:40:24 by jwe]
Initial revision
author | jwe |
---|---|
date | Wed, 26 Apr 1995 17:40:24 +0000 |
parents | |
children | 3f49454bc68c |
comparison
equal
deleted
inserted
replaced
1277:db4f4009d6e8 | 1278:606361d34c74 |
---|---|
1 // oct-map.cc -*- C++ -*- | |
2 /* | |
3 | |
4 Copyright (C) 1995 John W. Eaton | |
5 | |
6 This file is part of Octave. | |
7 | |
8 Octave is free software; you can redistribute it and/or modify it | |
9 under the terms of the GNU General Public License as published by the | |
10 Free Software Foundation; either version 2, or (at your option) any | |
11 later version. | |
12 | |
13 Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with Octave; see the file COPYING. If not, write to the Free | |
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | |
22 */ | |
23 | |
24 #ifdef HAVE_CONFIG_H | |
25 #include <config.h> | |
26 #endif | |
27 | |
28 #include "oct-map.h" | |
29 #include "utils.h" | |
30 | |
31 char ** | |
32 Octave_map::make_name_list (void) | |
33 { | |
34 char **names = new char * [length () + 1]; | |
35 | |
36 int i = 0; | |
37 for (Pix p = first (); p != 0; next (p)) | |
38 names[i++] = strsave (key (p)); | |
39 | |
40 names[i] = 0; | |
41 | |
42 return names; | |
43 } | |
44 | |
45 /* | |
46 ;;; Local Variables: *** | |
47 ;;; mode: C++ *** | |
48 ;;; page-delimiter: "^/\\*" *** | |
49 ;;; End: *** | |
50 */ |