GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
oct-rl-hist.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2000-2017 John W. Eaton
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
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
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
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_oct_rl_hist_h)
24 #define octave_oct_rl_hist_h 1
25 
26 #include "octave-config.h"
27 
28 #if defined (__cplusplus)
29 extern "C"
30 {
31 #endif
32 
33 enum
34 {
35  HC_IGNSPACE = 0x01,
36  HC_IGNDUPS = 0x02,
37  HC_ERASEDUPS = 0x04
38 };
39 
40 extern int octave_add_history (const char *, int);
41 
42 extern int octave_where_history (void);
43 
44 extern int octave_history_length (void);
45 
46 extern int octave_max_input_history (void);
47 
48 extern int octave_history_base (void);
49 
50 extern void octave_stifle_history (int);
51 
52 extern int octave_unstifle_history (void);
53 
54 extern int octave_history_is_stifled (void);
55 
56 extern int octave_history_set_pos (int);
57 
58 extern int octave_read_history (const char *);
59 
60 extern void octave_using_history (void);
61 
62 extern int octave_read_history_range (const char *, int, int);
63 
64 extern int octave_write_history (const char *);
65 
66 extern int octave_append_history (int, const char *);
67 
68 extern int octave_history_truncate_file (const char *, int);
69 
70 extern void octave_remove_history (int);
71 
72 extern void octave_clear_history (void);
73 
74 extern char *octave_history_goto_mark (int n);
75 
76 extern char *octave_history_get (int n);
77 
78 extern char **octave_history_list (int, int);
79 
80 extern void octave_replace_history_entry (int, const char *);
81 
82 #if defined (__cplusplus)
83 }
84 #endif
85 
86 #endif
void octave_replace_history_entry(int, const char *)
void octave_stifle_history(int)
char * octave_history_get(int n)
int octave_history_is_stifled(void)
int octave_add_history(const char *, int)
int octave_history_truncate_file(const char *, int)
int octave_max_input_history(void)
int octave_append_history(int, const char *)
void octave_remove_history(int)
char * octave_history_goto_mark(int n)
int octave_history_length(void)
int octave_history_base(void)
int octave_read_history(const char *)
int octave_where_history(void)
char ** octave_history_list(int, int)
void octave_using_history(void)
int octave_read_history_range(const char *, int, int)
int octave_history_set_pos(int)
int octave_write_history(const char *)
void octave_clear_history(void)
int octave_unstifle_history(void)