X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2FSDCCast.h;h=d46ad5f18c9076023ae5d1c96c556625bc9f39ad;hb=67613b6eceb41c8a242c2556a0f59311adb0b388;hp=5546f10702ddc8d77e2d479d2d4b6f76dde50020;hpb=c4e2d5daae13c63de360bc8b9a60a0667b8c536a;p=fw%2Fsdcc diff --git a/src/SDCCast.h b/src/SDCCast.h index 5546f107..d46ad5f1 100644 --- a/src/SDCCast.h +++ b/src/SDCCast.h @@ -170,16 +170,6 @@ ast; x == AND_ASSIGN || x == OR_ASSIGN || x == INC_OP || x == DEC_OP) #define IS_DEREF_OP(x) (( x->opval.op == '*' && x->right == NULL) || x->opval.op == '.') -typedef enum -{ - RESULT_TYPE_NONE = 0, - RESULT_CHECK = 0, /* TODO: replace all occurences with the appropriate type and remove me */ - RESULT_TYPE_BIT, - RESULT_TYPE_CHAR, - RESULT_TYPE_INT, - RESULT_TYPE_OTHER -} RESULT_TYPE; - /* forward declarations for global variables */ extern ast *staticAutos; extern FILE *codeOutFile; @@ -223,6 +213,7 @@ void addSymToBlock (symbol *, ast *); void freeStringSymbol(symbol *); DEFSETFUNC(resetParmKey); int astErrors(ast *); +RESULT_TYPE getResultTypeFromType (sym_link *); // exported variables extern set *operKeyReset;