[RTEMS Project] #2559: Delete the EXTERN pattern

RTEMS trac trac at rtems.org
Wed Feb 3 11:51:17 UTC 2016


#2559: Delete the EXTERN pattern
-----------------------------+-----------------------------
 Reporter:  sebastian.huber  |      Owner:  sebastian.huber
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  4.12
Component:  cpukit           |    Version:  4.12
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 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>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list