[Gllug] compiling 2.5 kernels
Nix
nix at esperi.demon.co.uk
Thu Apr 18 19:36:41 UTC 2002
On Thu, 18 Apr 2002, Dave Jones uttered the following:
> AFAICR, concatenation of such things is deprecated in the C99 standard.
This is because __func__ is an identifier in C99 doing pretty much what
the __FUNCTION__ macro always did in GCC; so, to encourage people to
change their code so it can change to use __func__ in due course, and to
avoid duplicating code in cpplib and GCC proper, *and* because it's
really bloody ugly to work out what function you're in from the
preprocessor, especially when you're passing token streams around and
can't engage in the `pass magic to the compiler' tricks that cccp used
to do...
... well, given all of that, moving it to the parsing stage (and turning
it into a variable from a macro) just seemed like the Right Thing to do.
> unfortunatly it was one of those special development meetings that
> tend to happen in pubs. *hic*
Everything's so *clear* while you're discussing it...
... it's a shame they don't have computers in pubs, so you can implement
it there too. Actually it's probably a good thing; it would bring a new
meaning to morning-after embarrassment when you woke up and saw your
code in the cold light of morning :)
--
`Unless they've moved it since I last checked, travelling between
England and America does not involve crossing the equator.'
--- pir
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list