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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? util.c

?? 這是一個(gè)SIGMA方案的PMP播放器的UCLINUX程序,可播放DVD,VCD,CD MP3...有很好的參考價(jià)值.
?? C
字號(hào):
/* *  util.c * *  ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) *  MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * *  This program is free software; you can redistribute it and/or *  modify it under the terms of the GNU General Public License *  as published by the Free Software Foundation; either version 2 *  of the License, or (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include "dialog.h"/* use colors by default? */bool use_colors = 1;const char *backtitle = NULL;const char *dialog_result;/*  * Attribute values, default is for mono display */chtype attributes[] ={    A_NORMAL,			/* screen_attr */    A_NORMAL,			/* shadow_attr */    A_NORMAL,			/* dialog_attr */    A_BOLD,			/* title_attr */    A_NORMAL,			/* border_attr */    A_REVERSE,			/* button_active_attr */    A_DIM,			/* button_inactive_attr */    A_REVERSE,			/* button_key_active_attr */    A_BOLD,			/* button_key_inactive_attr */    A_REVERSE,			/* button_label_active_attr */    A_NORMAL,			/* button_label_inactive_attr */    A_NORMAL,			/* inputbox_attr */    A_NORMAL,			/* inputbox_border_attr */    A_NORMAL,			/* searchbox_attr */    A_BOLD,			/* searchbox_title_attr */    A_NORMAL,			/* searchbox_border_attr */    A_BOLD,			/* position_indicator_attr */    A_NORMAL,			/* menubox_attr */    A_NORMAL,			/* menubox_border_attr */    A_NORMAL,			/* item_attr */    A_REVERSE,			/* item_selected_attr */    A_BOLD,			/* tag_attr */    A_REVERSE,			/* tag_selected_attr */    A_BOLD,			/* tag_key_attr */    A_REVERSE,			/* tag_key_selected_attr */    A_BOLD,			/* check_attr */    A_REVERSE,			/* check_selected_attr */    A_BOLD,			/* uarrow_attr */    A_BOLD			/* darrow_attr */};#include "colors.h"/* * Table of color values */int color_table[][3] ={    {SCREEN_FG, SCREEN_BG, SCREEN_HL},    {SHADOW_FG, SHADOW_BG, SHADOW_HL},    {DIALOG_FG, DIALOG_BG, DIALOG_HL},    {TITLE_FG, TITLE_BG, TITLE_HL},    {BORDER_FG, BORDER_BG, BORDER_HL},    {BUTTON_ACTIVE_FG, BUTTON_ACTIVE_BG, BUTTON_ACTIVE_HL},    {BUTTON_INACTIVE_FG, BUTTON_INACTIVE_BG, BUTTON_INACTIVE_HL},    {BUTTON_KEY_ACTIVE_FG, BUTTON_KEY_ACTIVE_BG, BUTTON_KEY_ACTIVE_HL},    {BUTTON_KEY_INACTIVE_FG, BUTTON_KEY_INACTIVE_BG, BUTTON_KEY_INACTIVE_HL},    {BUTTON_LABEL_ACTIVE_FG, BUTTON_LABEL_ACTIVE_BG, BUTTON_LABEL_ACTIVE_HL},    {BUTTON_LABEL_INACTIVE_FG, BUTTON_LABEL_INACTIVE_BG,     BUTTON_LABEL_INACTIVE_HL},    {INPUTBOX_FG, INPUTBOX_BG, INPUTBOX_HL},    {INPUTBOX_BORDER_FG, INPUTBOX_BORDER_BG, INPUTBOX_BORDER_HL},    {SEARCHBOX_FG, SEARCHBOX_BG, SEARCHBOX_HL},    {SEARCHBOX_TITLE_FG, SEARCHBOX_TITLE_BG, SEARCHBOX_TITLE_HL},    {SEARCHBOX_BORDER_FG, SEARCHBOX_BORDER_BG, SEARCHBOX_BORDER_HL},    {POSITION_INDICATOR_FG, POSITION_INDICATOR_BG, POSITION_INDICATOR_HL},    {MENUBOX_FG, MENUBOX_BG, MENUBOX_HL},    {MENUBOX_BORDER_FG, MENUBOX_BORDER_BG, MENUBOX_BORDER_HL},    {ITEM_FG, ITEM_BG, ITEM_HL},    {ITEM_SELECTED_FG, ITEM_SELECTED_BG, ITEM_SELECTED_HL},    {TAG_FG, TAG_BG, TAG_HL},    {TAG_SELECTED_FG, TAG_SELECTED_BG, TAG_SELECTED_HL},    {TAG_KEY_FG, TAG_KEY_BG, TAG_KEY_HL},    {TAG_KEY_SELECTED_FG, TAG_KEY_SELECTED_BG, TAG_KEY_SELECTED_HL},    {CHECK_FG, CHECK_BG, CHECK_HL},    {CHECK_SELECTED_FG, CHECK_SELECTED_BG, CHECK_SELECTED_HL},    {UARROW_FG, UARROW_BG, UARROW_HL},    {DARROW_FG, DARROW_BG, DARROW_HL},};				/* color_table *//* * Set window to attribute 'attr' */voidattr_clear (WINDOW * win, int height, int width, chtype attr){    int i, j;    wattrset (win, attr);    for (i = 0; i < height; i++) {	wmove (win, i, 0);	for (j = 0; j < width; j++)	    waddch (win, ' ');    }    touchwin (win);}void dialog_clear (void){    attr_clear (stdscr, LINES, COLS, screen_attr);    /* Display background title if it exists ... - SLH */    if (backtitle != NULL) {        int i;        wattrset (stdscr, screen_attr);        mvwaddstr (stdscr, 0, 1, (char *)backtitle);        wmove (stdscr, 1, 1);        for (i = 1; i < COLS - 1; i++)            waddch (stdscr, ACS_HLINE);    }    wnoutrefresh (stdscr);}/* * Do some initialization for dialog */voidinit_dialog (void){    initscr ();			/* Init curses */    keypad (stdscr, TRUE);    cbreak ();    noecho ();    if (use_colors)	/* Set up colors */	color_setup ();    dialog_clear ();}/* * Setup for color display */voidcolor_setup (void){    int i;    if (has_colors ()) {	/* Terminal supports color? */	start_color ();	/* Initialize color pairs */	for (i = 0; i < ATTRIBUTE_COUNT; i++)	    init_pair (i + 1, color_table[i][0], color_table[i][1]);	/* Setup color attributes */	for (i = 0; i < ATTRIBUTE_COUNT; i++)	    attributes[i] = C_ATTR (color_table[i][2], i + 1);    }}/* * End using dialog functions. */voidend_dialog (void){    endwin ();}/* * Print a string of text in a window, automatically wrap around to the * next line if the string is too long to fit on one line. Newline * characters '\n' are replaced by spaces.  We start on a new line * if there is no room for at least 4 nonblanks following a double-space. */voidprint_autowrap (WINDOW * win, const char *prompt, int width, int y, int x){    int newl, cur_x, cur_y;    int i, prompt_len, room, wlen;    char tempstr[MAX_LEN + 1], *word, *sp, *sp2;    strcpy (tempstr, prompt);    prompt_len = strlen(tempstr);	    /*     * Remove newlines     */    for(i=0; i<prompt_len; i++) {	if(tempstr[i] == '\n') tempstr[i] = ' ';    }    if (prompt_len <= width - x * 2) {	/* If prompt is short */	wmove (win, y, (width - prompt_len) / 2);	waddstr (win, tempstr);    } else {	cur_x = x;	cur_y = y;	newl = 1;	word = tempstr;	while (word && *word) {	    sp = index(word, ' ');	    if (sp)	        *sp++ = 0;	    /* Wrap to next line if either the word does not fit,	       or it is the first word of a new sentence, and it is	       short, and the next word does not fit. */	    room = width - cur_x;	    wlen = strlen(word);	    if (wlen > room ||	       (newl && wlen < 4 && sp && wlen+1+strlen(sp) > room		     && (!(sp2 = index(sp, ' ')) || wlen+1+(sp2-sp) > room))) {		cur_y++;		cur_x = x;	    }	    wmove (win, cur_y, cur_x);	    waddstr (win, word);	    getyx (win, cur_y, cur_x);	    cur_x++;	    if (sp && *sp == ' ') {	        cur_x++;	/* double space */		while (*++sp == ' ');		newl = 1;	    } else	        newl = 0;	    word = sp;	}    }}/* * Print a button */voidprint_button (WINDOW * win, const char *label, int y, int x, int selected){    int i, temp;    wmove (win, y, x);    wattrset (win, selected ? button_active_attr : button_inactive_attr);    waddstr (win, "<");    temp = strspn (label, " ");    label += temp;    wattrset (win, selected ? button_label_active_attr	      : button_label_inactive_attr);    for (i = 0; i < temp; i++)	waddch (win, ' ');    wattrset (win, selected ? button_key_active_attr	      : button_key_inactive_attr);    waddch (win, label[0]);    wattrset (win, selected ? button_label_active_attr	      : button_label_inactive_attr);    waddstr (win, (char *)label + 1);    wattrset (win, selected ? button_active_attr : button_inactive_attr);    waddstr (win, ">");    wmove (win, y, x + temp + 1);}/* * Draw a rectangular box with line drawing characters */voiddraw_box (WINDOW * win, int y, int x, int height, int width,	  chtype box, chtype border){    int i, j;    wattrset (win, 0);    for (i = 0; i < height; i++) {	wmove (win, y + i, x);	for (j = 0; j < width; j++)	    if (!i && !j)		waddch (win, border | ACS_ULCORNER);	    else if (i == height - 1 && !j)		waddch (win, border | ACS_LLCORNER);	    else if (!i && j == width - 1)		waddch (win, box | ACS_URCORNER);	    else if (i == height - 1 && j == width - 1)		waddch (win, box | ACS_LRCORNER);	    else if (!i)		waddch (win, border | ACS_HLINE);	    else if (i == height - 1)		waddch (win, box | ACS_HLINE);	    else if (!j)		waddch (win, border | ACS_VLINE);	    else if (j == width - 1)		waddch (win, box | ACS_VLINE);	    else		waddch (win, box | ' ');    }}/* * Draw shadows along the right and bottom edge to give a more 3D look * to the boxes */voiddraw_shadow (WINDOW * win, int y, int x, int height, int width){    int i;    if (has_colors ()) {	/* Whether terminal supports color? */	wattrset (win, shadow_attr);	wmove (win, y + height, x + 2);	for (i = 0; i < width; i++)	    waddch (win, winch (win) & A_CHARTEXT);	for (i = y + 1; i < y + height + 1; i++) {	    wmove (win, i, x + width);	    waddch (win, winch (win) & A_CHARTEXT);	    waddch (win, winch (win) & A_CHARTEXT);	}	wnoutrefresh (win);    }}/* *  Return the position of the first alphabetic character in a string. */intfirst_alpha(const char *string, const char *exempt){	int i, in_paren=0, c;	for (i = 0; i < strlen(string); i++) {		c = tolower(string[i]);		if (strchr("<[(", c)) ++in_paren;		if (strchr(">])", c)) --in_paren;		if ((! in_paren) && isalpha(c) && 		     strchr(exempt, c) == 0)			return i;	}	return 0;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品视频一区二区| 亚洲狠狠爱一区二区三区| 国内精品嫩模私拍在线| 精品福利av导航| 国内精品久久久久影院色| 精品国精品国产| 成人午夜看片网址| 亚洲欧洲综合另类| 91.xcao| 亚洲成人免费av| 精品欧美乱码久久久久久1区2区| 激情综合色丁香一区二区| 国产精品天干天干在观线| 99久久婷婷国产综合精品电影| 一区二区三区在线观看网站| 欧美一区二区福利视频| 国产69精品久久久久毛片| 亚洲男人电影天堂| 91精品午夜视频| 精品一区二区三区蜜桃| 国产精品久久午夜夜伦鲁鲁| 欧美最猛性xxxxx直播| 亚洲一区二区三区中文字幕| 欧美二区三区的天堂| 国产成人夜色高潮福利影视| 亚洲人xxxx| 久久亚洲精品小早川怜子| 91丨porny丨最新| 久88久久88久久久| 亚洲欧美日韩综合aⅴ视频| 欧美成人a∨高清免费观看| caoporm超碰国产精品| 日韩av电影天堂| 亚洲少妇30p| 久久久久久毛片| 欧美裸体一区二区三区| 99精品久久只有精品| 九九久久精品视频| 亚洲成人三级小说| 中文字幕中文字幕中文字幕亚洲无线| 911国产精品| 色狠狠色狠狠综合| 成人高清免费在线播放| 久久99精品久久久久久动态图| 亚洲尤物在线视频观看| 中文字幕乱码一区二区免费| 日韩一级视频免费观看在线| 在线免费观看不卡av| jlzzjlzz欧美大全| 国产在线精品不卡| 老色鬼精品视频在线观看播放| 亚洲你懂的在线视频| 国产精品乱人伦一区二区| 久久综合色综合88| 日韩欧美成人午夜| 欧美嫩在线观看| 欧美三级乱人伦电影| 91丨porny丨蝌蚪视频| 成人综合在线观看| 国产精品一级黄| 国产九九视频一区二区三区| 久久精品国产**网站演员| 婷婷开心激情综合| 一区二区三区精品在线| 亚洲免费av观看| 一区二区在线免费观看| 亚洲人成人一区二区在线观看| 国产人成亚洲第一网站在线播放 | 欧美日韩一级二级| 日本道色综合久久| 色综合久久久久综合99| 99精品视频一区| 91首页免费视频| 91影院在线观看| 欧美在线一区二区| 欧美日韩一区二区不卡| 51午夜精品国产| 91麻豆精品国产无毒不卡在线观看| 欧美亚洲综合久久| 欧美另类高清zo欧美| 91精品视频网| 欧美日本一道本| 色婷婷av一区二区三区软件| 豆国产96在线|亚洲| 狠狠色综合日日| 国产一区999| 国产福利精品一区二区| 91亚洲男人天堂| 欧美色大人视频| 欧美mv日韩mv国产| 日本一二三四高清不卡| 国产精品美女久久久久久久| 亚洲美女偷拍久久| 日韩国产在线一| 国产电影一区二区三区| 色哟哟一区二区在线观看| 91激情五月电影| 日韩欧美国产精品一区| 中文字幕乱码一区二区免费| 亚洲欧美激情在线| 日韩av在线发布| 国产iv一区二区三区| 欧日韩精品视频| 亚洲精品一线二线三线| 亚洲欧美日韩中文播放| 日av在线不卡| 国产精品123区| 欧美三级资源在线| 久久精品视频一区| 亚洲国产一区二区在线播放| 国产综合色在线| 欧洲一区在线电影| 26uuu久久综合| 一区二区三区美女| 国产在线观看免费一区| 欧美伊人久久大香线蕉综合69| 日韩丝袜美女视频| 亚洲精品一二三四区| 久久国产精品第一页| 在线观看一区二区视频| 久久久久国色av免费看影院| 亚洲激情在线激情| 国产一区二区剧情av在线| 在线观看国产精品网站| 国产色一区二区| 日本系列欧美系列| 一本到高清视频免费精品| 久久久综合激的五月天| 亚洲国产精品影院| 成人av午夜影院| 久久尤物电影视频在线观看| 一区二区三区影院| 成人综合婷婷国产精品久久| 在线综合视频播放| 亚洲色图色小说| 成人一级视频在线观看| 欧美变态tickling挠脚心| 午夜视黄欧洲亚洲| 91亚洲精品乱码久久久久久蜜桃| 久久综合中文字幕| 久久精品国产99国产| 欧美人xxxx| 亚洲国产人成综合网站| 色噜噜狠狠色综合欧洲selulu| 中文字幕在线不卡国产视频| 亚洲成av人片在www色猫咪| 91麻豆6部合集magnet| 国产精品美女久久久久av爽李琼| 精品系列免费在线观看| 91麻豆精品国产91久久久久| 亚洲成人精品在线观看| 91福利资源站| 一区二区三区精品在线观看| 99re8在线精品视频免费播放| 久久久久国产精品免费免费搜索| 精品一区在线看| 日韩三级视频在线观看| 亚洲一区二区三区四区的| 成人性生交大片免费看中文| 国产亚洲婷婷免费| 国产一区二区91| 国产日韩欧美制服另类| 国产v综合v亚洲欧| 国产精品久久久久久亚洲伦| 成人18视频在线播放| 综合激情成人伊人| 一本一道久久a久久精品| 亚洲欧美经典视频| 欧美性大战久久久| 日日夜夜免费精品| 欧美大胆人体bbbb| 国产九色精品成人porny| 欧美国产乱子伦| 99久久久免费精品国产一区二区| 国产精品久久久久久久午夜片| 99久久伊人精品| 亚洲视频图片小说| 欧美日韩一区二区在线观看| 麻豆精品国产传媒mv男同| 精品国产1区2区3区| 成人小视频在线观看| 亚洲色图视频网| 欧美日韩电影在线播放| 美女在线视频一区| 国产欧美精品国产国产专区| aaa欧美色吧激情视频| 亚洲国产人成综合网站| 日韩精品一区二区三区视频 | 五月激情六月综合| 欧美mv日韩mv| 亚洲乱码一区二区三区在线观看| 欧洲日韩一区二区三区| 另类欧美日韩国产在线| 国产精品国产精品国产专区不片| 99久久精品免费看| 日韩精品久久理论片| 欧美国产精品劲爆| 欧美日韩国产天堂| 成人一级黄色片| 日韩av中文字幕一区二区|