My Project
Loading...
Searching...
No Matches
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
10EXTERN_VAR char prompt_char; /*1 either '>' or '.'*/
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15EXTERN_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: */
25extern "C" char * (*fe_fgets_stdin)(const char *pr,char *s, int size);
26
27#ifdef HAVE_DYN_RL
28char * fe_fgets_stdin_drl(const char *pr,char *s, int size);
29#endif
30
31extern "C" void fe_reset_input_mode();
32
33extern "C" {
34#ifndef HAVE_ATEXIT
35void fe_reset_fe (int i, void *v);
36#else
37void fe_reset_fe (void);
38#endif
39}
40
41/* possible implementations: */
42extern "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}
57const char * eati(const char *s, int *i);
58
59#endif
60#endif
61
int BOOLEAN
Definition: auxiliary.h:87
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition: cf_ops.cc:600
int i
Definition: cfEzgcd.cc:132
const CanonicalForm int s
Definition: facAbsFact.cc:51
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39
EXTERN_VAR BOOLEAN using_history_called
Definition: feread.h:15
void fe_reset_fe(void)
Definition: fereadl.c:83
void fe_reset_input_mode()
Definition: fereadl.c:831
char * fe_fgets_dummy(const char *pr, char *s, int size)
Definition: feread.cc:455
const char * eati(const char *s, int *i)
Definition: reporter.cc:373
EXTERN_VAR char prompt_char
Definition: feread.h:10
char * fe_fgets(const char *pr, char *s, int size)
Definition: feread.cc:309
char * fe_fgets_stdin_rl(const char *pr, char *s, int size)
char * fe_fgets_stdin_drl(const char *pr, char *s, int size)
Definition: feread.cc:269
char * fe_fgets_stdin_emu(const char *pr, char *s, int size)
Definition: feread.cc:253
#define EXTERN_VAR
Definition: globaldefs.h:6