From owner-cvs-src@FreeBSD.ORG Thu Jan 4 04:18:04 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23B5816A412; Thu, 4 Jan 2007 04:18:04 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id F195D13C43E; Thu, 4 Jan 2007 04:18:03 +0000 (UTC) (envelope-from rodrigc@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l044I3T5062092; Thu, 4 Jan 2007 04:18:03 GMT (envelope-from rodrigc@repoman.freebsd.org) Received: (from rodrigc@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l044I3YQ062091; Thu, 4 Jan 2007 04:18:03 GMT (envelope-from rodrigc) Message-Id: <200701040418.l044I3YQ062091@repoman.freebsd.org> From: Craig Rodrigues Date: Thu, 4 Jan 2007 04:18:03 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/kdump mksubr X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jan 2007 04:18:04 -0000 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