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