亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? comp_hash.c

?? ncurses-5.4 需要的就來下把 一定會有用的哦
?? C
字號:
/**************************************************************************** * Copyright (c) 1998,2001,2003 Free Software Foundation, Inc.              * *                                                                          * * Permission is hereby granted, free of charge, to any person obtaining a  * * copy of this software and associated documentation files (the            * * "Software"), to deal in the Software without restriction, including      * * without limitation the rights to use, copy, modify, merge, publish,      * * distribute, distribute with modifications, sublicense, and/or sell       * * copies of the Software, and to permit persons to whom the Software is    * * furnished to do so, subject to the following conditions:                 * *                                                                          * * The above copyright notice and this permission notice shall be included  * * in all copies or substantial portions of the Software.                   * *                                                                          * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    * * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               * *                                                                          * * Except as contained in this notice, the name(s) of the above copyright   * * holders shall not be used in advertising or otherwise to promote the     * * sale, use or other dealings in this Software without prior written       * * authorization.                                                           * ****************************************************************************//**************************************************************************** *  Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995               * *     and: Eric S. Raymond <esr@snark.thyrsus.com>                         * ****************************************************************************//* *	comp_hash.c --- Routines to deal with the hashtable of capability *			names. * */#include <curses.priv.h>#include <tic.h>#include <hashsize.h>#ifdef MAIN_PROGRAM#include <ctype.h>#undef  DEBUG#define DEBUG(level, params)	/*nothing */#endifMODULE_ID("$Id: comp_hash.c,v 1.26 2003/11/08 21:58:36 tom Exp $")static int hash_function(const char *);/* *	_nc_make_hash_table() * *	Takes the entries in table[] and hashes them into hash_table[] *	by name.  There are CAPTABSIZE entries in table[] and HASHTABSIZE *	slots in hash_table[]. * */#ifdef MAIN_PROGRAM#undef MODULE_ID#define MODULE_ID(id)		/*nothing */#include <tinfo/doalloc.c>static void_nc_make_hash_table(struct name_table_entry *table,		    struct name_table_entry **hash_table){    int i;    int hashvalue;    int collisions = 0;    for (i = 0; i < CAPTABSIZE; i++) {	hashvalue = hash_function(table[i].nte_name);	if (hash_table[hashvalue] != (struct name_table_entry *) 0)	    collisions++;	if (hash_table[hashvalue] != 0)	    table[i].nte_link = (short) (hash_table[hashvalue] - table);	hash_table[hashvalue] = &table[i];    }    DEBUG(4, ("Hash table complete: %d collisions out of %d entries",	      collisions, CAPTABSIZE));}#endif/* *	int hash_function(string) * *	Computes the hashing function on the given string. * *	The current hash function is the sum of each consectutive pair *	of characters, taken as two-byte integers, mod HASHTABSIZE. * */staticinthash_function(const char *string){    long sum = 0;    DEBUG(9, ("hashing %s", string));    while (*string) {	sum += (long) (*string + (*(string + 1) << 8));	string++;    }    DEBUG(9, ("sum is %ld", sum));    return (int) (sum % HASHTABSIZE);}/* *	struct name_table_entry * *	find_entry(string) * *	Finds the entry for the given string in the hash table if present. *	Returns a pointer to the entry in the table or 0 if not found. * */#ifndef MAIN_PROGRAMNCURSES_EXPORT(struct name_table_entry const *)_nc_find_entry(const char *string, const struct name_table_entry *const *hash_table){    int hashvalue;    struct name_table_entry const *ptr;    hashvalue = hash_function(string);    if ((ptr = hash_table[hashvalue]) != 0) {	while (strcmp(ptr->nte_name, string) != 0) {	    if (ptr->nte_link < 0)		return 0;	    ptr = ptr->nte_link + hash_table[HASHTABSIZE];	}    }    return (ptr);}/* *	struct name_table_entry * *	find_type_entry(string, type, table) * *	Finds the first entry for the given name with the given type in the *	given table if present (as distinct from find_entry, which finds the *	the last entry regardless of type).  You can use this if you detect *	a name clash.  It's slower, though.  Returns a pointer to the entry *	in the table or 0 if not found. */NCURSES_EXPORT(struct name_table_entry const *)_nc_find_type_entry(const char *string, int type, const struct name_table_entry *table){    struct name_table_entry const *ptr;    for (ptr = table; ptr < table + CAPTABSIZE; ptr++) {	if (ptr->nte_type == type && strcmp(string, ptr->nte_name) == 0)	    return (ptr);    }    return ((struct name_table_entry *) NULL);}#endif#ifdef MAIN_PROGRAM/* * This filter reads from standard input a list of tab-delimited columns, * (e.g., from Caps.filtered) computes the hash-value of a specified column and * writes the hashed tables to standard output. * * By compiling the hash table at build time, we're able to make the entire * set of terminfo and termcap tables readonly (and also provide some runtime * performance enhancement). */#define MAX_COLUMNS BUFSIZ	/* this _has_ to be worst-case */static char **parse_columns(char *buffer){    static char **list;    int col = 0;    if (list == 0 && (list = typeCalloc(char *, MAX_COLUMNS)) == 0)	  return (0);    if (*buffer != '#') {	while (*buffer != '\0') {	    char *s;	    for (s = buffer; (*s != '\0') && !isspace(UChar(*s)); s++)		/*EMPTY */ ;	    if (s != buffer) {		char mark = *s;		*s = '\0';		if ((s - buffer) > 1		    && (*buffer == '"')		    && (s[-1] == '"')) {	/* strip the quotes */		    buffer++;		    s[-1] = '\0';		}		list[col] = buffer;		col++;		if (mark == '\0')		    break;		while (*++s && isspace(UChar(*s)))		    /*EMPTY */ ;		buffer = s;	    } else		break;	}    }    return col ? list : 0;}intmain(int argc, char **argv){    struct name_table_entry *name_table = typeCalloc(struct						     name_table_entry, CAPTABSIZE);    struct name_table_entry **hash_table = typeCalloc(struct name_table_entry						      *, HASHTABSIZE);    const char *root_name = "";    int column = 0;    int n;    char buffer[BUFSIZ];    static const char *typenames[] =    {"BOOLEAN", "NUMBER", "STRING"};    short BoolCount = 0;    short NumCount = 0;    short StrCount = 0;    /* The first argument is the column-number (starting with 0).     * The second is the root name of the tables to generate.     */    if (argc <= 2	|| (column = atoi(argv[1])) <= 0	|| (column >= MAX_COLUMNS)	|| *(root_name = argv[2]) == 0) {	fprintf(stderr, "usage: make_hash column root_name\n");	exit(EXIT_FAILURE);    }    /*     * Read the table into our arrays.     */    for (n = 0; (n < CAPTABSIZE) && fgets(buffer, BUFSIZ, stdin);) {	char **list, *nlp = strchr(buffer, '\n');	if (nlp)	    *nlp = '\0';	list = parse_columns(buffer);	if (list == 0)		/* blank or comment */	    continue;	name_table[n].nte_link = -1;	/* end-of-hash */	name_table[n].nte_name = strdup(list[column]);	if (!strcmp(list[2], "bool")) {	    name_table[n].nte_type = BOOLEAN;	    name_table[n].nte_index = BoolCount++;	} else if (!strcmp(list[2], "num")) {	    name_table[n].nte_type = NUMBER;	    name_table[n].nte_index = NumCount++;	} else if (!strcmp(list[2], "str")) {	    name_table[n].nte_type = STRING;	    name_table[n].nte_index = StrCount++;	} else {	    fprintf(stderr, "Unknown type: %s\n", list[2]);	    exit(EXIT_FAILURE);	}	n++;    }    _nc_make_hash_table(name_table, hash_table);    /*     * Write the compiled tables to standard output     */    printf("static struct name_table_entry const _nc_%s_table[] =\n",	   root_name);    printf("{\n");    for (n = 0; n < CAPTABSIZE; n++) {	sprintf(buffer, "\"%s\"",		name_table[n].nte_name);	printf("\t{ %15s,\t%10s,\t%3d, %3d }%c\n",	       buffer,	       typenames[name_table[n].nte_type],	       name_table[n].nte_index,	       name_table[n].nte_link,	       n < CAPTABSIZE - 1 ? ',' : ' ');    }    printf("};\n\n");    printf("const struct name_table_entry * const _nc_%s_hash_table[%d] =\n",	   root_name,	   HASHTABSIZE + 1);    printf("{\n");    for (n = 0; n < HASHTABSIZE; n++) {	if (hash_table[n] != 0) {	    sprintf(buffer, "_nc_%s_table + %3ld",		    root_name,		    (long) (hash_table[n] - name_table));	} else {	    strcpy(buffer, "0");	}	printf("\t%s,\n", buffer);    }    printf("\t_nc_%s_table\t/* base-of-table */\n", root_name);    printf("};\n\n");    printf("#if (BOOLCOUNT!=%d)||(NUMCOUNT!=%d)||(STRCOUNT!=%d)\n",	   BoolCount, NumCount, StrCount);    printf("#error\t--> term.h and comp_captab.c disagree about the <--\n");    printf("#error\t--> numbers of booleans, numbers and/or strings <--\n");    printf("#endif\n\n");    return EXIT_SUCCESS;}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久精品tv| 日本午夜精品一区二区三区电影| 免费成人你懂的| 粉嫩av一区二区三区在线播放| 日韩免费观看高清完整版| 亚洲福利视频一区| 欧美日韩精品一区二区天天拍小说 | 亚洲欧美日韩在线| 成人午夜激情视频| 国产欧美日韩综合精品一区二区| 激情综合亚洲精品| 日韩美女主播在线视频一区二区三区| 亚洲视频在线观看三级| 97久久精品人人澡人人爽| 欧美国产日产图区| 波多野结衣欧美| 亚洲女性喷水在线观看一区| av成人免费在线| 亚洲卡通欧美制服中文| 欧美性色黄大片手机版| 亚洲成人动漫一区| 日韩一区二区在线播放| 久久99精品国产麻豆婷婷洗澡| 精品久久久久久久久久久院品网 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 久久成人免费日本黄色| 久久麻豆一区二区| av在线综合网| 亚洲成av人片一区二区梦乃| 欧美一卡2卡3卡4卡| 国产一区二区在线视频| 中文久久乱码一区二区| 91九色最新地址| 精品福利一区二区三区| 久久久久国产免费免费| 蜜臀av性久久久久av蜜臀妖精| 国产日产欧美一区二区三区 | 亚洲夂夂婷婷色拍ww47| 欧美男男青年gay1069videost| 国产福利精品导航| 午夜影视日本亚洲欧洲精品| 久久不见久久见免费视频7| 91亚洲男人天堂| 欧美videos中文字幕| 亚洲视频在线一区观看| 日本欧洲一区二区| 9人人澡人人爽人人精品| 欧美丰满嫩嫩电影| 国产精品麻豆久久久| 日韩精品电影在线| 成人综合婷婷国产精品久久免费| 欧美一级xxx| 一个色在线综合| 99精品视频在线观看| 国产精品三级久久久久三级| 性做久久久久久免费观看| 国产a精品视频| 日韩欧美另类在线| 午夜不卡在线视频| 欧美日韩国产一级| 奇米一区二区三区| 欧美一级在线免费| 亚洲成人综合视频| 久久中文字幕电影| 色婷婷久久综合| 免费视频最近日韩| 亚洲精品乱码久久久久久日本蜜臀| 91精品国产综合久久香蕉麻豆| 色综合欧美在线| 91精品福利在线| 国产精品亲子伦对白| 一区二区三区自拍| 欧美久久久久久久久久| 奇米影视在线99精品| 亚洲精品视频在线观看免费| 精品国产成人系列| 26uuu精品一区二区在线观看| 亚洲精品国产一区二区精华液| 26uuu亚洲综合色欧美| 欧美精品免费视频| 成人免费观看视频| 99精品桃花视频在线观看| 国产在线视频一区二区| 日本亚洲电影天堂| 亚洲最大色网站| 一个色在线综合| 亚洲美女区一区| **欧美大码日韩| 精品福利在线导航| 欧美嫩在线观看| 欧美日韩在线电影| 精品视频全国免费看| 色综合久久88色综合天天免费| 成人精品在线视频观看| 成人免费看的视频| 不卡视频一二三| 91一区二区在线| 91美女片黄在线| 日本大香伊一区二区三区| 成人av午夜影院| 91免费国产在线| 欧美午夜片在线观看| 欧美日韩国产精选| 欧美精品欧美精品系列| 欧美一级艳片视频免费观看| 在线成人免费观看| 日韩一卡二卡三卡国产欧美| 日韩一区二区麻豆国产| 精品久久久久av影院| 久久人人爽人人爽| 国产亚洲短视频| 欧美激情一区在线| 亚洲女爱视频在线| 婷婷激情综合网| 精品一区在线看| 成人小视频在线| 色婷婷久久久综合中文字幕| 欧美无砖专区一中文字| 日韩一区二区三| 中文字幕国产一区二区| 亚洲精品美腿丝袜| 日日夜夜精品视频免费| 视频在线观看国产精品| 国产麻豆一精品一av一免费| 成人短视频下载| 欧美亚洲日本一区| 2021久久国产精品不只是精品| 国产蜜臀av在线一区二区三区| 综合激情网...| 免费看日韩a级影片| 粉嫩欧美一区二区三区高清影视| 国产99精品视频| 97久久精品人人爽人人爽蜜臀| 91影院在线免费观看| 欧美一二三区在线观看| 亚洲国产激情av| 五月天亚洲精品| 丰满岳乱妇一区二区三区| 在线精品亚洲一区二区不卡| 日韩一卡二卡三卡四卡| 精品国产制服丝袜高跟| 中文字幕二三区不卡| 日韩精品国产精品| 9i在线看片成人免费| 日韩精品一区二区三区四区视频| 国产片一区二区| 亚洲成人在线网站| 成人网在线播放| 日韩美女一区二区三区四区| 中文字幕欧美区| 一区二区三区波多野结衣在线观看| 奇米影视在线99精品| 久久综合色天天久久综合图片| 亚洲欧洲另类国产综合| 国产精一品亚洲二区在线视频| 欧美一区2区视频在线观看| 午夜视频在线观看一区| 91福利视频网站| 一区二区三区毛片| 欧美日韩一卡二卡| 亚洲va在线va天堂| 欧美老肥妇做.爰bbww| 五月天一区二区三区| 欧美精品v日韩精品v韩国精品v| 亚洲高清视频的网址| 欧美日韩午夜影院| 午夜精品福利在线| 91麻豆精品国产无毒不卡在线观看| 亚洲一区在线看| 欧美久久久久久久久久| 日韩**一区毛片| 欧美电影免费观看完整版| 久久精品久久久精品美女| www国产成人免费观看视频 深夜成人网| 美女高潮久久久| 久久久精品中文字幕麻豆发布| 国产成人亚洲综合a∨猫咪 | 99re免费视频精品全部| 亚洲欧洲av色图| 色屁屁一区二区| 视频在线在亚洲| 欧美精品一区二| 成人免费黄色大片| 亚洲自拍偷拍图区| 欧美一级高清片在线观看| 国内精品久久久久影院色| 国产精品欧美经典| 色婷婷综合视频在线观看| 亚洲成人av一区二区| 欧美一区二区私人影院日本| 国产中文字幕一区| 亚洲色图第一区| 在线综合视频播放| 成人免费视频视频在线观看免费 | 国产女人18毛片水真多成人如厕| 成人黄色电影在线| 亚洲一区二三区| 精品国产区一区| 一本色道综合亚洲| 精品影院一区二区久久久|