This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use one-dimension arrays in gen-posix-conf-vars.awk


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]