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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? search.c

?? linux下bash的源碼
?? C
字號(hào):
/* search.c - code for non-incremental searching in emacs and vi modes. *//* Copyright (C) 1992 Free Software Foundation, Inc.   This file is part of the Readline Library (the Library), a set of   routines for providing Emacs style line input to programs that ask   for it.   The Library 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 1, or (at your option)   any later version.   The Library 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.   The GNU General Public License is often shipped with GNU software, and   is generally kept in a file called COPYING or LICENSE.  If you do not   have a copy of the license, write to the Free Software Foundation,   675 Mass Ave, Cambridge, MA 02139, USA. */#define READLINE_LIBRARY#include <sys/types.h>#include <stdio.h>#if defined (HAVE_UNISTD_H)#  include <unistd.h>#endif#include "rldefs.h"#include "readline.h"#include "history.h"#define STREQ(a, b)	(((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0))#define STREQN(a, b, n)	(((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0))#define abs(x)		(((x) > 0) ? (x) : -(x))extern char *xmalloc (), *xrealloc ();/* Variables imported from readline.c */extern int rl_point, rl_end, rl_line_buffer_len;extern Keymap _rl_keymap;extern int rl_editing_mode;extern char *rl_prompt;extern char *rl_line_buffer;extern HIST_ENTRY *saved_line_for_history;extern Function *rl_last_func;/* Functions imported from the rest of the library. */extern int _rl_free_history_entry ();static char *noninc_search_string = (char *) NULL;static int noninc_history_pos = 0;static char *prev_line_found = (char *) NULL;/* Search the history list for STRING starting at absolute history position   POS.  If STRING begins with `^', the search must match STRING at the   beginning of a history line, otherwise a full substring match is performed   for STRING.  DIR < 0 means to search backwards through the history list,   DIR >= 0 means to search forward. */static intnoninc_search_from_pos (string, pos, dir)     char *string;     int pos, dir;{  int ret, old;  old = where_history ();  history_set_pos (pos);  if (*string == '^')    ret = history_search_prefix (string + 1, dir);  else    ret = history_search (string, dir);  if (ret != -1)    ret = where_history ();  history_set_pos (old);  return (ret);}/* Search for a line in the history containing STRING.  If DIR is < 0, the   search is backwards through previous entries, else through subsequent   entries. */static voidnoninc_dosearch (string, dir)     char *string;     int dir;{  int oldpos, pos;  HIST_ENTRY *entry;  if (string == 0 || *string == '\0' || noninc_history_pos < 0)    {      ding ();      return;    }  pos = noninc_search_from_pos (string, noninc_history_pos + dir, dir);  if (pos == -1)    {      /* Search failed, current history position unchanged. */      maybe_unsave_line ();      rl_clear_message ();      rl_point = 0;      ding ();      return;    }  noninc_history_pos = pos;  oldpos = where_history ();  history_set_pos (noninc_history_pos);  entry = current_history ();#if defined (VI_MODE)  if (rl_editing_mode != vi_mode)#endif  history_set_pos (oldpos);  {    int line_len;    line_len = strlen (entry->line);    if (line_len >= rl_line_buffer_len)      rl_extend_line_buffer (line_len);    strcpy (rl_line_buffer, entry->line);  }  rl_undo_list = (UNDO_LIST *)entry->data;  rl_end = strlen (rl_line_buffer);  rl_point = 0;  rl_clear_message ();  if (saved_line_for_history)    _rl_free_history_entry (saved_line_for_history);  saved_line_for_history = (HIST_ENTRY *)NULL;}/* Search non-interactively through the history list.  DIR < 0 means to   search backwards through the history of previous commands; otherwise   the search is for commands subsequent to the current position in the   history list.  PCHAR is the character to use for prompting when reading   the search string; if not specified (0), it defaults to `:'. */static voidnoninc_search (dir, pchar)     int dir;     int pchar;{  int saved_point, c, pmtlen;  char *p;  maybe_save_line ();  saved_point = rl_point;  /* Use the line buffer to read the search string. */  rl_line_buffer[0] = 0;  rl_end = rl_point = 0;  /* XXX - this needs fixing to work with the prompt expansion stuff - XXX */  pmtlen = (rl_prompt && *rl_prompt) ? strlen (rl_prompt) : 0;  p = xmalloc (2 + pmtlen);  if (pmtlen)    strcpy (p, rl_prompt);  p[pmtlen] = pchar ? pchar : ':';  p[pmtlen + 1]  = '\0';  rl_message (p, 0, 0);  free (p);  /* Read the search string. */  while (c = rl_read_key ())    {      switch (c)	{	case CTRL('H'):	case RUBOUT:	  if (rl_point == 0)	    {	      maybe_unsave_line ();	      rl_clear_message ();	      rl_point = saved_point;	      return;	    }	  rl_rubout (1);	  break;	case CTRL('W'):	  rl_unix_word_rubout (1, c);	  break;	case CTRL('U'):	  rl_unix_line_discard (1, c);	  break;	case RETURN:	case NEWLINE:	  goto dosearch;	  /* NOTREACHED */	  break;	case CTRL('C'):	case CTRL('G'):	  maybe_unsave_line ();	  rl_clear_message ();	  rl_point = saved_point;	  ding ();	  return;	default:	  rl_insert (1, c);	  break;	}      rl_redisplay ();    } dosearch:  /* If rl_point == 0, we want to re-use the previous search string and     start from the saved history position.  If there's no previous search     string, punt. */  if (rl_point == 0)    {      if (!noninc_search_string)	{	  ding ();	  return;	}    }  else    {      /* We want to start the search from the current history position. */      noninc_history_pos = where_history ();      if (noninc_search_string)	free (noninc_search_string);      noninc_search_string = savestring (rl_line_buffer);    }  noninc_dosearch (noninc_search_string, dir);}/* Search forward through the history list for a string.  If the vi-mode   code calls this, KEY will be `?'. */rl_noninc_forward_search (count, key)     int count, key;{  if (key == '?')    noninc_search (1, '?');  else    noninc_search (1, 0);  return 0;}/* Reverse search the history list for a string.  If the vi-mode code   calls this, KEY will be `/'. */rl_noninc_reverse_search (count, key)     int count, key;{  if (key == '/')    noninc_search (-1, '/');  else    noninc_search (-1, 0);  return 0;}/* Search forward through the history list for the last string searched   for.  If there is no saved search string, abort. */rl_noninc_forward_search_again (count, key)     int count, key;{  if (!noninc_search_string)    {      ding ();      return (-1);    }  noninc_dosearch (noninc_search_string, 1);  return 0;}/* Reverse search in the history list for the last string searched   for.  If there is no saved search string, abort. */rl_noninc_reverse_search_again (count, key)     int count, key;{  if (!noninc_search_string)    {      ding ();      return (-1);    }  noninc_dosearch (noninc_search_string, -1);  return 0;}static intrl_history_search_internal (count, direction)     int count, direction;{  HIST_ENTRY *temp, *old_temp;  int line_len;  maybe_save_line ();  temp = old_temp = (HIST_ENTRY *)NULL;  while (count)    {      temp = (direction < 0) ? previous_history () : next_history ();      if (!temp)        break;      if (STREQN (rl_line_buffer, temp->line, rl_point))	{	  /* Don't find multiple instances of the same line. */	  if (prev_line_found && STREQ (prev_line_found, temp->line))	    continue;          if (direction < 0)            old_temp = temp;          prev_line_found = temp->line;          count--;	}    }  if (!temp)    {      if (direction < 0 && old_temp)	temp = old_temp;      else	{	  maybe_unsave_line ();	  ding ();	  return 1;	}    }  line_len = strlen (temp->line);  if (line_len >= rl_line_buffer_len)    rl_extend_line_buffer (line_len);  strcpy (rl_line_buffer, temp->line);  rl_undo_list = (UNDO_LIST *)temp->data;  rl_end = line_len;  return 0;}/* Search forward in the history for the string of characters   from the start of the line to rl_point.  This is a non-incremental   search. */intrl_history_search_forward (count, ignore)     int count, ignore;{  if (count == 0)    return (0);  if (rl_last_func != rl_history_search_forward)    prev_line_found = (char *)NULL;  return (rl_history_search_internal (abs (count), (count > 0) ? 1 : -1));}/* Search backward through the history for the string of characters   from the start of the line to rl_point.  This is a non-incremental   search. */intrl_history_search_backward (count, ignore)     int count, ignore;{  if (count == 0)    return (0);  if (rl_last_func != rl_history_search_backward)    prev_line_found = (char *)NULL;  return (rl_history_search_internal (abs (count), (count > 0) ? -1 : 1));}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费观看成人av| 91在线一区二区三区| 日本高清无吗v一区| 久久网这里都是精品| 亚洲成av人综合在线观看| 国产一区二区三区美女| 国产欧美日韩综合| 欧美a一区二区| 色999日韩国产欧美一区二区| 欧美精选午夜久久久乱码6080| 国产精品网站导航| 久久99这里只有精品| 欧美亚洲国产一区二区三区va | 亚洲人成亚洲人成在线观看图片| 日本不卡不码高清免费观看| 色综合久久久久综合99| 中文字幕免费在线观看视频一区| 国产真实乱偷精品视频免| 精品1区2区在线观看| 麻豆高清免费国产一区| 欧美日韩高清一区二区| 天堂一区二区在线免费观看| 欧美性猛片xxxx免费看久爱| 亚洲欧美日韩一区二区三区在线观看| av色综合久久天堂av综合| 亚洲视频你懂的| 国产一区二区福利| 337p粉嫩大胆噜噜噜噜噜91av | 99久久亚洲一区二区三区青草| 欧美三级乱人伦电影| 日韩电影在线免费看| 欧美一区二区三区视频在线| 久久精工是国产品牌吗| 久久日一线二线三线suv| 亚洲不卡一区二区三区| 欧美mv和日韩mv国产网站| 成人美女视频在线看| 1024成人网| 欧美亚洲一区二区三区四区| 久久成人18免费观看| 欧美一区二区啪啪| 大尺度一区二区| 蜜臀国产一区二区三区在线播放| 久久久久久久综合色一本| 欧美在线视频日韩| 毛片av一区二区| 一区二区高清视频在线观看| 欧美videos中文字幕| 99re这里都是精品| 狠狠久久亚洲欧美| 亚洲国产美女搞黄色| 日韩一区欧美一区| 国产日韩欧美精品一区| 国产精品久久久久久久久晋中 | 中文字幕人成不卡一区| 欧美日韩亚洲高清一区二区| 欧美自拍丝袜亚洲| 国产不卡一区视频| 国产91精品露脸国语对白| 高清成人在线观看| 成人免费视频视频在线观看免费| 国产成人av在线影院| 国产高清一区日本| 成人午夜在线视频| 91搞黄在线观看| 精品少妇一区二区三区视频免付费| 日韩视频123| 国产欧美一区二区三区沐欲| 国产视频亚洲色图| 亚瑟在线精品视频| 国产在线一区二区| 色婷婷av一区二区三区软件| 欧美日韩成人综合天天影院 | 不卡一区中文字幕| 91精品欧美一区二区三区综合在 | 国产日韩欧美精品电影三级在线| 国产精品视频yy9299一区| 亚洲国产日韩在线一区模特| 国内成+人亚洲+欧美+综合在线| 日韩—二三区免费观看av| 亚洲精品久久久蜜桃| 午夜精品久久久久久久久久| 国产ts人妖一区二区| 在线电影欧美成精品| 最新久久zyz资源站| 奇米精品一区二区三区在线观看 | 777午夜精品视频在线播放| 一区二区三区鲁丝不卡| 国产真实精品久久二三区| 色婷婷综合五月| 久久亚洲一区二区三区明星换脸 | 国产一区二区不卡在线| 欧美日韩中文精品| 亚洲免费观看在线视频| 国产河南妇女毛片精品久久久| 91麻豆精品久久久久蜜臀| 亚洲欧美日韩成人高清在线一区| 美国十次综合导航| 精品三级在线看| 老色鬼精品视频在线观看播放| 在线观看日韩毛片| 午夜精品福利一区二区三区av| 色老头久久综合| 一区二区视频在线看| 99国产精品久久久久久久久久| 日本一区二区高清| 日本大胆欧美人术艺术动态| 国产**成人网毛片九色 | 95精品视频在线| 亚洲伦理在线免费看| 91免费看视频| 免费在线观看日韩欧美| 欧美成人伊人久久综合网| 国产精品一区二区在线观看不卡 | 国产三级三级三级精品8ⅰ区| 国产乱对白刺激视频不卡| 欧美激情在线免费观看| 色噜噜久久综合| 久久66热re国产| 国产精品国产三级国产有无不卡| 91片黄在线观看| 久久99久久久欧美国产| 国产精品国产三级国产三级人妇| 在线观看不卡一区| 国产老肥熟一区二区三区| 亚洲精品中文在线观看| 精品粉嫩超白一线天av| 在线观看免费一区| 不卡的av中国片| 天天操天天综合网| 亚洲乱码国产乱码精品精小说 | 自拍偷在线精品自拍偷无码专区 | 日韩你懂的电影在线观看| 丁香婷婷综合色啪| 韩国av一区二区| 亚洲成人av一区| 中文字幕在线观看不卡| 99精品国产99久久久久久白柏| 婷婷成人综合网| 国产精品久久久久久久久免费丝袜 | 国产精品理伦片| 26uuuu精品一区二区| 欧美二区三区91| 欧美在线观看一二区| 97国产精品videossex| 不卡一区中文字幕| 国产尤物一区二区在线| 蜜桃久久久久久| 婷婷久久综合九色国产成人| 亚洲图片欧美一区| 亚洲电影你懂得| 一区二区三区中文在线观看| 欧美极品另类videosde| 中文文精品字幕一区二区| 亚洲精品一区二区三区蜜桃下载| 精品国产乱码久久久久久牛牛| 在线成人免费视频| 日韩三级免费观看| 久久精品人人爽人人爽| 国产精品久久久久国产精品日日| 久久久99免费| 亚洲欧美日韩在线播放| 日韩中文字幕不卡| 精品亚洲国内自在自线福利| 国产99久久久久| 日本韩国欧美三级| 欧美mv和日韩mv的网站| 中文字幕一区二区三| 香蕉影视欧美成人| 国模套图日韩精品一区二区| 日韩综合小视频| 国产成人综合网| 欧美午夜精品理论片a级按摩| 日韩欧美一级二级三级久久久| 国产欧美一区二区三区沐欲| 一区二区三区丝袜| 韩国v欧美v日本v亚洲v| 91福利资源站| 26uuu成人网一区二区三区| 亚洲激情网站免费观看| 粉嫩一区二区三区性色av| 欧美亚洲国产一区二区三区va| 久久一区二区三区国产精品| 亚洲成a人v欧美综合天堂下载 | 免费不卡在线视频| 91麻豆自制传媒国产之光| 日韩一级高清毛片| 亚洲成a人片在线不卡一二三区 | 天堂成人免费av电影一区| 91丨九色丨蝌蚪富婆spa| 国产日韩欧美高清| 国产成人免费网站| 久久精品视频一区二区三区| 日本中文字幕不卡| 欧美高清一级片在线| 午夜电影一区二区三区| 在线日韩av片| 日韩成人dvd| 日韩精品一区二区在线观看| 午夜精品成人在线视频|