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