From 8e0a480ca655010e67a38aca9b8705ecbd0f0c97 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Tue, 18 Nov 2014 21:21:47 -0600 Subject: rts: remove old-style field designator extension (#9396) Authored-by: jrp Signed-off-by: Austin Seipp --- includes/rts/prof/CCS.h | 48 ++++++++++++++++++++++++------------------------ rts/RetainerSet.c | 10 +++++----- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/includes/rts/prof/CCS.h b/includes/rts/prof/CCS.h index 85b03f38b3..74f18b85c0 100644 --- a/includes/rts/prof/CCS.h +++ b/includes/rts/prof/CCS.h @@ -210,32 +210,32 @@ extern CostCentreStack * RTS_VAR(CCS_LIST); // registered CCS list * Declaring Cost Centres & Cost Centre Stacks. * -------------------------------------------------------------------------- */ -# define CC_DECLARE(cc_ident,name,mod,loc,caf,is_local) \ - is_local CostCentre cc_ident[1] \ - = {{ ccID : 0, \ - label : name, \ - module : mod, \ - srcloc : loc, \ - time_ticks : 0, \ - mem_alloc : 0, \ - link : 0, \ - is_caf : caf \ +# define CC_DECLARE(cc_ident,name,mod,loc,caf,is_local) \ + is_local CostCentre cc_ident[1] \ + = {{ .ccID = 0, \ + .label = name, \ + .module = mod, \ + .srcloc = loc, \ + .time_ticks = 0, \ + .mem_alloc = 0, \ + .link = 0, \ + .is_caf = caf \ }}; -# define CCS_DECLARE(ccs_ident,cc_ident,is_local) \ - is_local CostCentreStack ccs_ident[1] \ - = {{ ccsID : 0, \ - cc : cc_ident, \ - prevStack : NULL, \ - indexTable : NULL, \ - root : NULL, \ - depth : 0, \ - selected : 0, \ - scc_count : 0, \ - time_ticks : 0, \ - mem_alloc : 0, \ - inherited_ticks : 0, \ - inherited_alloc : 0 \ +# define CCS_DECLARE(ccs_ident,cc_ident,is_local) \ + is_local CostCentreStack ccs_ident[1] \ + = {{ .ccsID = 0, \ + .cc = cc_ident, \ + .prevStack = NULL, \ + .indexTable = NULL, \ + .root = NULL, \ + .depth = 0, \ + .selected = 0, \ + .scc_count = 0, \ + .time_ticks = 0, \ + .mem_alloc = 0, \ + .inherited_ticks = 0, \ + .inherited_alloc = 0 \ }}; /* ----------------------------------------------------------------------------- diff --git a/rts/RetainerSet.c b/rts/RetainerSet.c index 1905866e8a..234532a879 100644 --- a/rts/RetainerSet.c +++ b/rts/RetainerSet.c @@ -40,11 +40,11 @@ static int nextId; // id of next retainer set * from growing too large. * -------------------------------------------------------------------------- */ RetainerSet rs_MANY = { - num : 0, - hashKey : 0, - link : NULL, - id : 1, - element : {} + .num = 0, + .hashKey = 0, + .link = NULL, + .id = 1, + .element = {} }; /* ----------------------------------------------------------------------------- -- cgit v1.2.1