This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use one-dimension arrays in gen-posix-conf-vars.awk
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: libc-alpha at sourceware dot org, Chris Metcalf <cmetcalf at ezchip dot com>
- Date: Tue, 30 Dec 2014 19:29:53 +0100
- Subject: Re: [PATCH] Use one-dimension arrays in gen-posix-conf-vars.awk
- Authentication-results: sourceware.org; auth=none
- References: <20141230095050 dot GA22064 at Devel dot siddhesh dot in>
Siddhesh Poyarekar <siddhesh@redhat.com> writes:
> diff --git a/scripts/gen-posix-conf-vars.awk b/scripts/gen-posix-conf-vars.awk
> index 007cd74..9630b56 100644
> --- a/scripts/gen-posix-conf-vars.awk
> +++ b/scripts/gen-posix-conf-vars.awk
> @@ -42,36 +42,36 @@ $1 == "}" {
> # CONFSTR: A configuration string
> # SYSCONF: A numeric value
> # SPEC: A specification
> - sc_prefixes[prefix][$1] = sc_prefix
> - conf[prefix][$1] = type
> + c = sprintf("%s_%s", prefix, $1)
c = prefix "_" $1
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."