📄 tifget.ed
字号:
# @(#)tifget.ed 1.1 92/07/30 SMI; from S5R3.1 1.6H!rm -f tifget.c0a#ifndef lintstatic char sccsid[] = "@(#)tifget.ed 1.1 92/07/30 SMI"; /* from S5R3.1 1.6 */#endif/* * Routines to retrieve a value based on the short terminfo name. * This file is created from tifget.ed. DO NOT EDIT ME! */#include "curses_inc.h"/* generated by sort on caps */static short booloffsets[] = {.!sed -e '1,/^--- begin bool/d' -e '/^#/,$d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp.r !cat ./tmp/tifget.tmp.a };/* generated by sort on caps */static short numoffsets[] = {.!sed -e '1,/^--- begin num/d' -e '/^#/,$d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp.r !cat ./tmp/tifget.tmp.a };/* generated by sort on caps */static short stroffsets[] = {.!sed -e '1,/^--- begin str/d' -e '/^#/,$d' < caps | awk '{printf "\t/* \%s */\t\%d,\n", $1, i++}' | sort > ./tmp/tifget.tmp.r !cat ./tmp/tifget.tmp!rm ./tmp/tifget.tmp.a };/* * Return the value of the long-named boolean capability tistr. * Return -1 if the name is not a boolean capability. */tifgetflag(tistr)register char *tistr;{ int offset; char *bool_array = (char *) cur_bools; return (((offset = _tcsearch(tistr, booloffsets, boolfnames, _NUMELEMENTS(booloffsets), 0)) == -1) ? -1 : bool_array[offset]);}/* * Return the value of the long-named numeric capability tistr. * Return -2 if the name is not a numeric capability. */tifgetnum(tistr)register char *tistr;{ int offset; short *num_array = (short *) cur_nums; return (((offset = _tcsearch(tistr, numoffsets, numfnames, _NUMELEMENTS(numoffsets), 0)) == -1) ? -2 : num_array[offset]);}/* * Return the value of the long-named string capability tistr. * Return (char *) -1 if the name is not a string capability. */char *tifgetstr(tistr)register char *tistr;{ int offset; char **str_array = (char **) cur_strs; return (((offset = _tcsearch(tistr, stroffsets, strfnames, _NUMELEMENTS(stroffsets), 0)) == -1) ? (char *) -1 : str_array[offset]);}.0r copyright.h/SMI/dw tifget.cq
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -