Christopher Collins created MYNEWT-121: ------------------------------------------
Summary: sys/stats - Allow access from multiple source files Key: MYNEWT-121 URL: https://issues.apache.org/jira/browse/MYNEWT-121 Project: Mynewt Issue Type: Improvement Components: Misc Reporter: Christopher Collins Assignee: Christopher Collins Fix For: v0_8_0_beta2 1. The STATS_SECT_START and STATS_SECT_END macros just define a struct; they don't create an instance. Generally, these macros would be used in a header file so that source files can have access to the struct definition. 2. The addition of a STATS_SECT_DECL macro. This macro would be used in two places: * In source files to instantiate a stats struct. * In header files to expose an extern declaration of a stats instance. 3. As a consequence of the above two points: the names of struct instances are no longer auto-generated. The user needs to specify the exact name. All macros which derive the instance name from the struct name are changed: now they just accept the instance name directly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)