My Project
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 
12 #ifdef __cplusplus
13 
14 /* the interface for reading: */
15 extern "C" char * (*fe_fgets_stdin)(const char *pr,char *s, int size);
16 
17 #ifdef HAVE_DYN_RL
18 char * fe_fgets_stdin_drl(const char *pr,char *s, int size);
19 #endif
20 
21 extern "C" void fe_reset_input_mode();
22 
23 extern "C" {
24 #ifndef HAVE_ATEXIT
25 void fe_reset_fe (int i, void *v);
26 #else
27 void fe_reset_fe (void);
28 #endif
29 }
30 
31 /* possible implementations: */
32 extern "C"
33 {
34  /* readline, linked in: */
35  char * fe_fgets_stdin_rl(const char *pr,char *s, int size);
36 
37  /* emulated readline: */
38  char * fe_fgets_stdin_emu(const char *pr,char *s, int size);
39 
40  /* fgets: */
41  char * fe_fgets(const char *pr,char *s, int size);
42 
43  /* dummy (for batch mode): */
44  char * fe_fgets_dummy(const char *pr,char *s, int size);
45 
46 }
47 const char * eati(const char *s, int *i);
48 
49 #endif
50 #endif
51 
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
char * fe_fgets_stdin_emu(const char *pr, char *s, int size)
Definition: feread.cc:250
void fe_reset_fe(void)
Definition: fereadl.c:82
char * fe_fgets_dummy(const char *pr, char *s, int size)
Definition: feread.cc:447
void fe_reset_input_mode()
Definition: fereadl.c:827
char * fe_fgets(const char *pr, char *s, int size)
Definition: feread.cc:306
EXTERN_VAR char prompt_char
Definition: feread.h:10
const char * eati(const char *s, int *i)
Definition: reporter.cc:373
char * fe_fgets_stdin_drl(const char *pr, char *s, int size)
Definition: feread.cc:266
char * fe_fgets_stdin_rl(const char *pr, char *s, int size)
#define EXTERN_VAR
Definition: globaldefs.h:6