From 860ffb0a4365bba62cbd692392375df9fd4a72e7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 5 Jan 2014 22:34:09 +0200 Subject: Convert many object types structs to use C99 tagged initializer syntax. --- py/objfun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py/objfun.c') diff --git a/py/objfun.c b/py/objfun.c index 22b82a9ca..2d81f8f5c 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -76,7 +76,7 @@ const mp_obj_type_t fun_native_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - { // method list + .methods = { {NULL, NULL}, // end-of-list sentinel }, }; @@ -169,7 +169,7 @@ const mp_obj_type_t fun_bc_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - { // method list + .methods = { {NULL, NULL}, // end-of-list sentinel }, }; @@ -283,7 +283,7 @@ static const mp_obj_type_t fun_asm_type = { NULL, // binary_op NULL, // getiter NULL, // iternext - { // method list + .methods = { {NULL, NULL}, // end-of-list sentinel }, }; -- cgit v1.2.3