RTEMS | Reformat cpukit rtems src (!237)

Chris Johns (@chris) gitlab at rtems.org
Tue Sep 24 01:15:25 UTC 2024




Chris Johns started a new discussion on cpukit/rtems/src/clockgettod.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112483

 > -#define RTEMS_SECS_PER_HOUR   (RTEMS_SECS_PER_MINUTE * RTEMS_MINUTE_PER_HOUR)
 > -#define RTEMS_HOURS_PER_DAY   (24UL)
 > -#define RTEMS_SECS_PER_DAY    (RTEMS_SECS_PER_HOUR * RTEMS_HOURS_PER_DAY)
 > -#define RTEMS_DAYS_PER_YEAR   (365UL)
 > -#define RTEMS_YEAR_BASE       (1970UL)
 > -
 > -static bool _Leap_year(
 > -  uint32_t year
 > -)
 > +#define RTEMS_SECS_PER_MINUTE ( 60UL )
 > +#define RTEMS_MINUTE_PER_HOUR ( 60UL )
 > +#define RTEMS_SECS_PER_HOUR ( RTEMS_SECS_PER_MINUTE * RTEMS_MINUTE_PER_HOUR )
 > +#define RTEMS_HOURS_PER_DAY ( 24UL )
 > +#define RTEMS_SECS_PER_DAY ( RTEMS_SECS_PER_HOUR * RTEMS_HOURS_PER_DAY )
 > +#define RTEMS_DAYS_PER_YEAR ( 365UL )
 > +#define RTEMS_YEAR_BASE ( 1970UL )

The  alignment on the macros help view and check but not a big issue.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112483
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240924/e66a01aa/attachment-0001.htm>


More information about the bugs mailing list