From: Michael Beck Date: Mon, 2 Jan 2006 15:02:49 +0000 (+0000) Subject: make defines for identical enums (firmjni build process using recoder cannot cope... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=705e7a176bee1c6feffb884b47abfad52eb80177;p=libfirm make defines for identical enums (firmjni build process using recoder cannot cope with) [r7182] --- diff --git a/ir/tr/type.h b/ir/tr/type.h index 98989dd75..3165b76cd 100644 --- a/ir/tr/type.h +++ b/ir/tr/type.h @@ -814,14 +814,18 @@ typedef enum { cc_this_call = 0x08000000, /**< The first parameter is a this pointer and is transmitted in a special way. */ - /* some often used cases */ - cc_cdecl_set = 0, /**< cdecl calling convention */ - cc_stdcall_set = cc_callee_clear_stk, /**< stdcall calling convention */ - cc_fastcall_set = cc_reg_param|cc_callee_clear_stk, /**< fastcall calling convention */ - cc_bits = (0xFF << 24) /**< the calling convention bits */ + cc_bits = (0xFF << 24) /**< the calling convention bits */ } calling_convention; +/* some often used cases: made as defines for firmjni */ +/** cdecl calling convention */ +#define cc_cdecl_set (0) +/** stdcall calling convention */ +#define cc_stdcall_set cc_callee_clear_stk +/** fastcall calling convention */ +#define cc_fastcall_set (cc_reg_param|cc_callee_clear_stk) + /** return the default calling convention for method types */ unsigned get_default_cc_mask(void);