Mercurial > hg > octave-lyh
annotate liboctave/oct-rl-hist.h @ 14507:3f21c0c34b8f
check for function/file name mismatch when parsing class methods
* oct-parse.yy (frob_function): Also check for and repair function
name/file name mismatch when parsing class methods.
* test/bug-36025: New test directory.
* test/Makefile.am: Include bug-36025/module.mk.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 28 Mar 2012 23:21:44 -0400 |
parents | 72c96de7a403 |
children |
rev | line source |
---|---|
3519 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 2000-2012 John W. Eaton |
3519 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
3519 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
3519 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_rl_hist_h) | |
24 #define octave_rl_hist_h 1 | |
25 | |
26 #ifdef __cplusplus | |
27 extern "C" | |
28 { | |
29 #endif | |
30 | |
11488
49368dbf0822
Replace history control macros with enum
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11486
diff
changeset
|
31 enum { |
49368dbf0822
Replace history control macros with enum
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11486
diff
changeset
|
32 HC_IGNSPACE = 0x01, |
49368dbf0822
Replace history control macros with enum
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11486
diff
changeset
|
33 HC_IGNDUPS = 0x02, |
49368dbf0822
Replace history control macros with enum
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11486
diff
changeset
|
34 HC_ERASEDUPS = 0x04 |
49368dbf0822
Replace history control macros with enum
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
11486
diff
changeset
|
35 }; |
11486
a1deab9a6e71
bash-like history control
Pascal Dupuis <Pascal.Dupuis@worldonline.be> and John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
36 |
a1deab9a6e71
bash-like history control
Pascal Dupuis <Pascal.Dupuis@worldonline.be> and John W. Eaton <jwe@octave.org>
parents:
10158
diff
changeset
|
37 extern int octave_add_history (const char *, int); |
3519 | 38 |
39 extern int octave_where_history (void); | |
40 | |
41 extern int octave_history_length (void); | |
42 | |
43 extern int octave_max_input_history (void); | |
44 | |
45 extern int octave_history_base (void); | |
46 | |
47 extern void octave_stifle_history (int); | |
48 | |
49 extern int octave_unstifle_history (void); | |
50 | |
51 extern int octave_history_is_stifled (void); | |
52 | |
53 extern int octave_history_set_pos (int); | |
54 | |
55 extern int octave_read_history (const char *); | |
56 | |
57 extern void octave_using_history (void); | |
58 | |
59 extern int octave_read_history_range (const char *, int, int); | |
60 | |
61 extern int octave_write_history (const char *); | |
62 | |
63 extern int octave_append_history (int, const char *); | |
64 | |
65 extern int octave_history_truncate_file (const char *, int); | |
66 | |
67 extern void octave_remove_history (int); | |
68 | |
69 extern char *octave_history_goto_mark (int n); | |
70 | |
71 extern char *octave_history_get (int n); | |
72 | |
73 extern char **octave_history_list (int, int); | |
74 | |
75 extern void octave_replace_history_entry (int, const char *); | |
76 | |
77 #ifdef __cplusplus | |
78 } | |
79 #endif | |
80 | |
81 #endif |