bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] inttostr.h: add compile-time buffer overrun checks


From: Bruno Haible
Subject: Re: [PATCH] inttostr.h: add compile-time buffer overrun checks
Date: Mon, 25 Oct 2010 11:27:50 +0200
User-agent: KMail/1.9.9

Paul Eggert wrote:
>  * The calling code (though not gnulib) must assume support for
>    C99 compound literals.

If we go this route, then I'd be in favour of letting gnulib-tool check
that, by default, it does not include code that assumes C99. This means:
  - Modules should have an optional attribute "requires-c99",
  - gnulib-tool should, by default, give an error when such a module is used.
  - gnulib-tool should have an option --assume-c99 that silences this error.
  - gnulib-tool should have options --with/--without-c99-tests that allows
    control over whether to include unit tests that require C99 (needed
    because 'hash-tests' will require C99 but 'hash' won't).

Bruno




reply via email to

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