tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rfc: C99 style of the uintN_t types



Hello.

I've looked to the share/misc/style and observed recommended style for
C99 unsigned fixed width types.

The statistics is:

andy@FITFIESPPC176:~/prj/netbsd/netbsd-current/sys/arch$ grep -nr
'uint[0-9][0-9]*_t' . | wc
  13797   70149  952032
andy@FITFIESPPC176:~/prj/netbsd/netbsd-current/sys/arch$ grep -nr
'u_int[0-9][0-9]*_t' . | wc
   7599   39636  543598


Proposal is to fix current code base to recommended style accordingly.
The simple script can do it, f.e. for sys/arch:
  find sys/arch -type f | grep -vw CVS | xargs perl -pi -e
's,u_(int\d+_t),u$1,g'

Actually I tried to compile kernel for OMAP2/H4 with those changes and it's ok.

-- 
With Best Regards,
Andy Shevchenko


Home | Main Index | Thread Index | Old Index