From 32444b759a1b4f339908f65ee8f50a21eee7d16c Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 24 Jan 2015 23:14:12 +0000 Subject: py: Don't use anonymous unions, name them instead. This makes the code (more) compatible with the C99 standard. --- py/emitglue.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'py/emitglue.h') diff --git a/py/emitglue.h b/py/emitglue.h index 6e7e72ef5..4e915df2d 100644 --- a/py/emitglue.h +++ b/py/emitglue.h @@ -39,22 +39,7 @@ typedef enum { MP_CODE_NATIVE_ASM, } mp_raw_code_kind_t; -typedef struct _mp_raw_code_t { - mp_raw_code_kind_t kind : 3; - mp_uint_t scope_flags : 7; - mp_uint_t n_pos_args : 11; - mp_uint_t n_kwonly_args : 11; - union { - struct { - byte *code; - mp_uint_t len; - } u_byte; - struct { - void *fun_data; - mp_uint_t type_sig; // for viper, compressed as 2-bit types; ret is MSB, then arg0, arg1, etc - } u_native; - }; -} mp_raw_code_t; +typedef struct _mp_raw_code_t mp_raw_code_t; mp_raw_code_t *mp_emit_glue_new_raw_code(void); -- cgit v1.2.3