Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.c.moderated > #502
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Newsgroups | comp.lang.c.moderated |
| Subject | Re: is this code alignment-kosher and strictly legal? |
| Date | 2011-02-01 16:27 -0600 |
| Organization | Dis (not Dat) Organisation |
| Message-ID | <clcm-20110201-0002@plethora.net> (permalink) |
| References | <clcm-20110120-0006@plethora.net> <clcm-20110124-0008@plethora.net> |
On 2011-01-24, Dag-Erling Smørgrav <des@des.no> wrote:
> s5n <sgbeal@googlemail.com> writes:
>> Consider this trivial struct:
>>
>> struct cson_string
>> {
>> unsigned int length;
>> };
>>
>> [bobbit pointer calisthenics]
>
> They'd save themselves a lot of trouble by changing the above to
>
> struct cson_string
> {
> unsigned int length;
> char str[];
> };
>
> but there might be systems they care about where flexible array members
> aren't supported (MSVC? When is MS going to get their sh*t together and
> implement C99?)
Probalby never. Too much work fixing the standard library. I've been
bit a couple of times when using GTK on windows because the documentation
assumes a C99 standard library (one is the function that wraps strftime)
GCC (mingw) works great for compiling windows programs, it's reportedly a bit
of a pain to install on windows, I use it (i586mingwgcc) on linux to compile
windows programs.
There's reportedly work on an open c99 standard library for windows
but I've not been following it
Microsoft gave up on C years ago, soon after they started bastardising
Java.
--
⚂⚃ 100% natural
--
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
Back to comp.lang.c.moderated | Previous | Next | Find similar
Re: is this code alignment-kosher and strictly legal? Jasen Betts <jasen@xnet.co.nz> - 2011-02-01 16:27 -0600
csiph-web