From owner-cvs-src@FreeBSD.ORG Mon Jun 30 07:46:26 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86D3537B401; Mon, 30 Jun 2003 07:46:26 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 387BA43FD7; Mon, 30 Jun 2003 07:46:26 -0700 (PDT) (envelope-from fanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5UEkQ0U024965; Mon, 30 Jun 2003 07:46:26 -0700 (PDT) (envelope-from fanf@repoman.freebsd.org) Received: (from fanf@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5UEkP6I024964; Mon, 30 Jun 2003 07:46:25 -0700 (PDT) Message-Id: <200306301446.h5UEkP6I024964@repoman.freebsd.org> From: Tony Finch Date: Mon, 30 Jun 2003 07:46:25 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/unifdef unifdef.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 30 Jun 2003 14:46:27 -0000 fanf 2003/06/30 07:46:25 PDT FreeBSD src repository Modified files: usr.bin/unifdef unifdef.c Log: Various fixes from upstream, including a bug... Fix the usage synopsis. Amend the copyright notice to reflect the fact that there's no Berkeley code left. Fix a typo in a comment, improve the descriptions of the way we use some global variables (relevant to the bug below), and note that division-by-zero has side effects so the current expression evaluator can't be trivially extended to arithmetic in its current design. Avoid hitting an abort(); /* bug */ when in "text mode" (i.e. ignoring comment state) by updating the line parser state properly. PR: 53907 Revision Changes Path 1.17 +18 -11 src/usr.bin/unifdef/unifdef.c