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