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

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

?? getopt.c

?? bison 2.0 主要可以用來做語法分析用的
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* Getopt for GNU.   NOTE: getopt is now part of the C library, so if you don't know what   "Keep this file name-space clean" means, talk to drepper@gnu.org   before changing it!   Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001,2002,2003,2004	Free Software Foundation, Inc.   This file is part of the GNU C Library.   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, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  *//* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.   Ditto for AIX 3.2 and <stdlib.h>.  */#ifndef _NO_PROTO# define _NO_PROTO#endif#ifdef HAVE_CONFIG_H# include <config.h>#endif#include <stdio.h>/* This needs to come after some library #include   to get __GNU_LIBRARY__ defined.  */#ifdef	__GNU_LIBRARY__/* Don't include stdlib.h for non-GNU C libraries because some of them   contain conflicting prototypes for getopt.  */# include <stdlib.h># include <unistd.h>#endif	/* GNU C library.  */#include <string.h>#ifdef VMS# include <unixlib.h>#endif#ifdef _LIBC# include <libintl.h>#else# include "gettext.h"# define _(msgid) gettext (msgid)#endif#if defined _LIBC && defined USE_IN_LIBIO# include <wchar.h>#endif#ifndef attribute_hidden# define attribute_hidden#endif/* Unlike standard Unix `getopt', functions like `getopt_long'   let the user intersperse the options with the other arguments.   As `getopt_long' works, it permutes the elements of ARGV so that,   when it is done, all the options precede everything else.  Thus   all application programs are extended to handle flexible argument order.   Using `getopt' or setting the environment variable POSIXLY_CORRECT   disables permutation.   Then the application's behavior is completely standard.   GNU application programs can use a third alternative mode in which   they can distinguish the relative order of options and other arguments.  */#include "getopt.h"#include "getopt_int.h"/* For communication from `getopt' to the caller.   When `getopt' finds an option that takes an argument,   the argument value is returned here.   Also, when `ordering' is RETURN_IN_ORDER,   each non-option ARGV-element is returned here.  */char *optarg;/* Index in ARGV of the next element to be scanned.   This is used for communication to and from the caller   and for communication between successive calls to `getopt'.   On entry to `getopt', zero means this is the first call; initialize.   When `getopt' returns -1, this is the index of the first of the   non-option elements that the caller should itself scan.   Otherwise, `optind' communicates from one call to the next   how much of ARGV has been scanned so far.  *//* 1003.2 says this must be 1 before any call.  */int optind = 1;/* Callers store zero here to inhibit the error message   for unrecognized options.  */int opterr = 1;/* Set to an option character which was unrecognized.   This must be initialized on some systems to avoid linking in the   system's own getopt implementation.  */int optopt = '?';/* Keep a global copy of all internal members of getopt_data.  */static struct _getopt_data getopt_data;#ifndef __GNU_LIBRARY__/* Avoid depending on library functions or files   whose names are inconsistent.  */#ifndef getenvextern char *getenv ();#endif#endif /* not __GNU_LIBRARY__ */#ifdef _LIBC/* Stored original parameters.   XXX This is no good solution.  We should rather copy the args so   that we can compare them later.  But we must not use malloc(3).  */extern int __libc_argc;extern char **__libc_argv;/* Bash 2.0 gives us an environment variable containing flags   indicating ARGV elements that should not be considered arguments.  */# ifdef USE_NONOPTION_FLAGS/* Defined in getopt_init.c  */extern char *__getopt_nonoption_flags;# endif# ifdef USE_NONOPTION_FLAGS#  define SWAP_FLAGS(ch1, ch2) \  if (d->__nonoption_flags_len > 0)					      \    {									      \      char __tmp = __getopt_nonoption_flags[ch1];			      \      __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2];	      \      __getopt_nonoption_flags[ch2] = __tmp;				      \    }# else#  define SWAP_FLAGS(ch1, ch2)# endif#else	/* !_LIBC */# define SWAP_FLAGS(ch1, ch2)#endif	/* _LIBC *//* Exchange two adjacent subsequences of ARGV.   One subsequence is elements [first_nonopt,last_nonopt)   which contains all the non-options that have been skipped so far.   The other is elements [last_nonopt,optind), which contains all   the options processed since those non-options were skipped.   `first_nonopt' and `last_nonopt' are relocated so that they describe   the new indices of the non-options in ARGV after they are moved.  */static voidexchange (char **argv, struct _getopt_data *d){  int bottom = d->__first_nonopt;  int middle = d->__last_nonopt;  int top = d->optind;  char *tem;  /* Exchange the shorter segment with the far end of the longer segment.     That puts the shorter segment into the right place.     It leaves the longer segment in the right place overall,     but it consists of two parts that need to be swapped next.  */#if defined _LIBC && defined USE_NONOPTION_FLAGS  /* First make sure the handling of the `__getopt_nonoption_flags'     string can work normally.  Our top argument must be in the range     of the string.  */  if (d->__nonoption_flags_len > 0 && top >= d->__nonoption_flags_max_len)    {      /* We must extend the array.  The user plays games with us and	 presents new arguments.  */      char *new_str = malloc (top + 1);      if (new_str == NULL)	d->__nonoption_flags_len = d->__nonoption_flags_max_len = 0;      else	{	  memset (__mempcpy (new_str, __getopt_nonoption_flags,			     d->__nonoption_flags_max_len),		  '\0', top + 1 - d->__nonoption_flags_max_len);	  d->__nonoption_flags_max_len = top + 1;	  __getopt_nonoption_flags = new_str;	}    }#endif  while (top > middle && middle > bottom)    {      if (top - middle > middle - bottom)	{	  /* Bottom segment is the short one.  */	  int len = middle - bottom;	  register int i;	  /* Swap it with the top part of the top segment.  */	  for (i = 0; i < len; i++)	    {	      tem = argv[bottom + i];	      argv[bottom + i] = argv[top - (middle - bottom) + i];	      argv[top - (middle - bottom) + i] = tem;	      SWAP_FLAGS (bottom + i, top - (middle - bottom) + i);	    }	  /* Exclude the moved bottom segment from further swapping.  */	  top -= len;	}      else	{	  /* Top segment is the short one.  */	  int len = top - middle;	  register int i;	  /* Swap it with the bottom part of the bottom segment.  */	  for (i = 0; i < len; i++)	    {	      tem = argv[bottom + i];	      argv[bottom + i] = argv[middle + i];	      argv[middle + i] = tem;	      SWAP_FLAGS (bottom + i, middle + i);	    }	  /* Exclude the moved top segment from further swapping.  */	  bottom += len;	}    }  /* Update records for the slots the non-options now occupy.  */  d->__first_nonopt += (d->optind - d->__last_nonopt);  d->__last_nonopt = d->optind;}/* Initialize the internal data when the first call is made.  */static const char *_getopt_initialize (int argc, char **argv, const char *optstring,		    int posixly_correct, struct _getopt_data *d){  /* Start processing options with ARGV-element 1 (since ARGV-element 0     is the program name); the sequence of previously skipped     non-option ARGV-elements is empty.  */  d->__first_nonopt = d->__last_nonopt = d->optind;  d->__nextchar = NULL;  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");  /* Determine how to handle the ordering of options and nonoptions.  */  if (optstring[0] == '-')    {      d->__ordering = RETURN_IN_ORDER;      ++optstring;    }  else if (optstring[0] == '+')    {      d->__ordering = REQUIRE_ORDER;      ++optstring;    }  else if (d->__posixly_correct)    d->__ordering = REQUIRE_ORDER;  else    d->__ordering = PERMUTE;#if defined _LIBC && defined USE_NONOPTION_FLAGS  if (!d->__posixly_correct      && argc == __libc_argc && argv == __libc_argv)    {      if (d->__nonoption_flags_max_len == 0)	{	  if (__getopt_nonoption_flags == NULL	      || __getopt_nonoption_flags[0] == '\0')	    d->__nonoption_flags_max_len = -1;	  else	    {	      const char *orig_str = __getopt_nonoption_flags;	      int len = d->__nonoption_flags_max_len = strlen (orig_str);	      if (d->__nonoption_flags_max_len < argc)		d->__nonoption_flags_max_len = argc;	      __getopt_nonoption_flags =		(char *) malloc (d->__nonoption_flags_max_len);	      if (__getopt_nonoption_flags == NULL)		d->__nonoption_flags_max_len = -1;	      else		memset (__mempcpy (__getopt_nonoption_flags, orig_str, len),			'\0', d->__nonoption_flags_max_len - len);	    }	}      d->__nonoption_flags_len = d->__nonoption_flags_max_len;    }  else    d->__nonoption_flags_len = 0;#endif  return optstring;}/* Scan elements of ARGV (whose length is ARGC) for option characters   given in OPTSTRING.   If an element of ARGV starts with '-', and is not exactly "-" or "--",   then it is an option element.  The characters of this element   (aside from the initial '-') are option characters.  If `getopt'   is called repeatedly, it returns successively each of the option characters   from each of the option elements.   If `getopt' finds another option character, it returns that character,   updating `optind' and `nextchar' so that the next call to `getopt' can   resume the scan with the following option character or ARGV-element.   If there are no more option characters, `getopt' returns -1.   Then `optind' is the index in ARGV of the first ARGV-element   that is not an option.  (The ARGV-elements have been permuted   so that those that are not options now come last.)   OPTSTRING is a string containing the legitimate option characters.   If an option character is seen that is not listed in OPTSTRING,   return '?' after printing an error message.  If you set `opterr' to   zero, the error message is suppressed but we still return '?'.   If a char in OPTSTRING is followed by a colon, that means it wants an arg,   so the following text in the same ARGV-element, or the text of the following   ARGV-element, is returned in `optarg'.  Two colons mean an option that   wants an optional arg; if there is text in the current ARGV-element,   it is returned in `optarg', otherwise `optarg' is set to zero.   If OPTSTRING starts with `-' or `+', it requests different methods of   handling the non-option ARGV-elements.   See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.   Long-named options begin with `--' instead of `-'.   Their names may be abbreviated as long as the abbreviation is unique   or is an exact match for some defined option.  If they have an   argument, it follows the option name in the same ARGV-element, separated   from the option name by a `=', or else the in next ARGV-element.   When `getopt' finds a long-named option, it returns 0 if that option's   `flag' field is nonzero, the value of the option's `val' field   if the `flag' field is zero.   LONGOPTS is a vector of `struct option' terminated by an   element containing a name which is zero.   LONGIND returns the index in LONGOPT of the long-named option found.   It is only valid when a long-named option has been found by the most   recent call.   If LONG_ONLY is nonzero, '-' as well as '--' can introduce   long-named options.   If POSIXLY_CORRECT is nonzero, behave as if the POSIXLY_CORRECT   environment variable were set.  */int_getopt_internal_r (int argc, char **argv, const char *optstring,		    const struct option *longopts, int *longind,		    int long_only, int posixly_correct, struct _getopt_data *d){  int print_errors = d->opterr;  if (optstring[0] == ':')    print_errors = 0;  if (argc < 1)    return -1;  d->optarg = NULL;  if (d->optind == 0 || !d->__initialized)    {      if (d->optind == 0)	d->optind = 1;	/* Don't scan ARGV[0], the program name.  */      optstring = _getopt_initialize (argc, argv, optstring,				      posixly_correct, d);      d->__initialized = 1;    }  /* Test whether ARGV[optind] points to a non-option argument.     Either it does not have option syntax, or there is an environment flag     from the shell indicating it is not an option.  The later information     is only used when the used in the GNU libc.  */#if defined _LIBC && defined USE_NONOPTION_FLAGS# define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0' \		      || (d->optind < d->__nonoption_flags_len		      \			  && __getopt_nonoption_flags[d->optind] == '1'))#else# define NONOPTION_P (argv[d->optind][0] != '-' || argv[d->optind][1] == '\0')#endif  if (d->__nextchar == NULL || *d->__nextchar == '\0')    {      /* Advance to the next ARGV-element.  */      /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been	 moved back by the user (who may also have changed the arguments).  */      if (d->__last_nonopt > d->optind)	d->__last_nonopt = d->optind;      if (d->__first_nonopt > d->optind)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品全国免费观看高清| 性欧美大战久久久久久久久| 欧美日本一区二区三区| 国产在线国偷精品产拍免费yy| 亚洲视频一区在线| 精品国产一区二区三区久久影院| 91免费观看视频在线| 国产一区激情在线| 亚洲午夜一区二区三区| 国产精品嫩草影院com| 精品久久久久久久久久久久久久久| 色综合天天综合色综合av| 韩国欧美国产一区| 日韩国产欧美视频| 亚洲裸体xxx| 国产精品久久一卡二卡| 欧美大片一区二区三区| 欧美日韩在线观看一区二区 | 91蝌蚪porny| 日本强好片久久久久久aaa| 亚洲视频一区在线| 中文av字幕一区| 91麻豆精品国产自产在线观看一区 | 欧美中文字幕不卡| 粉嫩在线一区二区三区视频| 久久精品国产秦先生| 视频一区二区国产| 亚洲一区电影777| 亚洲精品中文在线| 中文字幕在线一区二区三区| 国产亚洲一区二区三区| 久久亚洲欧美国产精品乐播 | 欧美视频精品在线| 色综合激情久久| 波多野结衣在线aⅴ中文字幕不卡| 国产精品一区二区黑丝| 久久超碰97人人做人人爱| 美女在线观看视频一区二区| 亚洲国产精品欧美一二99| 一区二区成人在线视频| 久久精品72免费观看| 日本vs亚洲vs韩国一区三区 | 91亚洲精品久久久蜜桃网站| 成人激情校园春色| jiyouzz国产精品久久| www.久久久久久久久| 成人免费观看视频| 波多野结衣中文一区| av不卡免费在线观看| 菠萝蜜视频在线观看一区| 成人免费精品视频| av在线播放一区二区三区| 99re8在线精品视频免费播放| 99天天综合性| 欧美性视频一区二区三区| 欧美日本一区二区三区四区| 日韩欧美成人一区二区| 久久日一线二线三线suv| 国产婷婷一区二区| 国产精品久久久久久久久久久免费看| 最新中文字幕一区二区三区| 一区二区三区产品免费精品久久75| 亚洲国产视频在线| 久久国产生活片100| 国产成人高清在线| 91日韩精品一区| 欧美日韩激情一区二区三区| 日韩精品专区在线影院观看| 久久久精品tv| 亚洲另类在线一区| 天天综合日日夜夜精品| 激情五月婷婷综合网| 波多野结衣在线一区| 欧美精品色一区二区三区| 精品理论电影在线观看| 国产黑丝在线一区二区三区| caoporen国产精品视频| 欧美日韩精品一二三区| 久久久综合视频| 一区二区三区四区在线免费观看| 日本成人在线一区| 成人免费不卡视频| 欧美人牲a欧美精品| 中文字幕第一区第二区| 亚洲综合视频在线| 精品在线播放免费| 91免费小视频| 日韩欧美美女一区二区三区| 国产精品久久福利| 免费高清在线一区| 91麻豆国产精品久久| 日韩精品自拍偷拍| 一区二区三区四区不卡在线| 国产在线精品一区二区| 欧洲精品在线观看| 久久男人中文字幕资源站| 亚洲美女一区二区三区| 九九**精品视频免费播放| 日本韩国欧美三级| 欧美中文字幕一区二区三区| 欧美综合久久久| 国产亚洲欧美色| 青青草97国产精品免费观看无弹窗版| 成熟亚洲日本毛茸茸凸凹| 欧美日韩www| 一区免费观看视频| 国产精品自拍一区| 日韩欧美一级精品久久| 亚洲制服丝袜一区| 97se亚洲国产综合自在线| 精品国产区一区| 视频精品一区二区| 欧美午夜不卡视频| 日韩一区欧美小说| 国产iv一区二区三区| 日韩欧美国产综合| 日韩专区在线视频| 精品视频色一区| 亚洲黄色在线视频| 成人av网站免费| 2021久久国产精品不只是精品| 视频在线观看91| 欧美日本一区二区在线观看| 一片黄亚洲嫩模| 一本久久综合亚洲鲁鲁五月天| 欧美韩国日本综合| 国产一区二区三区国产| 亚洲视频一区二区免费在线观看| 国产成人av电影在线观看| 精品奇米国产一区二区三区| 美女脱光内衣内裤视频久久影院| 欧美日本一区二区三区四区| 亚洲图片有声小说| 精品视频1区2区| 亚洲成a人v欧美综合天堂下载| 欧美吞精做爰啪啪高潮| 一区二区三区小说| 欧美色男人天堂| 天天操天天综合网| 91麻豆精品国产91久久久资源速度 | 亚洲美女精品一区| 91在线观看成人| 国产精品久久精品日日| 成人黄页毛片网站| 日韩毛片精品高清免费| 色综合久久久久综合| 一区二区三区精品视频在线| 欧美视频一区二区三区四区| 天堂成人免费av电影一区| 91精品国产91久久综合桃花 | 久久综合成人精品亚洲另类欧美| 精品一区二区在线免费观看| 精品女同一区二区| 国产精品一区二区果冻传媒| 国产精品久久久一本精品| 色综合天天综合狠狠| 亚洲一区二区三区在线| 91精品国产综合久久精品app| 奇米777欧美一区二区| 久久久久久97三级| 99天天综合性| 亚洲成人av福利| 日韩欧美国产1| 成人免费视频免费观看| 亚洲精品欧美专区| 日韩一级完整毛片| 国产成人精品免费在线| 一区二区国产盗摄色噜噜| 日韩视频中午一区| 成人av网站在线观看| 亚洲地区一二三色| 精品福利av导航| av网站免费线看精品| 日韩激情一区二区| 国产清纯白嫩初高生在线观看91| 99久久久久久| 蜜臀99久久精品久久久久久软件| 中文字幕精品一区二区精品绿巨人| 欧美伊人久久大香线蕉综合69 | 欧美人妇做爰xxxⅹ性高电影 | 美女爽到高潮91| 中文字幕日韩av资源站| 91精品国模一区二区三区| 国产盗摄精品一区二区三区在线| 一区二区三区**美女毛片| 亚洲精品在线三区| 色999日韩国产欧美一区二区| 麻豆一区二区在线| 一区二区视频在线| 欧美精品一区二区三区在线 | 欧美亚洲综合另类| 国产一区二区三区四| 亚洲国产精品天堂| 国产精品无人区| 欧美一级日韩免费不卡| 色哦色哦哦色天天综合| 国产激情一区二区三区桃花岛亚洲| 午夜国产不卡在线观看视频| 亚洲欧美在线视频| 国产亚洲人成网站|