[RTEMS Project] #2128: [Patch] io.h: Use uint32_t and co. instead of "unsigned int"

RTEMS trac trac at rtems.org
Mon Nov 24 00:36:47 UTC 2014


#2128: [Patch] io.h: Use uint32_t and co. instead of "unsigned int"
--------------------------+----------------------------
 Reporter:  nick.withers  |       Owner:  joel.sherrill
     Type:  defect        |      Status:  new
 Priority:  normal        |   Milestone:  4.11
Component:  cpukit        |     Version:  HEAD
 Severity:  trivial       |  Resolution:
 Keywords:                |
--------------------------+----------------------------

Comment (by nick.withers):

 Hi Joel, thanks for taking the time!

 The argument here is philosophical, I suppose. The methods in question
 operate on fixed-width data types by their nature, so fixed width data
 type parameters and returns would seem appropriate to me.

 That said, these methods are PowerPC-specific where presumably for RTEMS-
 supported BSPs unsigned int is always uint32_t, unsigned short uint16_t,
 etc. and so there isn't really a problem, strictly speaking. I'd argue
 they should, if present at all, be more generic and therefore would have
 to use the fixed-width types or be macros, but that's another debate.

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


More information about the bugs mailing list