bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] Re: alloca.c


From: Richard Stallman
Subject: [Bug-gnulib] Re: alloca.c
Date: Sat, 07 Dec 2002 16:27:01 -0500

    > In particular, those changed conditionals on HAVE_STRING_H
    > etc. won't work when the macro is not defined.

    I don't see why they won't work, as a macro that is not defined
    evaluates to zero in an #if.

I had forgotten about that.  Was that true in pre-ANSI C also?

      On
    older platforms that do not have size_t, config.h is supposed to
    define size_t; that is how it now works for Emacs and for other
    programs that use alloca.c.

Ok, size_t should work.  Is this convention documented anywhere?
When was it adopted?

    There seems to be another bug here, since that change is surrounded by
    "#ifndef emacs", which appears to be the opposite of what is intended.

You are right.  The version of alloca.c that was in Emacs before has the
opposite conditional.  Because the changes in the new version included
adding whitespace in lots of CPP directives, I didn't notice that
the ifdef was changing to ifndef.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]