Re: ANSI requirement

[email protected] (Ævar Arnfjörð Bjarmason)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On Mon, May 31, 2010 at 12:01, H.Merijn Brand <[email protected]> wrote:

> diff --git a/INSTALL b/INSTALL
> index b0c31eb..8f09a7e 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -36,6 +36,11 @@ any prefix location by adding "-Dprefix='/some/dir'" to Configure's args.
>  To explicitly name the perl binary, use the command
>  "make install PERLNAME=myperl".
>
> +Building perl from source requires an ANSI compliant C-Compiler.
> +A minimum of C89 is required. Some features available in C99 will
> +be probed for and used when found. The perl build process does not
> +rely on anything more than C89.
> +

I vaguely recall someone mentioning that we rely on some features of C
that aren't strictly guaranteed by ANSI C, such as the the offset into
a struct being the sum of the sizeof() of the struct members that came
before in the struct.

Maybe I just dreamt that up and that's really guarenteed by ANSI, but
in case I'm not misremembering things like that should probably be
mentioned there as well.

Can anyone confirm or deny that?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.