1
|
1 // utils.h -*- C++ -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1992, 1993, 1994, 1995 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 |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
21 |
|
22 */ |
|
23 |
383
|
24 #if !defined (octave_utils_h) |
|
25 #define octave_utils_h 1 |
1
|
26 |
|
27 class istream; |
|
28 class ostrstream; |
1738
|
29 |
526
|
30 class Octave_object; |
1
|
31 |
|
32 extern char *strsave (const char *); |
|
33 extern char *strconcat (const char *, const char *); |
607
|
34 |
1
|
35 extern void discard_until (istream&, char); |
607
|
36 |
|
37 #if 0 |
|
38 extern char *read_until (istream&, char); |
|
39 #endif |
|
40 |
686
|
41 extern char *search_path_for_file (const char *, const char *); |
164
|
42 extern char *file_in_path (const char *, const char *); |
338
|
43 extern char *fcn_file_in_path (const char *); |
572
|
44 extern char *oct_file_in_path (const char *); |
607
|
45 |
661
|
46 extern char *octave_tmp_file_name (void); |
|
47 |
526
|
48 extern char **pathstring_to_vector (char *pathstring); |
607
|
49 |
1618
|
50 extern "C" void jump_to_top_level (void) NORETURN; |
607
|
51 |
164
|
52 extern int almost_match (const char *std, const char *s, |
287
|
53 int min_match_len = 1, int case_sens = 1); |
|
54 extern int keyword_almost_match (const char **std, int *min_len, |
|
55 const char *s, int min_toks_to_match, |
|
56 int max_toks); |
607
|
57 |
444
|
58 extern char **get_fcn_file_names (int& ffl_len, const char *dir, |
|
59 int no_suffix); |
339
|
60 extern char **get_fcn_file_names (int& ffl_len, int no_suffix); |
607
|
61 |
1
|
62 extern int NINT (double x); |
|
63 extern double D_NINT (double x); |
|
64 |
578
|
65 extern char **make_argv (const Octave_object& args, const char *fcn_name); |
526
|
66 |
628
|
67 extern int empty_arg (const char *name, int nr, int nc); |
|
68 |
526
|
69 extern ostrstream& list_in_columns (ostrstream& os, char **list); |
320
|
70 |
801
|
71 extern char *undo_string_escape (char c); |
1584
|
72 extern char *undo_string_escapes (const char *s); |
801
|
73 |
1710
|
74 extern void oct_putenv (const char *, const char *); |
1709
|
75 |
1
|
76 #endif |
|
77 |
|
78 /* |
|
79 ;;; Local Variables: *** |
|
80 ;;; mode: C++ *** |
|
81 ;;; page-delimiter: "^/\\*" *** |
|
82 ;;; End: *** |
|
83 */ |