* Copyright (c) 1991 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)eval.h 5.2 (Berkeley) %G%
extern char *commandname
; /* currently executing command */
extern int exitstatus
; /* exit status of last command */
extern struct strlist
*cmdenviron
; /* environment for builtin command */
struct backcmd
{ /* result of evalbackcmd */
int fd
; /* file descriptor to read from */
int nleft
; /* number of chars in buffer */
struct job
*jp
; /* job structure for command */
union node
; /* BLETCH for ansi C */
void evaltree(union node
*, int);
void evalbackcmd(union node
*, struct backcmd
*);
/* in_function returns nonzero if we are currently evaluating a function */
#define in_function() funcnest