make defines for identical enums (firmjni build process using recoder cannot cope...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jan 2006 15:02:49 +0000 (15:02 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 2 Jan 2006 15:02:49 +0000 (15:02 +0000)
[r7182]

ir/tr/type.h

index 98989dd..3165b76 100644 (file)
@@ -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);