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}.