[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#267205: libc6-dev: /usr/include/gnu/stubs.h uses non-portable whitespace

At Sat, 21 Aug 2004 09:02:10 +0200,
Falk Hueffner wrote:
> > This file uses non-portable whitespace, to wit:
> >
> > #ifdef _LIBC
> >  #error Applications may not define the macro _LIBC
> > #endif
> >
> > The leading space before the hash mark is not correct.
> >
> > # error Applications may not define the macro _LIBC
> >
> > would be better (and portable).
> >
> > This causes tools like X11's "makedepend" script to howl.  A lot.
> The C standard does not require this, nor does any cpp in the real
> world for 10 years, so IMHO you should rather fix makedepend.

Correct.  ISO C99 6.10 Preprocessing directives, Description:

	A preprocessing directive consists of a sequence of
	preprocessing tokens that begins with a # preprocessing token
	that (at the start of translation phase 4) is either the first
	character in the source file (optionally after white space
	containing no new-line characters) or that follows white space
	containing at least one new-line character, and is ended by
	the next new-line character.129)

It's not even bug.  Branden, are you OK to reassign this report to
X11, or to close it?

-- gotom

Reply to: