2013-05-20 01:16:08 -04:00
|
|
|
#ifndef _EVAL_H_
|
|
|
|
#define _EVAL_H_
|
|
|
|
|
2013-10-07 22:20:01 -04:00
|
|
|
|
|
|
|
#define DEBUGM 1 /* $debug triggers macro debugging */
|
|
|
|
|
|
|
|
#if DEBUGM
|
2015-06-12 05:05:43 -04:00
|
|
|
int mdbugout( char *fmt, ...) ;
|
2013-10-07 22:20:01 -04:00
|
|
|
#endif
|
|
|
|
|
2015-01-15 01:36:19 -05:00
|
|
|
|
2013-10-08 04:24:11 -04:00
|
|
|
extern int macbug ; /* macro debuging flag */
|
|
|
|
extern int cmdstatus ; /* last command status */
|
2013-10-09 23:42:33 -04:00
|
|
|
extern int rval ; /* return value of a subprocess */
|
2013-10-09 02:38:55 -04:00
|
|
|
extern long envram ; /* # of bytes current in use by malloc */
|
|
|
|
|
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) ;
|
|
|
|
int setvar( int f, int n) ;
|
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) ;
|
|
|
|
|
2015-02-13 04:46:42 -05:00
|
|
|
int clrmes( int f, int n) ;
|
|
|
|
int writemsg( int f, int n) ;
|
|
|
|
|
2013-05-20 01:16:08 -04:00
|
|
|
#endif
|