[PATCH 07/10] Avoid <rtems/print.h> in <rtems/rtems/ratemon.h>

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 22 05:33:44 UTC 2016



On 22/06/16 02:26, Chris Johns wrote:
> On 21/06/2016 23:57, Sebastian Huber wrote:
>> ---
>>   cpukit/rtems/include/rtems/rtems/ratemon.h | 5 +++--
>>   1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/cpukit/rtems/include/rtems/rtems/ratemon.h 
>> b/cpukit/rtems/include/rtems/rtems/ratemon.h
>> index 6e8fab6..3203eab 100644
>> --- a/cpukit/rtems/include/rtems/rtems/ratemon.h
>> +++ b/cpukit/rtems/include/rtems/rtems/ratemon.h
>> @@ -35,7 +35,8 @@
>>   #include <rtems/rtems/status.h>
>>   #include <rtems/score/thread.h>
>>   #include <rtems/score/watchdog.h>
>> -#include <rtems/print.h>
>> +
>> +struct rtems_printer;
>>
>>   #ifdef __cplusplus
>>   extern "C" {
>> @@ -362,7 +363,7 @@ void rtems_rate_monotonic_reset_all_statistics( 
>> void );
>>    *  the Manager but actually uses other services of the Manager.
>>    */
>>   void rtems_rate_monotonic_report_statistics_with_plugin(
>> -  const rtems_printer *printer
>> +  const struct rtems_printer *printer
>>   );
>>
>
> Why this way rather than the header? 

This would pull in <stdarg.h> via <rtems.h> via <rtems/rtems/ratemon.h> 
via <rtems/print.h>. I would really like to make <rtems.h> as 
independent from external header files as possible

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list