rts: remove old-style field designator extension (#9396)
authorAustin Seipp <austin@well-typed.com>
Wed, 19 Nov 2014 03:21:47 +0000 (21:21 -0600)
committerAustin Seipp <austin@well-typed.com>
Wed, 19 Nov 2014 23:03:04 +0000 (17:03 -0600)
Authored-by: jrp
Signed-off-by: Austin Seipp <austin@well-typed.com>
includes/rts/prof/CCS.h
rts/RetainerSet.c

index 85b03f3..74f18b8 100644 (file)
@@ -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                     \
        }};
 
 /* -----------------------------------------------------------------------------
index 1905866..234532a 100644 (file)
@@ -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 = {}
 };
 
 /* -----------------------------------------------------------------------------