Fixed unary minus on unsigned
[fw/sdcc] / src / SDCCast.h
index 735a6a937a7441b91203014955d56bb07983a424..a6ddbfb9fe3cf135119ecfcf9e1ab814a9f78124 100644 (file)
@@ -111,6 +111,7 @@ ast;
 
 /* easy access macros   */
 #define  IS_AST_OP(x)                  (x && x->type == EX_OP)
+#define IS_CALLOP(x)   (IS_AST_OP(x) && x->opval.op == CALL)
 #define IS_BITOR(x) (IS_AST_OP(x) && x->opval.op == '|')
 #define IS_BITAND(x) (IS_AST_OP(x) && x->opval.op == '&' && \
                      x->left && x->right )
@@ -140,6 +141,7 @@ ast;
 #define AST_VALUE(x)            (x->opval.val)
 #define AST_VALUES(x,y)        (x->values.y)
 #define AST_FOR(x,y) x->values.forVals.y
+#define  IS_AST_PARAM(x)       (IS_AST_OP(x) && x->opval.op == PARAM)
 
 #define  CAN_EVAL(x)   (     x ==  '[' || x == '.' || x == PTR_OP ||   \
              x ==  '&' || x == '|' || x == '^'    || x == '*' || \