Lines Matching +full:num +full:- +full:vectors
4 # MKtermsort.sh -- generate indirection vectors for the various sort methods
7 # Copyright 2020-2021,2022 Thomas E. Dickey #
8 # Copyright 1998-2015,2017 Free Software Foundation, Inc. #
46 AWK=${1-awk}
47 DATA=${2-../include/Caps}
50 trap 'rm -f $data; exit 1' 1 2 3 15
51 sed -e 's/[ ][ ]*/ /g' < "$DATA" >$data
56 * termsort.h --- sort order arrays for use by infocmp.
84 $3 == "num" {printf("%s\t%d\n", $2, i++);}
111 $3 == "num" {printf("%s\t%d\n", $1, i++);}
138 $3 == "num" {printf("%s\t%d\n", $4, i++);}
155 $3 == "bool" && substr($7, 1, 1) == "-" {print "\tFALSE,\t/* ", $2, " */"; count++; }
165 $3 == "num" && substr($7, 1, 1) == "-" {print "\tFALSE,\t/* ", $2, " */"; count++; }
166 $3 == "num" && substr($7, 1, 1) == "Y" {print "\tTRUE,\t/* ", $2, " */"; valid = count++; }
175 $3 == "str" && substr($7, 1, 1) == "-" {print "\tFALSE,\t/* ", $2, " */"; count++; }
186 rm -f $data