#include <kernel/mod2.h>
#include <omalloc/omalloc.h>
#include <misc/options.h>
#include <reporter/reporter.h>
#include <kernel/oswrapper/feread.h>
#include <Singular/fevoices.h>
#include <Singular/subexpr.h>
#include <Singular/ipshell.h>
#include <Singular/sdb.h>
#include <stdlib.h>
#include <stdio.h>
#include <misc/mylimits.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <ctype.h>
#include <unistd.h>
Go to the source code of this file.
§ fePutChar
#define fePutChar |
( |
|
c | ) |
fputc((unsigned char)(c),stdout) |
§ INITIAL_PRINT_BUFFER
#define INITIAL_PRINT_BUFFER 24*1024L |
§ MAX_FILE_BUFFER
#define MAX_FILE_BUFFER 4*4096 |
§ STDIN_FILENO
§ contBuffer()
§ exitBuffer()
§ exitVoice()
Definition at line 346 of file fevoices.cc.
Voice * feInitStdin(Voice *pp)
void myyoldbuffer(void *oldb)
§ feInitStdin()
Definition at line 661 of file fevoices.cc.
668 p->
files=freopen(
"/dev/tty",
"r",stdin);
void omMarkAsStaticAddr(void *addr)
§ fePrintEcho()
static int fePrintEcho |
( |
char * |
anf, |
|
|
char * |
|
|
) |
| |
|
static |
Definition at line 421 of file fevoices.cc.
423 char *ss=strrchr(anf,
'\n');
434 int mrc=
si_min(len_s,79)-1;
445 && (strncmp(anf,
";return();",10)!=0)
458 fwrite(anf,1,len_s,stdout);
463 while(fgetc(stdin)!=
'\n');
#define TRACE_SHOW_LINENO
static int si_min(const int a, const int b)
void sdb(Voice *currentVoice, const char *currLine, int len)
§ feReadLine()
int feReadLine |
( |
char * |
b, |
|
|
int |
l |
|
) |
| |
Definition at line 497 of file fevoices.cc.
520 else if (c==
'}')
break;
541 const char *ss=strchr(anf,
'\n');
543 if (ss==
NULL) len=strlen(anf);
545 char *s=(
char *)
omAlloc(len+2);
546 strncpy(s,anf,len+2);
555 const char *ss=strchr(anf,
'\n');
557 if (ss==
NULL) len=strlen(anf);
559 char *s=(
char *)
omAlloc(len+2);
560 strncpy(s,anf,len+2);
650 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 void feShowPrompt(void)
size_t omSizeOfAddr(const void *addr)
static int fePrintEcho(char *anf, char *)
void omMarkAsStaticAddr(void *addr)
void Werror(const char *fmt,...)
§ feShowPrompt()
static void feShowPrompt |
( |
void |
| ) |
|
|
static |
§ newBuffer()
§ newFile()
BOOLEAN newFile |
( |
char * |
fname, |
|
|
FILE * |
f |
|
) |
| |
Definition at line 129 of file fevoices.cc.
136 if (strcmp(fname,
"STDIN") == 0)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
void omMarkAsStaticAddr(void *addr)
§ VoiceBackTrack()
Definition at line 77 of file fevoices.cc.
85 PrintS(
"-- called from ? --\n");
87 Print(
"-- called from %s --\n",s);
const CanonicalForm int s
void PrintS(const char *s)
§ VoiceName()
const char* VoiceName |
( |
| ) |
|
§ blocknest
§ currentVoice
§ fe_promptstr
§ feBuffer
§ File_Profiling
FILE* File_Profiling =NULL |
§ sNoName_fe
const char* sNoName_fe ="_" |
§ yy_blocklineno
§ yy_noeof