My Project
Toggle main menu visibility
Loading...
Searching...
No Matches
kernel
oswrapper
feread.h
Go to the documentation of this file.
1
#ifndef FEREAD_H
2
#define FEREAD_H
3
/****************************************
4
* * Computer Algebra System SINGULAR *
5
* ****************************************/
6
/*
7
* ABSTRACT: terminal input
8
*/
9
10
EXTERN_VAR
char
prompt_char
;
/*1 either '>' or '.'*/
11
#ifdef __cplusplus
12
extern
"C"
13
{
14
#endif
15
EXTERN_VAR
BOOLEAN
using_history_called
;
/*1 either '>' or '.'*/
16
#ifdef __cplusplus
17
}
18
#endif
19
20
#define SINGULARHIST_FILE (char*)".singularhistory"
21
22
#ifdef __cplusplus
23
24
/* the interface for reading: */
25
extern
"C"
char
* (*fe_fgets_stdin)(
const
char
*pr,
char
*
s
,
int
size
);
26
27
#ifdef HAVE_DYN_RL
28
char
*
fe_fgets_stdin_drl
(
const
char
*pr,
char
*
s
,
int
size
);
29
#endif
30
31
extern
"C"
void
fe_reset_input_mode
();
32
33
extern
"C"
{
34
#ifndef HAVE_ATEXIT
35
void
fe_reset_fe
(
int
i
,
void
*
v
);
36
#else
37
void
fe_reset_fe
(
void
);
38
#endif
39
}
40
41
/* possible implementations: */
42
extern
"C"
43
{
44
/* readline, linked in: */
45
char
*
fe_fgets_stdin_rl
(
const
char
*pr,
char
*
s
,
int
size
);
46
47
/* emulated readline: */
48
char
*
fe_fgets_stdin_emu
(
const
char
*pr,
char
*
s
,
int
size
);
49
50
/* fgets: */
51
char
*
fe_fgets
(
const
char
*pr,
char
*
s
,
int
size
);
52
53
/* dummy (for batch mode): */
54
char
*
fe_fgets_dummy
(
const
char
*pr,
char
*
s
,
int
size
);
55
56
}
57
const
char
*
eati
(
const
char
*
s
,
int
*
i
);
58
59
#endif
60
#endif
61
BOOLEAN
int BOOLEAN
Definition
auxiliary.h:88
size
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition
cf_ops.cc:600
i
int i
Definition
cfEzgcd.cc:132
s
const CanonicalForm int s
Definition
facAbsFact.cc:51
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition
facBivar.h:39
using_history_called
VAR BOOLEAN using_history_called
Definition
feread.cc:106
fe_reset_fe
void fe_reset_fe(void)
Definition
fereadl.c:83
fe_reset_input_mode
void fe_reset_input_mode()
Definition
fereadl.c:831
fe_fgets_dummy
char * fe_fgets_dummy(const char *pr, char *s, int size)
Definition
feread.cc:455
eati
const char * eati(const char *s, int *i)
Definition
reporter.cc:377
prompt_char
EXTERN_VAR char prompt_char
Definition
feread.h:10
fe_fgets
char * fe_fgets(const char *pr, char *s, int size)
Definition
feread.cc:309
fe_fgets_stdin_rl
char * fe_fgets_stdin_rl(const char *pr, char *s, int size)
fe_fgets_stdin_drl
char * fe_fgets_stdin_drl(const char *pr, char *s, int size)
Definition
feread.cc:269
fe_fgets_stdin_emu
char * fe_fgets_stdin_emu(const char *pr, char *s, int size)
Definition
feread.cc:253
EXTERN_VAR
#define EXTERN_VAR
Definition
globaldefs.h:6
Generated on
for My Project by
doxygen 1.17.0
for
Singular