[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: advisory locks patch
From: |
mmo9317bd |
Subject: |
Re: advisory locks patch |
Date: |
Mon, 30 Aug 2004 19:33:03 -0600 |
User-agent: |
Mutt/1.5.4i |
On Mon, Aug 30, 2004 at 10:30:08AM -0400, Derek Robert Price wrote:
> Mark D. Baushke wrote:
>
> > | ISO C99 and ISO C++ allow declarations and code to be freely mixed
> > | within compound statements. As an extension, GCC also allows this in
> > | C89 mode. For example, you could do:
> > |
> > | int i;
> > | /* ... */
> > | i++;
> > | int j = i + 2;
> > |
> > | Each identifier is visible from where it is declared until the
> > end of
> > | the enclosing block.
> >
> > However, older compilers will still have problems, so it probably is
> > better to avoid this particular kind of code if possible.
>
>
> Yes. So far, we have been deferring to GNULIB in their choice of
> compiler support and, currently, that means we assume only a
> freestanding C89 compiler, as mentioned in this thread
> <http://lists.gnu.org/archive/html/bug-cvs/2003-07/msg00174.html> and
> in the "HACKING" file. Basically, I think we agreed that assuming C99
> would not cover enough common development environments yet..
I think I've fixed the C89 problems (see latest minor update), but
don't have an easily accessable older compiler to try it on.
--
Matthew Ogilvie