}
/*
- * compile the expression in [sf]p
+ * compile the expression in fp
*/
-int
-excomp(Expr_t* p, const char* name, int line, const char* sp, Sfio_t* fp)
-{
+int excomp(Expr_t *p, const char *name, int line, Sfio_t *fp) {
Exid_t* v;
int eof;
p->more = 0;
eof = p->eof;
- if (!sp && !fp)
+ if (!fp)
{
if (!p->input)
return -1;
}
- else if (expush(p, name, line, sp, fp))
+ else if (expush(p, name, line, NULL, fp))
return -1;
else
p->input->unit = line >= 0;
extern Exnode_t* excast(Expr_t*, Exnode_t*, int, Exnode_t*, int);
extern Exnode_t* exnoncast(Exnode_t *);
extern void exclose(Expr_t*, int);
-extern int excomp(Expr_t*, const char*, int, const char*, Sfio_t*);
+extern int excomp(Expr_t*, const char*, int, Sfio_t*);
extern char* excontext(Expr_t*, char*, int);
extern int exdump(Expr_t*, Exnode_t*, agxbuf*);
#ifdef __GNUC__
if (!src)
src = "<command line>";
- rv = excomp(prog, src, line, 0, sf);
+ rv = excomp(prog, src, line, sf);
sfclose(sf);
if (rv >= 0 && getErrorErrors() == 0)