Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2006 17:34:23 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/boot/arm/at91/inc AT91RM9200.h
Message-ID:  <200604131734.k3DHYNcj085965@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2006-04-13 17:34:23 UTC

  FreeBSD src repository

  Modified files:
    sys/boot/arm/at91/inc AT91RM9200.h 
  Log:
  Merge from p4:
  
  Many places used #define FOO ((unsigned int) 0x23) where a simpler
  #define FOO 0x23u would have sufficed.  This practice is overly
  verbose and has the disadvantage that you can't say
  
          #if FOO == BAR
          #endif
  
  because the extra "unsigned int" tokens choke cpp's little brain.
  Migrate to the latter style to allow use in preprocessor statements.
  The two are the same semantically anyway in a C context (at least for
  the uses they are put to presently, C gurus can explain to me how they
  differ).
  
  Revision  Changes      Path
  1.2       +1084 -1084  src/sys/boot/arm/at91/inc/AT91RM9200.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604131734.k3DHYNcj085965>