/* $Id: act.h,v 1.6 2003/09/28 09:05:15 jmuelmen Exp $ */ /* This contains the headers for shell actions */ #ifndef _MOD_ACT_INC_ #define _MOD_ACT_INC_ #include "parse.h" /* conversion */ void conv_int (int *, const value_t *); void conv_string (char *, const value_t *); void conv_float (double *, const value_t *); void conv_time (time_t *, const value_t *); /* multiplication, addition */ void multiply (value_t *, value_t **, int); void divide (value_t *, value_t **, int); void modulus (value_t *, value_t **, int); void add (value_t *, value_t **, int); void subtract (value_t *, value_t **, int); /* typechecks for multiplication, addition */ int typecheck_multiply (value_t *, value_t **, int); int typecheck_divide (value_t *, value_t **, int); int typecheck_modulus (value_t *, value_t **, int); int typecheck_add (value_t *, value_t **, int); int typecheck_subtract (value_t *, value_t **, int); /* relation */ void less (value_t *, value_t **, int); void greater (value_t *, value_t **, int); void less_eq (value_t *, value_t **, int); void greater_eq (value_t *, value_t **, int); /* relation typechecks */ int typecheck_less (value_t *, value_t **, int); int typecheck_greater (value_t *, value_t **, int); int typecheck_less_eq (value_t *, value_t **, int); int typecheck_greater_eq(value_t *, value_t **, int); /* equality */ void equal (value_t *, value_t **, int); void not_equal (value_t *, value_t **, int); /* equality typechecks */ int typecheck_equal (value_t *, value_t **, int); int typecheck_not_equal (value_t *, value_t **, int); /* assignment */ void assign (value_t *, value_t **, int); void mul_assign (value_t *, value_t **, int); void div_assign (value_t *, value_t **, int); void mod_assign (value_t *, value_t **, int); void add_assign (value_t *, value_t **, int); void sub_assign (value_t *, value_t **, int); void and_assign (value_t *, value_t **, int); void xor_assign (value_t *, value_t **, int); void or_assign (value_t *, value_t **, int); /* increment, decrement --- prefix and postfix */ void inc_pre (value_t *, value_t **, int); void dec_pre (value_t *, value_t **, int); void inc_post (value_t *, value_t **, int); void dec_post (value_t *, value_t **, int); /* increment, decrement typechecks */ int typecheck_inc_pre (value_t *, value_t **, int); int typecheck_dec_pre (value_t *, value_t **, int); int typecheck_inc_post (value_t *, value_t **, int); int typecheck_dec_post (value_t *, value_t **, int); /* fetch the value of an identifier */ void fetch_ident (value_t *, value_t **, int); #endif /* _MOD_ACT_INC_ */