svn commit: r310138 - head/lib/libc/stdio

Jilles Tjoelker jilles at stack.nl
Wed Dec 21 22:02:23 UTC 2016


On Tue, Dec 20, 2016 at 06:04:31PM -0800, Conrad Meyer wrote:
> On Tue, Dec 20, 2016 at 5:56 PM, Adrian Chadd <adrian.chadd at gmail.com> wrote:
> > Here's my reason for removal.

> > Plenty of us are looking to be able to build bits of the BSD source
> > tree as part of other non FreeBSD systems, especially if they're
> > involved in bootstrapping.

> Understood, however:

> > That means that it needs to be compilable
> > by a non-FreeBSD-modified compiler. Ideally this means we'd stick to
> > mostly POSIX options source code that we can compile with unmodified
> > compilers, and we push non-standard stuff into otherly-named
> > functions.

> Yeah, this isn't actually a problem.  printf("%b", foo) compiles fine
> with non-modified compilers.

It compiles only if you disable format string warnings that should not
be disabled for any serious software development, in my humble opinion.
It will build, but not in a way I can call "fine".

This indeed makes it very hard to justify extensions to format strings.
Special formatting will need to use new functions.

-- 
Jilles Tjoelker


More information about the svn-src-head mailing list