Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2002 21:40:43 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/ppp bundle.c ccp.c command.c datalink.c filter.c hdlc.c iface.c ipcp.c ipv6cp.c lcp.c link.c main.c mbuf.c  mp.c nat_cmd.c ncp.c physical.c prompt.h radius.c ro
Message-ID:  <200208280440.g7S4ehj41931@arch20m.dellroad.org>
In-Reply-To: <20020828130240.P2884-100000@gamplex.bde.org> "from Bruce Evans at Aug 28, 2002 01:20:47 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans writes:
> >   Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
> 
> This is hardly cleaner.  Now almost every .c file has to include <stdarg.h>
> to support a detail in prompt.h, despite only 2 .c files actually using that
> detail.  Those 2 already included <stdarg.h>.

But this is the way of C programming. I've lamented this same fact
many times in the past, but it's unavoidable unless you want to
put the "#include <stdarg.h>" inside prompt.h, which is a practice
generally frowned upon. If only C were Java... :-)

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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