You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Aditi Hilbert (JIRA)" <ji...@apache.org> on 2016/03/15 00:33:34 UTC
[jira] [Closed] (MYNEWT-121) sys/stats - Allow access from multiple
source files
[ https://issues.apache.org/jira/browse/MYNEWT-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aditi Hilbert closed MYNEWT-121.
--------------------------------
> 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)