1
|
1 // help.h -*- C++ -*- |
|
2 /* |
|
3 |
383
|
4 Copyright (C) 1992, 1993, 1994 John W. Eaton |
1
|
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 |
383
|
24 #if !defined (octave_help_h) |
|
25 #define octave_help_h 1 |
1
|
26 |
542
|
27 class ostrstream; |
|
28 |
1
|
29 typedef struct help_list |
|
30 { |
|
31 char *name; |
|
32 char *help; |
|
33 }; |
|
34 |
|
35 extern char **names (help_list *l, int& count); |
|
36 extern help_list *operator_help (void); |
|
37 extern help_list *keyword_help (void); |
|
38 |
542
|
39 extern int help_from_list (ostrstream& output_buf, |
|
40 const help_list *list, const char *string, |
|
41 int usage); |
|
42 |
|
43 extern void print_usage (const char *s, int just_usage = 0); |
|
44 |
1
|
45 #endif |
|
46 |
|
47 /* |
|
48 ;;; Local Variables: *** |
|
49 ;;; mode: C++ *** |
|
50 ;;; page-delimiter: "^/\\*" *** |
|
51 ;;; End: *** |
|
52 */ |