Go to the source code of this file.
|
char * | fe_fgets_stdin_drl (const char *pr, char *s, int size) |
|
void | fe_reset_input_mode () |
|
void | fe_reset_fe (void) |
|
char * | fe_fgets_stdin_rl (const char *pr, char *s, int size) |
|
char * | fe_fgets_stdin_emu (const char *pr, char *s, int size) |
|
char * | fe_fgets (const char *pr, char *s, int size) |
|
char * | fe_fgets_dummy (const char *pr, char *s, int size) |
|
const char * | eati (const char *s, int *i) |
|
◆ eati()
Definition at line 373 of file reporter.cc.
377 if (*
s >=
'0' && *
s <=
'9')
380 while (*
s >=
'0' && *
s <=
'9')
388 Werror(
"`%s` greater than %d(max. integer representation)",
const CanonicalForm int s
void Werror(const char *fmt,...)
◆ fe_fgets()
char* fe_fgets |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 310 of file feread.cc.
318 char *line=fgets(
s,
size,stdin);
321 for (
int i=strlen(line)-1;
i>=0;
i--) line[
i]=line[
i]&127;
329 case EBADF:
return NULL;
330 case EINTR:
return strcpy(
s,
"\n");
334 fprintf(stderr,
"fgets() failed with errno %d\n%s\n",errsv,strerror(errsv));
const CanonicalForm int s
◆ fe_fgets_dummy()
char* fe_fgets_dummy |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
◆ fe_fgets_stdin_drl()
char* fe_fgets_stdin_drl |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 270 of file feread.cc.
279 line = (*fe_readline) ((
char*)pr);
285 for (
int i=l-1;
i>=0;
i--) line[
i]=line[
i]&127;
289 (*fe_add_history) (line);
293 strncpy(
s,line,
size);
const CanonicalForm int s
◆ fe_fgets_stdin_emu()
char* fe_fgets_stdin_emu |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
Definition at line 254 of file feread.cc.
const CanonicalForm int s
char * fe_fgets_stdin_fe(const char *pr, char *s, int size)
◆ fe_fgets_stdin_rl()
char* fe_fgets_stdin_rl |
( |
const char * |
pr, |
|
|
char * |
s, |
|
|
int |
size |
|
) |
| |
◆ fe_reset_fe()
void fe_reset_fe |
( |
void |
| ) |
|
Definition at line 82 of file fereadl.c.
static BOOLEAN fe_stdin_is_tty
#define omFreeSize(addr, size)
static BOOLEAN fe_stdout_is_tty
struct termios fe_saved_attributes
◆ fe_reset_input_mode()
void fe_reset_input_mode |
( |
| ) |
|
Definition at line 825 of file fereadl.c.
827 #if defined(HAVE_DYN_RL) 828 char *
p =
getenv(
"SINGULARHIST");
832 (*fe_write_history) (
p);
835 #if defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL) 836 char *p =
getenv(
"SINGULARHIST");
843 #if defined(HAVE_FEREAD)
int history_total_bytes()
int(* fe_history_total_bytes)()
◆ fe_fgets_stdin
char*(* fe_fgets_stdin) (const char *pr, char *s, int size) |
◆ prompt_char