[RTEMS Project] #2559: Delete the EXTERN pattern

RTEMS trac trac at rtems.org
Thu Apr 30 22:06:27 UTC 2020


#2559: Delete the EXTERN pattern
-----------------------------+------------------------------
 Reporter:  Sebastian Huber  |       Owner:  Sebastian Huber
     Type:  enhancement      |      Status:  closed
 Priority:  normal           |   Milestone:  5.1
Component:  score            |     Version:  5
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |  Blocked By:
 Blocking:                   |
-----------------------------+------------------------------
Description changed by Joel Sherrill:

Old description:

> Change the following pattern:
>
> some.h:
> {{{
> #ifndef SOME_XYZ_EXTERN
> #define SOME_XYZ_EXTERN extern
> #endif
> SOME_XYZ_EXTERN type xyz;
> }}}
>
> some_xyz.c:
> {{{
> #define SOME_XYZ_EXTERN
> #include <some.h>
> }}}
>
> into:
>
> some.h:
> {{{
> extern type xyz;
> }}}
>
> some_xyz.c:
> {{{
> #include <some.h>
> type xyz;
> }}}
>
> See discussion:
>
> https://lists.rtems.org/pipermail/devel/2016-January/013506.html
>
> Update Developer/Coding/Conventions accordingly.

New description:

 Change the following pattern:

 some.h:
 {{{
 #ifndef SOME_XYZ_EXTERN
 #define SOME_XYZ_EXTERN extern
 #endif
 SOME_XYZ_EXTERN type xyz;
 }}}

 some_xyz.c:
 {{{
 #define SOME_XYZ_EXTERN
 #include <some.h>
 }}}

 into:

 some.h:
 {{{
 extern type xyz;
 }}}

 some_xyz.c:
 {{{
 #include <some.h>
 type xyz;
 }}}

 See discussion:

 https://lists.rtems.org/pipermail/devel/2016-January/013506.html

 Update Developer Coding Conventions accordingly.

--

--
Ticket URL: <http://devel.rtems.org/ticket/2559#comment:19>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list