cvs commit: src/usr.bin/kdump mksubr

Craig Rodrigues rodrigc at FreeBSD.org
Wed Jan 3 20:18:04 PST 2007


rodrigc     2007-01-04 04:18:03 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/kdump        mksubr 
  Log:
  Add auto_if_type() function, which is similar to auto_switch_type().
  However, auto_if_type() uses if/else statements in C instead
  of a single switch statement, when mapping an integer value to
  a #define.  For certain cases where multiple #define constants
  alias to a single integer value, auto_if_type() makes things easier
  to parse than auto_switch_type().
  
  Revision  Changes    Path
  1.6       +30 -0     src/usr.bin/kdump/mksubr


More information about the cvs-src mailing list