[OpenAFS-devel] problem with cpp directives in concatenation...
Derek Atkins
warlord@MIT.EDU
14 Jun 2001 13:04:29 -0400
Since when is 'printf()' allowed to be a macro? It's an ANSI-C
function.
-derek
Daniel Jacobowitz <dmj+afs@andrew.cmu.edu> writes:
> On Wed, Jun 13, 2001 at 10:29:23PM -0400, Jeffrey Hutzelman wrote:
> > It sounds to me like gcc and/or glibc is going to have to change. I'm
> > sure we're not the only ones doing this sort of thing.
>
> Never happen - they're within the letter of the law. Preprocessor
> directives are not required to work within macro expansion, and might
> even be prohibited from doing so. And anything in the standard library
> not explicitly listed otherwise is allowed to be a macro.
>
> They're not fond of making life easy for existing code, over in glibc
> land...
>
> --
> Daniel Jacobowitz Debian GNU/Linux Developer
> Monta Vista Software Debian Security Team
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available