Loading...
Searching...
No Matches
feread.h
Go to the documentation of this file.
#ifndef FEREAD_H
#define FEREAD_H
/****************************************
* * Computer Algebra System SINGULAR *
* ****************************************/
/*
* ABSTRACT: terminal input
*/
EXTERN_VAR char prompt_char; /*1 either '>' or '.'*/
#ifdef __cplusplus
extern "C"
{
#endif
EXTERN_VAR BOOLEAN using_history_called; /*1 either '>' or '.'*/
#ifdef __cplusplus
}
#endif
#define SINGULARHIST_FILE (char*)".singularhistory"
#ifdef __cplusplus
/* the interface for reading: */
extern "C" char * (*fe_fgets_stdin)(const char *pr,char *s, int size);
#ifdef HAVE_DYN_RL
char * fe_fgets_stdin_drl(const char *pr,char *s, int size);
#endif
extern "C" void fe_reset_input_mode();
extern "C" {
#ifndef HAVE_ATEXIT
void fe_reset_fe (int i, void *v);
#else
void fe_reset_fe (void);
#endif
}
/* possible implementations: */
extern "C"
{
/* readline, linked in: */
char * fe_fgets_stdin_rl(const char *pr,char *s, int size);
/* emulated readline: */
char * fe_fgets_stdin_emu(const char *pr,char *s, int size);
/* fgets: */
char * fe_fgets(const char *pr,char *s, int size);
/* dummy (for batch mode): */
char * fe_fgets_dummy(const char *pr,char *s, int size);
}
const char * eati(const char *s, int *i);
#endif
#endif
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