Re: PING [PATCH] update Zero-length array documentation

2018-06-22 Thread Jeff Law
On 06/18/2018 05:00 PM, Martin Sebor wrote: > Attached is an updated patch with the additional text as > discussed below. OK with a ChangeLog entry. jeff

PING [PATCH] update Zero-length array documentation

2018-06-18 Thread Martin Sebor
Attached is an updated patch with the additional text as discussed below. Martin On 06/11/2018 03:05 PM, Martin Sebor wrote: On 06/11/2018 02:03 PM, Richard Sandiford wrote: Martin Sebor writes: On 06/11/2018 12:08 PM, Richard Sandiford wrote: Martin Sebor writes: @@ -1553,12 +1553,28 @@

Re: [PATCH] update Zero-length array documentation

2018-06-11 Thread Martin Sebor
On 06/11/2018 02:03 PM, Richard Sandiford wrote: Martin Sebor writes: On 06/11/2018 12:08 PM, Richard Sandiford wrote: Martin Sebor writes: @@ -1553,12 +1553,28 @@ struct line *thisline = (struct line *) thisline->length = this_length; @end smallexample -In ISO C90, you would have to give

Re: [PATCH] update Zero-length array documentation

2018-06-11 Thread Richard Sandiford
Martin Sebor writes: > On 06/11/2018 12:08 PM, Richard Sandiford wrote: >> Martin Sebor writes: >>> @@ -1553,12 +1553,28 @@ struct line *thisline = (struct line *) >>> thisline->length = this_length; >>> @end smallexample >>> >>> -In ISO C90, you would have to give @code{contents} a length of 1

Re: [PATCH] update Zero-length array documentation

2018-06-11 Thread Martin Sebor
On 06/11/2018 12:08 PM, Richard Sandiford wrote: Martin Sebor writes: @@ -1553,12 +1553,28 @@ struct line *thisline = (struct line *) thisline->length = this_length; @end smallexample -In ISO C90, you would have to give @code{contents} a length of 1, which -means either you waste space or co

Re: [PATCH] update Zero-length array documentation

2018-06-11 Thread Richard Sandiford
Martin Sebor writes: > @@ -1553,12 +1553,28 @@ struct line *thisline = (struct line *) > thisline->length = this_length; > @end smallexample > > -In ISO C90, you would have to give @code{contents} a length of 1, which > -means either you waste space or complicate the argument to @code{malloc}.

[PATCH] update Zero-length array documentation

2018-06-05 Thread Martin Sebor
Following the brief discussion Re: aliasing between internal zero-length-arrays and other members(*) the attached patch updates the documentation of Zero-length arrays to clarify that the only valid accesses are to those where the array is the last member of a struct. I also took the liberty to m