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