GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-rl-hist.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2000-2024 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 #if ! defined (octave_oct_rl_hist_h)
27 #define octave_oct_rl_hist_h 1
28 
29 #include "octave-config.h"
30 
31 #if defined (__cplusplus)
32 extern "C"
33 {
34 #endif
35 
36 enum
37 {
38  HC_IGNSPACE = 0x01,
39  HC_IGNDUPS = 0x02,
40  HC_ERASEDUPS = 0x04
41 };
42 
43 extern int octave_add_history (const char *, int);
44 
45 extern int octave_where_history (void);
46 
47 extern int octave_history_length (void);
48 
49 extern int octave_max_input_history (void);
50 
51 extern int octave_history_base (void);
52 
53 extern void octave_stifle_history (int);
54 
55 extern int octave_unstifle_history (void);
56 
57 extern int octave_history_is_stifled (void);
58 
59 extern int octave_history_set_pos (int);
60 
61 extern int octave_read_history (const char *);
62 
63 extern void octave_using_history (void);
64 
65 extern int octave_read_history_range (const char *, int, int);
66 
67 extern int octave_write_history (const char *);
68 
69 extern int octave_append_history (int, const char *);
70 
71 extern int octave_history_truncate_file (const char *, int);
72 
73 extern void octave_remove_history (int);
74 
75 extern void octave_clear_history (void);
76 
77 extern char * octave_history_goto_mark (int n);
78 
79 extern char * octave_history_get (int n);
80 
81 extern char ** octave_history_list (int, int);
82 
83 extern void octave_replace_history_entry (int, const char *);
84 
85 #if defined (__cplusplus)
86 }
87 #endif
88 
89 #endif
octave_idx_type n
Definition: mx-inlines.cc:761
void octave_stifle_history(int)
int octave_unstifle_history(void)
int octave_where_history(void)
void octave_clear_history(void)
char * octave_history_goto_mark(int n)
int octave_read_history_range(const char *, int, int)
int octave_write_history(const char *)
int octave_append_history(int, const char *)
int octave_read_history(const char *)
char ** octave_history_list(int, int)
int octave_max_input_history(void)
@ HC_IGNDUPS
Definition: oct-rl-hist.h:39
@ HC_ERASEDUPS
Definition: oct-rl-hist.h:40
@ HC_IGNSPACE
Definition: oct-rl-hist.h:38
int octave_history_length(void)
void octave_replace_history_entry(int, const char *)
char * octave_history_get(int n)
int octave_history_base(void)
int octave_history_set_pos(int)
int octave_add_history(const char *, int)
int octave_history_truncate_file(const char *, int)
void octave_using_history(void)
int octave_history_is_stifled(void)
void octave_remove_history(int)