6811333 Remove prom_printf() message in emlxs driver
[opensolaris.git] / usr / src / lib / libcurses / screen / tifget.ed
blob089998bf51a28439e970b257d08e90a77d45ed06
2 !rm -f tifget.c
3 0a
4 #pragma ident   "%Z%%M% %I%     %E% SMI"
6 /*
7  * Routines to retrieve a value based on the short terminfo name.
8  * This file is created from tifget.ed. DO NOT EDIT ME!
9  */
11 #include        <sys/types.h>
12 #include        "curses_inc.h"
14 /* generated by sort on caps */
15 static  short   booloffsets[] =
16                 {
18 !sed -e '1,/^--- begin bool/d' -e '/^--- end bool/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp
19 .r !cat ./tmp/tifget.tmp
21                 };
23 /* generated by sort on caps */
24 static  short   numoffsets[] =
25                 {
27 !sed -e '1,/^--- begin num/d' -e '/^--- end num/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp
28 .r !cat ./tmp/tifget.tmp
30                 };
32 /* generated by sort on caps */
33 static  short   stroffsets[] =
34                 {
36 !sed -e '1,/^--- begin str/d' -e '/^--- end str/,$d' -e '/^#/d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp
37 .r !cat ./tmp/tifget.tmp
38 !rm ./tmp/tifget.tmp
40                 };
43  *  Return the value of the long-named boolean capability tistr.
44  *  Return -1 if the name is not a boolean capability.
45  */
47 int
48 tifgetflag(char *tistr)
50         int     offset;
51         char    *bool_array = (char *) cur_bools;
53         return (((offset = _tcsearch(tistr, booloffsets, boolfnames,
54             _NUMELEMENTS(booloffsets), 0)) == -1) ? -1 : bool_array[offset]);
58  *  Return the value of the long-named numeric capability tistr.
59  *  Return -2 if the name is not a numeric capability.
60  */
62 int
63 tifgetnum(char *tistr)
65         int     offset;
66         short   *num_array = (short *) cur_nums;
68         return (((offset = _tcsearch(tistr, numoffsets, numfnames,
69             _NUMELEMENTS(numoffsets), 0)) == -1) ? -2 : num_array[offset]);
73  *  Return the value of the long-named string capability tistr.
74  *  Return (char *) -1 if the name is not a string capability.
75  */
77 char    *
78 tifgetstr(char *tistr)
80         int     offset;
81         char    **str_array = (char **) cur_strs;
83         return (((offset = _tcsearch(tistr, stroffsets, strfnames,
84             _NUMELEMENTS(stroffsets), 0)) == -1) ? (char *) -1 :
85             str_array[offset]);
88 0r copyright.h
89 1,.g/#pragma ident/d
90 w tifget.c