From fanf@dotat.at  Thu Apr 25 07:29:10 2002
Return-Path: <fanf@dotat.at>
Received: from hand.dotat.at (host217-39-16-172.in-addr.btopenworld.com [217.39.16.172])
	by hub.freebsd.org (Postfix) with ESMTP id C69F937B429
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 25 Apr 2002 07:29:08 -0700 (PDT)
Received: from fanf by hand.dotat.at with local (Exim 3.35 #1)
	id 170kF3-000FKj-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 25 Apr 2002 14:29:01 +0000
Message-Id: <E170kF3-000FKj-00@hand.dotat.at>
Date: Thu, 25 Apr 2002 14:29:01 +0000
From: Tony Finch <dot@dotat.at>
Reply-To: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] increase unifdef table size
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37454
>Category:       bin
>Synopsis:       [PATCH] increase unifdef table size
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    fanf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 25 07:30:01 PDT 2002
>Closed-Date:    Fri Jun 21 13:53:32 PDT 2002
>Last-Modified:  Fri Jun 21 13:53:32 PDT 2002
>Originator:     Tony Finch
>Release:        FreeBSD 4.5-STABLE-20020312 i386
>Organization:
dotat labs
>Environment:
System: FreeBSD hand.dotat.at 4.5-STABLE-20020312 FreeBSD 4.5-STABLE-20020312 #19: Tue Mar 12 13:45:49 GMT 2002 fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/SHARP i386
>Description:

unifdef's limit of 100 symbols is far too small.

>How-To-Repeat:
>Fix:

--- unifdef.c	30 Jul 2001 10:16:48 -0000	1.4.2.1
+++ unifdef.c	25 Apr 2002 14:25:48 -0000
@@ -82,7 +82,7 @@
 char lnblank BSS;       /* -l option in effect: blank deleted lines */
 char complement BSS;    /* -c option in effect: complement the operation */
 
-#define MAXSYMS 100
+#define MAXSYMS 1000
 char *symname[MAXSYMS] BSS; /* symbol name */
 char true[MAXSYMS] BSS;     /* -Dsym */
 char ignore[MAXSYMS] BSS;   /* -iDsym or -iUsym */

>Release-Note:
>Audit-Trail:

From: Tony Finch <dot@dotat.at>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/37454: [PATCH] increase unifdef table size
Date: Fri, 26 Apr 2002 22:54:33 +0100

 Actually, that patch isn't complete since the symbol count variable
 is too small to count up to 1000. A much better version of unifdef
 is available from http://dotat.at/prog/misc/unifdef.c with a
 manual page at http://dotat.at/prog/misc/unifdef.1
State-Changed-From-To: open->patched 
State-Changed-By: fanf 
State-Changed-When: Wed May 15 09:52:30 PDT 2002 
State-Changed-Why:  
New unifdef committed; will be MFCed after 4.6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37454 
Responsible-Changed-From-To: freebsd-bugs->fanf 
Responsible-Changed-By: fanf 
Responsible-Changed-When: Wed May 15 09:57:55 PDT 2002 
Responsible-Changed-Why:  
I should have stuck my name here earlier... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37454 
State-Changed-From-To: patched->closed 
State-Changed-By: fanf 
State-Changed-When: Fri Jun 21 13:53:11 PDT 2002 
State-Changed-Why:  
New version of unifdef MFCed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37454 
>Unformatted:
