Go to the source code of this file.
◆ fePutChar
#define fePutChar |
( |
|
c | ) |
fputc((unsigned char)(c),stdout) |
◆ MAX_FILE_BUFFER
#define MAX_FILE_BUFFER 4*4096 |
◆ STDIN_FILENO
◆ contBuffer()
◆ exitBuffer()
◆ exitVoice()
Definition at line 339 of file fevoices.cc.
Voice * feInitStdin(Voice *pp)
void myyoldbuffer(void *oldb)
◆ feInitStdin()
Definition at line 669 of file fevoices.cc.
676 p->files=freopen(
"/dev/tty",
"r",stdin);
void omMarkAsStaticAddr(void *addr)
◆ fePrintEcho()
static int fePrintEcho |
( |
char * |
anf, |
|
|
char * |
|
|
) |
| |
|
static |
Definition at line 416 of file fevoices.cc.
418 char *ss=strrchr(anf,
'\n');
429 int mrc=
si_min(len_s,79)-1;
440 && (strncmp(anf,
";return();",10)!=0)
453 fwrite(anf,1,len_s,stdout);
static int si_min(const int a, const int b)
VAR char my_yylinebuf[80]
EXTERN_VAR char prompt_char
VAR FILE * File_Profiling
#define TRACE_SHOW_LINENO
EXTERN_VAR int traceit_stop
void sdb(Voice *currentVoice, const char *currLine, int len)
◆ feReadLine()
int feReadLine |
( |
char * |
b, |
|
|
int |
l |
|
) |
| |
Definition at line 498 of file fevoices.cc.
521 else if (c==
'}')
break;
545 const char *ss=strchr(anf,
'\n');
546 if (ss==
NULL) len=strlen(anf);
554 const char *ss=strchr(anf,
'\n');
555 if (ss==
NULL) len=strlen(anf);
563 strncpy(
s,anf,len+2);
622 rc-=3;
if (rc<0) rc=0;
658 Werror(
"premature end of file while reading %s",err);
const CanonicalForm int s
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
static int fePrintEcho(char *anf, char *)
static void feShowPrompt(void)
size_t omSizeOfAddr(const void *addr)
void Werror(const char *fmt,...)
◆ feShowPrompt()
static void feShowPrompt |
( |
void |
| ) |
|
|
static |
◆ newBuffer()
◆ newFile()
Definition at line 127 of file fevoices.cc.
134 if (strcmp(fname,
"STDIN") == 0)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
◆ VoiceBackTrack()
Definition at line 75 of file fevoices.cc.
83 PrintS(
"-- called from ? --\n");
85 Print(
"-- called from %s --\n",
s);
void PrintS(const char *s)
◆ VoiceLine()
◆ VoiceName()
const char* VoiceName |
( |
| ) |
|
◆ blocknest
◆ currentVoice
◆ fe_promptstr
VAR char fe_promptstr[] =" " |
◆ File_Profiling
◆ sNoName_fe
const char sNoName_fe[] ="_" |
◆ yy_blocklineno
◆ yy_noeof