25 lines
403 B
C
25 lines
403 B
C
#ifndef _INTERP_H
|
|
#define _INTERP_H
|
|
|
|
#include "context.h"
|
|
#include "parser.h"
|
|
#include <list.h>
|
|
#include <stdbool.h>
|
|
|
|
#define POSVAR_MAX 64
|
|
|
|
struct posvar {
|
|
char buf[0x80];
|
|
};
|
|
|
|
void execute(struct ast_node* root, struct context* context, bool run_bg);
|
|
|
|
bool interp_is_running(void);
|
|
|
|
void interp_shutdown(void);
|
|
|
|
extern struct posvar posvars[POSVAR_MAX];
|
|
extern int posvar_count;
|
|
|
|
#endif // _INTERP_H
|