Re: Don't Plan 9 C compiler initialize the rest of member of a?struct?
Charles Forsyth <[email protected]>
| Newsgroups | gmane.os.plan9.general |
|---|---|
| Message-ID | <CAOw7k5gH98yGhE+BtCCB8eDBbzRhgSD=R6bevJt1V3uRNrmkmA@mail.gmail.com> |
covered and covered1 On Tue, 2 Apr 2019 at 17:26, Anthony Martin <[email protected]> wrote: > Charles Forsyth <[email protected]> once said: > > I didn't look at the code closely enough earlier, but remembered > something > > from years ago this morning. It's a bug. It isn't platform specific. > > There is an existing fix in 9front (I think it came from there) but it's > > horrible. Still, better a horrible fix than buggy code, so I'll apply it > to > > the 9legacy version as well. > > It's in /sys/src/cmd/cc/dcl.c:/^contig > > What was horrible about the fix? > > Anthony > >