 |
My Project
UNKNOWN_GIT_VERSION
|
Go to the documentation of this file.
10 #ifndef STANDALONE_PARSER
28 #define fePutChar(c) fputc((unsigned char)(c),stdout)
38 #define MAX_FILE_BUFFER 4*4096
76 PrintS(
"-- called from ? --\n");
78 Print(
"-- called from %s --\n",
s);
127 if (strcmp(fname,
"STDIN") == 0)
164 long l=strlen(
pi->procname);
165 if (
pi->libname!=
NULL)
l+=strlen(
pi->libname);
260 if (
p->prev==
NULL)
break;
284 if (
p->prev==
NULL)
break;
320 if (
p->prev==
NULL)
break;
411 char *ss=strrchr(anf,
'\n');
422 int mrc=
si_min(len_s,79)-1;
433 && (strncmp(anf,
";return();",10)!=0)
446 fwrite(anf,1,len_s,stdout);
451 while(fgetc(stdin)!=
'\n');
508 else if (c==
'}')
break;
532 const char *ss=strchr(anf,
'\n');
533 if (ss==
NULL) len=strlen(anf);
541 const char *ss=strchr(anf,
'\n');
542 if (ss==
NULL) len=strlen(anf);
550 strncpy(
s,anf,len+2);
609 rc-=3;
if (rc<0) rc=0;
645 Werror(
"premature end of file while reading %s",err);
654 #define STDIN_FILENO 0
663 p->files=freopen(
"/dev/tty",
"r",stdin);
static int si_min(const int a, const int b)
FILE * feFopen(const char *path, const char *mode, char *where, short useWerror, short path_only)
size_t omSizeOfAddr(const void *addr)
char *(* fe_fgets_stdin)(const char *pr, char *s, int size)
int feReadLine(char *b, int l)
BOOLEAN contBuffer(feBufferTypes typ)
void PrintS(const char *s)
#define TRACE_SHOW_LINENO
void sdb(Voice *currentVoice, const char *currLine, int len)
static void feShowPrompt(void)
BOOLEAN newFile(char *fname)
void myyoldbuffer(void *oldb)
Voice * feInitStdin(Voice *pp)
void omMarkAsStaticAddr(void *addr)
void Werror(const char *fmt,...)
static int fePrintEcho(char *anf, char *)
const CanonicalForm int s
BOOLEAN exitBuffer(feBufferTypes typ)
void newBuffer(char *s, feBufferTypes t, procinfo *pi, int lineno)