[gnutls-devel] GnuTLS | remove autogen dependency (!1506)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Jan 13 19:37:20 CET 2022
Alexander Sosedkin commented on a discussion on src/gen-getopt.py: https://gitlab.com/gnutls/gnutls/-/merge_requests/1506#note_810032768
> +{INDENT*6}{{
> +{INDENT*7}error (EXIT_FAILURE, 0, "unable to allocate memory for %s",
> +{INDENT*7} "{long_opt}");
> +{INDENT*6}}}
> +{INDENT*5}opts->list.{lower_opt}.args = tmp;
> +{INDENT*5}opts->list.{lower_opt}.args[opts->list.{lower_opt}.count] = optarg;
> +{INDENT*5}opts->list.{lower_opt}.count = new_count;
> +{INDENT*4}}}
> +''')
> + else:
> + switch_cases.write(
> + f'{INDENT*4}opts->arg.{lower_opt} = optarg;\n'
> + )
> + if arg_type == 'number':
> + switch_cases.write(
> + f'{INDENT*4}opts->value.{lower_opt} = atoi(optarg);\n'
Not that I think somebody would've missed octals, but thumbs up for `strtol` and not falling back to zero at the first chance.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1506#note_810032768
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20220113/726990b8/attachment-0001.html>
More information about the Gnutls-devel
mailing list