[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regression with declare -i and arrays

From: Chet Ramey
Subject: Re: Regression with declare -i and arrays
Date: Mon, 06 Apr 2015 22:33:36 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 4/3/15 10:48 PM, Eduardo A. Bustamante López wrote:

> -#define NEXT_VARIABLE() free (name); list = list->next; continue
> +#define NEXT_VARIABLE() do { free (name); list = list->next; continue; } 
> while(0)

That won't work; adding the do {...} while (0) negates the continue in the
code block.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]