2021-08-11 17:02:19 +08:00
|
|
|
/* eval.h -- variables and operands evaluation */
|
2013-05-20 13:16:08 +08:00
|
|
|
#ifndef _EVAL_H_
|
2021-08-13 11:06:58 +08:00
|
|
|
#define _EVAL_H_
|
2013-05-20 13:16:08 +08:00
|
|
|
|
2021-08-11 17:02:19 +08:00
|
|
|
#include "names.h"
|
2013-10-08 10:20:01 +08:00
|
|
|
|
2021-08-11 17:02:19 +08:00
|
|
|
#define DEBUGM 1 /* $debug triggers macro debugging */
|
2021-08-13 11:06:58 +08:00
|
|
|
#if DEBUGM
|
|
|
|
int mdbugout( char *fmt, ...) ;
|
|
|
|
#endif
|
2015-01-15 14:36:19 +08:00
|
|
|
|
2021-08-11 17:02:19 +08:00
|
|
|
extern int macbug ; /* macro debuging flag */
|
|
|
|
extern int cmdstatus ; /* last command status */
|
|
|
|
extern int rval ; /* return value of a subprocess */
|
2021-08-24 12:17:40 +08:00
|
|
|
extern unsigned envram ; /* # of bytes current in use by malloc */
|
2013-10-09 14:38:55 +08:00
|
|
|
|
2015-01-10 16:23:19 +08:00
|
|
|
int readfirst_f( void) ;
|
2015-01-09 17:53:29 +08:00
|
|
|
int is_it_cmd( char *token) ;
|
2013-09-23 21:30:31 +08:00
|
|
|
|
2013-05-20 13:16:08 +08:00
|
|
|
void varinit( void) ;
|
2021-07-19 16:36:14 +08:00
|
|
|
const char *getval( char *token) ;
|
2013-05-20 13:16:08 +08:00
|
|
|
int stol( char *val) ;
|
|
|
|
char *mklower( char *str) ;
|
|
|
|
|
2021-08-11 17:02:19 +08:00
|
|
|
/* Bindable functions */
|
|
|
|
TBINDABLE( clrmes) ;
|
2021-08-13 11:06:58 +08:00
|
|
|
BINDABLE( setvar) ;
|
|
|
|
BINDABLE( writemsg) ;
|
2015-02-13 17:46:42 +08:00
|
|
|
|
2013-05-20 13:16:08 +08:00
|
|
|
#endif
|
2021-08-11 17:02:19 +08:00
|
|
|
/* end of eval.h */
|