Re: c99 support

2018-06-29 Thread Hans Åberg
> On 29 Jun 2018, at 17:35, Chris Vine wrote: > > On Fri, 29 Jun 2018 12:34:07 +0200 > Hans Åberg wrote: >>> If, say, uint8_t is available in stdint.h for C, it >>> will be available for C++. §21.4.1/2 of C++17 makes this even more >>> explicit: "The [cstdint] header defines all types and mac

Re: c99 support

2018-06-29 Thread Chris Vine
On Fri, 29 Jun 2018 12:34:07 +0200 Hans Åberg wrote: > > On 29 Jun 2018, at 12:10, Chris Vine wrote: > > > >> For C++, these are only optional, cf. [1], as they require no padding. So > >> an alternative is to typedef the obligatory int_fast<2^k>_t types, perhaps > >> leaving the API unchanged

Re: c99 support

2018-06-29 Thread Hans Åberg
> On 29 Jun 2018, at 12:10, Chris Vine wrote: > >> For C++, these are only optional, cf. [1], as they require no padding. So an >> alternative is to typedef the obligatory int_fast<2^k>_t types, perhaps >> leaving the API unchanged. >> >> 1. https://en.cppreference.com/w/cpp/types/integer >

Re: c99 support

2018-06-29 Thread Chris Vine
On Fri, 29 Jun 2018 10:39:33 +0200 Hans Åberg wrote: > > On 29 Jun 2018, at 09:39, Andy Wingo wrote: > > > > It would seem that the first four > > features of C99 are OK for all platforms that we target, with the > > following caveats: > > > > * We should avoid using C++ keywords (e.g. throw) i

Re: c99 support

2018-06-29 Thread Hans Åberg
> On 29 Jun 2018, at 09:39, Andy Wingo wrote: > > It would seem that the first four > features of C99 are OK for all platforms that we target, with the > following caveats: > > * We should avoid using C++ keywords (e.g. throw) in Guile API files. > > * We might want to avoid mixed decls and s

Re: c99 support

2018-06-29 Thread Andy Wingo
On Sat 23 Jun 2018 22:12, Andy Wingo writes: > Is there anyone who compiles Guile with a compiler that does not support > C99? If so, please give platform and compiler. > > I think my questions are limited to, in decreasing order of importance: > > * Is there any system that we target that doe

Re: c99 support

2018-06-26 Thread Alexander Nasonov
Greg Troxel wrote: > > Andy Wingo writes: > > > Is there anyone who compiles Guile with a compiler that does not support > > C99? If so, please give platform and compiler. > > Not really the question you asked, and pretty fuzzy, but an anecdote > about a real situation I am aware of: > > In

Re: c99 support

2018-06-25 Thread Greg Troxel
Andy Wingo writes: > Is there anyone who compiles Guile with a compiler that does not support > C99? If so, please give platform and compiler. Not really the question you asked, and pretty fuzzy, but an anecdote about a real situation I am aware of: In 2015--2016, there was some C code that

Re: c99 support

2018-06-24 Thread Jan Nieuwenhuizen
Andy Wingo writes: > Is there anyone who compiles Guile with a compiler that does not support > C99? If so, please give platform and compiler. As you probably know, I'm currently looking into bootstrapping GuixSD from source. I'd like to see Guile become more bootstrappable, i.e., less C code a

Re: c99 support

2018-06-23 Thread Eli Zaretskii
> From: Andy Wingo > Cc: guile-us...@gnu.org, guile-devel@gnu.org > Date: Sat, 23 Jun 2018 22:07:24 +0200 > > > MS-Windows (MinGW) doesn't have a C99 compliant C library, although > > quite a few of what's needed is present. > > Hard to say :) I think my questions are limited to, in decreasing

Re: c99 support

2018-06-23 Thread Andy Wingo
On Sat 23 Jun 2018 21:23, Eli Zaretskii writes: >> From: Andy Wingo >> Date: Sat, 23 Jun 2018 21:11:29 +0200 >> Cc: guile-devel@gnu.org >> >> Is there anyone who compiles Guile with a compiler that does not support >> C99? If so, please give platform and compiler. > > You mean C99 compiler or

Re: c99 support

2018-06-23 Thread Eli Zaretskii
> From: Andy Wingo > Date: Sat, 23 Jun 2018 21:11:29 +0200 > Cc: guile-devel@gnu.org > > Is there anyone who compiles Guile with a compiler that does not support > C99? If so, please give platform and compiler. You mean C99 compiler or C99 C run-time library? Or both? MS-Windows (MinGW) doesn

c99 support

2018-06-23 Thread Andy Wingo
Hi, Is there anyone who compiles Guile with a compiler that does not support C99? If so, please give platform and compiler. Thanks, Andy