GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
oct-rl-hist.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2000-2025 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)
32extern "C"
33{
34#endif
35
36enum
37{
39 HC_IGNDUPS = 0x02,
40 HC_ERASEDUPS = 0x04
41};
42
43extern int octave_add_history (const char *, int);
44
45extern int octave_where_history (void);
46
47extern int octave_history_length (void);
48
49extern int octave_max_input_history (void);
50
51extern int octave_history_base (void);
52
53extern void octave_stifle_history (int);
54
55extern int octave_unstifle_history (void);
56
57extern int octave_history_is_stifled (void);
58
59extern int octave_history_set_pos (int);
60
61extern int octave_read_history (const char *);
62
63extern void octave_using_history (void);
64
65extern int octave_read_history_range (const char *, int, int);
66
67extern int octave_write_history (const char *);
68
69extern int octave_append_history (int, const char *);
70
71extern int octave_history_truncate_file (const char *, int);
72
73extern void octave_remove_history (int);
74
75extern void octave_clear_history (void);
76
77extern char * octave_history_goto_mark (int n);
78
79extern char * octave_history_get (int n);
80
81extern char ** octave_history_list (int, int);
82
83extern void octave_replace_history_entry (int, const char *);
84
85#if defined (__cplusplus)
86}
87#endif
88
89#endif
void octave_stifle_history(int)
char * octave_history_goto_mark(int n)
int octave_unstifle_history(void)
int octave_where_history(void)
void octave_clear_history(void)
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 *)
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
char ** octave_history_list(int, int)
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)