qemu-arm
[Top][All Lists]
Advanced

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

Re: [Qemu-arm] [Qemu-devel] [RISU PATCH 04/10] risu: move optional args


From: Richard Henderson
Subject: Re: [Qemu-arm] [Qemu-devel] [RISU PATCH 04/10] risu: move optional args to each architecture
Date: Thu, 9 Nov 2017 09:13:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/07/2017 04:05 PM, Alex Bennée wrote:
> +    if (arch_long_opts) {
> +        struct option *dptr, *sptr;
> +        size_t osize = sizeof(default_longopts);
> +        lopts = malloc(osize);
> +        /* Copy default opts */
> +        memcpy(lopts, default_longopts, osize);
> +        dptr = lopts;
> +        while (dptr->name) {
> +            dptr++;
> +        }
> +        /* Copy extra opts */
> +        sptr = arch_long_opts;
> +        while (sptr->name) {
> +            osize += sizeof(struct option);
> +            lopts = realloc(lopts, osize);

Count default and arch opts first?


r~



reply via email to

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