version 1.15, 2021/03/25 16:58:46 |
version 1.16, 2021/03/25 17:31:21 |
|
|
static int doregex(char *, char *); |
static int doregex(char *, char *); |
static int parseexp(char *); |
static int parseexp(char *); |
static void clearexp(void); |
static void clearexp(void); |
|
static int exitinterpreter(void); |
|
|
TAILQ_HEAD(exphead, expentry) ehead; |
TAILQ_HEAD(exphead, expentry) ehead; |
struct expentry { |
struct expentry { |
|
|
if (doregex(regs, funstr)) |
if (doregex(regs, funstr)) |
return(dobeep_msg("Invalid use of define")); |
return(dobeep_msg("Invalid use of define")); |
|
|
|
/* Exit? */ |
|
regs = "^exit$"; |
|
if (doregex(regs, funstr)) |
|
return(exitinterpreter()); |
|
|
return(multiarg(funstr)); |
return(multiarg(funstr)); |
} |
} |
|
|
|
|
return(TRUE); |
return(TRUE); |
} |
} |
regfree(®ex_buff); |
regfree(®ex_buff); |
|
return(FALSE); |
|
} |
|
|
|
/* |
|
* Display a message so it is apparent that this is the method which stopped |
|
* execution. |
|
*/ |
|
static int |
|
exitinterpreter() |
|
{ |
|
cleanup(); |
|
if (batch == 0) |
|
return(dobeep_msg("Interpreter exited via exit command.")); |
return(FALSE); |
return(FALSE); |
} |
} |