Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2001 03:23:03 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mark Murray <mark@grondar.za>
Cc:        <audit@FreeBSD.ORG>
Subject:   Re: WARNS=2 cleanup for lex and yacc 
Message-ID:  <20010915031508.C20847-100000@delplex.bde.org>
In-Reply-To: <200109141454.f8EEsPu95327@grimreaper.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Sep 2001, Mark Murray wrote:

> > Lex is gnu flex so it shouldn't be maintained by FreeBSD.
>
> Damn. :-(. OK. What lex(1) did CSRG originally use?

Lite2, at least, seems to have only contrib/flex-2.5.2.

> > > Index: yacc/main.c
> > > ===================================================================
> > > RCS file: /home/ncvs/src/usr.bin/yacc/main.c,v
> > > retrieving revision 1.12
> > > diff -u -d -r1.12 main.c
> > > --- yacc/main.c	10 Jan 2000 20:26:24 -0000	1.12
> > > +++ yacc/main.c	12 Sep 2001 14:40:50 -0000
> > > @@ -60,9 +60,9 @@
> > >  char tflag;
> > >  char vflag;
> > >
> > > -char *symbol_prefix;
> > > -char *file_prefix = "y";
> > > -char *temp_form = "yacc.XXXXXXXXXXX";
> > > +const char *symbol_prefix;
> > > +const char *file_prefix = "y";
> > > +const char *temp_form = "yacc.XXXXXXXXXXX";
> >
> > Use an array for things like this.
>
> I wish I could :-(. These pointers have something else assigned to them
> later.

Oops.  Make that "This pointer" (temp_form).

Bruce


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




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