10#ifndef STANDALONE_PARSER
27#define fePutChar(c) fputc((unsigned char)(c),stdout)
37#define MAX_FILE_BUFFER 4*4096
83 PrintS(
"-- called from ? --\n");
85 Print(
"-- called from %s --\n",
s);
134 if (strcmp(fname,
"STDIN") == 0)
171 long l=strlen(
pi->procname);
172 if (
pi->libname!=
NULL)
l+=strlen(
pi->libname);
267 if (
p->prev==
NULL)
break;
291 if (
p->prev==
NULL)
break;
327 if (
p->prev==
NULL)
break;
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);
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);
623 rc-=3;
if (rc<0) rc=0;
628 if (offset<currentVoice->buff_size)
goto NewRead;
659 Werror(
"premature end of file while reading %s",err);
668#define STDIN_FILENO 0
677 p->files=freopen(
"/dev/tty",
"r",stdin);
static int si_min(const int a, const int b)
const CanonicalForm int s
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
VAR char my_yylinebuf[80]
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
EXTERN_VAR char prompt_char
VAR FILE * File_Profiling
BOOLEAN exitBuffer(feBufferTypes typ)
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)
BOOLEAN contBuffer(feBufferTypes typ)
int feReadLine(char *b, int l)
static int fePrintEcho(char *anf, char *)
BOOLEAN newFile(char *fname)
Voice * feInitStdin(Voice *pp)
static void feShowPrompt(void)
void myyoldbuffer(void *oldb)
void omMarkAsStaticAddr(void *addr)
void PrintS(const char *s)
void Werror(const char *fmt,...)
#define TRACE_SHOW_LINENO
EXTERN_VAR int traceit_stop
void sdb(Voice *currentVoice, const char *currLine, int len)