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

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

?? dcgettext.c

?? minicom2.0源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* Implementation of the dcgettext(3) function.   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.   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.  */#ifdef HAVE_CONFIG_H# include <config.h>#endif#include <sys/types.h>#ifdef __GNUC__# define alloca __builtin_alloca# define HAVE_ALLOCA 1#else# if defined HAVE_ALLOCA_H || defined _LIBC#  include <alloca.h># else#  ifdef _AIX #pragma alloca#  else#   ifndef allocachar *alloca ();#   endif#  endif# endif#endif#include <errno.h>#ifndef errnoextern int errno;#endif#ifndef __set_errno# define __set_errno(val) errno = (val)#endif#if defined STDC_HEADERS || defined _LIBC# include <stdlib.h>#elsechar *getenv ();# ifdef HAVE_MALLOC_H#  include <malloc.h># elsevoid free ();# endif#endif#if defined HAVE_STRING_H || defined _LIBC# ifndef _GNU_SOURCE#  define _GNU_SOURCE	1# endif# include <string.h>#else# include <strings.h>#endif#if !HAVE_STRCHR && !defined _LIBC# ifndef strchr#  define strchr index# endif#endif#if defined HAVE_UNISTD_H || defined _LIBC# include <unistd.h>#endif#include "gettext.h"#include "gettextP.h"#ifdef _LIBC# include <libintl.h>#else# include "libgettext.h"#endif#include "hash-string.h"/* @@ end of prolog @@ */#ifdef _LIBC/* Rename the non ANSI C functions.  This is required by the standard   because some ANSI C functions will require linking with this object   file and the name space must not be polluted.  */# define getcwd __getcwd# ifndef stpcpy#  define stpcpy __stpcpy# endif#else# if !defined HAVE_GETCWDchar *getwd ();#  define getcwd(buf, max) getwd (buf)# elsechar *getcwd ();# endif# ifndef HAVE_STPCPYstatic char *stpcpy PARAMS ((char *dest, const char *src));# endif#endif/* Amount to increase buffer size by in each try.  */#define PATH_INCR 32/* The following is from pathmax.h.  *//* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define   PATH_MAX but might cause redefinition warnings when sys/param.h is   later included (as on MORE/BSD 4.3).  */#if defined(_POSIX_VERSION) || (defined(HAVE_LIMITS_H) && !defined(__GNUC__))# include <limits.h>#endif#ifndef _POSIX_PATH_MAX# define _POSIX_PATH_MAX 255#endif#if !defined(PATH_MAX) && defined(_PC_PATH_MAX)# define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX))#endif/* Don't include sys/param.h if it already has been.  */#if defined(HAVE_SYS_PARAM_H) && !defined(PATH_MAX) && !defined(MAXPATHLEN)# include <sys/param.h>#endif#if !defined(PATH_MAX) && defined(MAXPATHLEN)# define PATH_MAX MAXPATHLEN#endif#ifndef PATH_MAX# define PATH_MAX _POSIX_PATH_MAX#endif/* XPG3 defines the result of `setlocale (category, NULL)' as:   ``Directs `setlocale()' to query `category' and return the current     setting of `local'.''   However it does not specify the exact format.  And even worse: POSIX   defines this not at all.  So we can use this feature only on selected   system (e.g. those using GNU C Library).  */#ifdef _LIBC# define HAVE_LOCALE_NULL#endif/* Name of the default domain used for gettext(3) prior any call to   textdomain(3).  The default value for this is "messages".  */const char _nl_default_default_domain[] = "messages";/* Value used as the default domain for gettext(3).  */const char *_nl_current_default_domain = _nl_default_default_domain;/* Contains the default location of the message catalogs.  */const char _nl_default_dirname[] = GNULOCALEDIR;/* List with bindings of specific domains created by bindtextdomain()   calls.  */struct binding *_nl_domain_bindings;/* Prototypes for local functions.  */static char *find_msg PARAMS ((struct loaded_l10nfile *domain_file,			       const char *msgid)) internal_function;static const char *category_to_name PARAMS ((int category)) internal_function;static const char *guess_category_value PARAMS ((int category,						 const char *categoryname))     internal_function;/* For those loosing systems which don't have `alloca' we have to add   some additional code emulating it.  */#ifdef HAVE_ALLOCA/* Nothing has to be done.  */# define ADD_BLOCK(list, address) /* nothing */# define FREE_BLOCKS(list) /* nothing */#elsestruct block_list{  void *address;  struct block_list *next;};# define ADD_BLOCK(list, addr)						      \  do {									      \    struct block_list *newp = (struct block_list *) malloc (sizeof (*newp));  \    /* If we cannot get a free block we cannot add the new element to	      \       the list.  */							      \    if (newp != NULL) {							      \      newp->address = (addr);						      \      newp->next = (list);						      \      (list) = newp;							      \    }									      \  } while (0)# define FREE_BLOCKS(list)						      \  do {									      \    while (list != NULL) {						      \      struct block_list *old = list;					      \      list = list->next;						      \      free (old);							      \    }									      \  } while (0)# undef alloca# define alloca(size) (malloc (size))#endif	/* have alloca *//* Names for the libintl functions are a problem.  They must not clash   with existing names and they should follow ANSI C.  But this source   code is also used in GNU C Library where the names have a __   prefix.  So we have to make a difference here.  */#ifdef _LIBC# define DCGETTEXT __dcgettext#else# define DCGETTEXT dcgettext__#endif/* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY   locale.  */char *DCGETTEXT (domainname, msgid, category)     const char *domainname;     const char *msgid;     int category;{#ifndef HAVE_ALLOCA  struct block_list *block_list = NULL;#endif  struct loaded_l10nfile *domain;  struct binding *binding;  const char *categoryname;  const char *categoryvalue;  char *dirname, *xdomainname;  char *single_locale;  char *retval;  int saved_errno = errno;  /* If no real MSGID is given return NULL.  */  if (msgid == NULL)    return NULL;  /* If DOMAINNAME is NULL, we are interested in the default domain.  If     CATEGORY is not LC_MESSAGES this might not make much sense but the     defintion left this undefined.  */  if (domainname == NULL)    domainname = _nl_current_default_domain;  /* First find matching binding.  */  for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next)    {      int compare = strcmp (domainname, binding->domainname);      if (compare == 0)	/* We found it!  */	break;      if (compare < 0)	{	  /* It is not in the list.  */	  binding = NULL;	  break;	}    }  if (binding == NULL)    dirname = (char *) _nl_default_dirname;  else if (binding->dirname[0] == '/')    dirname = binding->dirname;  else    {      /* We have a relative path.  Make it absolute now.  */      size_t dirname_len = strlen (binding->dirname) + 1;      size_t path_max;      char *ret;      path_max = (unsigned) PATH_MAX;      path_max += 2;		/* The getcwd docs say to do this.  */      dirname = (char *) alloca (path_max + dirname_len);      ADD_BLOCK (block_list, dirname);      __set_errno (0);      while ((ret = getcwd (dirname, path_max)) == NULL && errno == ERANGE)	{	  path_max += PATH_INCR;	  dirname = (char *) alloca (path_max + dirname_len);	  ADD_BLOCK (block_list, dirname);	  __set_errno (0);	}      if (ret == NULL)	{	  /* We cannot get the current working directory.  Don't signal an	     error but simply return the default string.  */	  FREE_BLOCKS (block_list);	  __set_errno (saved_errno);	  return (char *) msgid;	}      stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname);    }  /* Now determine the symbolic name of CATEGORY and its value.  */  categoryname = category_to_name (category);  categoryvalue = guess_category_value (category, categoryname);  xdomainname = (char *) alloca (strlen (categoryname)				 + strlen (domainname) + 5);  ADD_BLOCK (block_list, xdomainname);  stpcpy (stpcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),		  domainname),	  ".mo");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产69精品久久久久毛片| 亚洲电影激情视频网站| 精品一区二区免费| 欧美视频精品在线| 亚洲色图.com| 26uuu精品一区二区| 一区二区成人在线视频| 成年人午夜久久久| 国产精品青草综合久久久久99| 蜜桃久久精品一区二区| 欧美日韩国产欧美日美国产精品| 亚洲三级在线看| 91美女片黄在线观看| 亚洲欧美乱综合| 一本久久a久久免费精品不卡| 国产午夜精品在线观看| 国产成人在线网站| 中文乱码免费一区二区| 成人精品视频网站| 成人免费在线视频| 色先锋aa成人| 国产美女娇喘av呻吟久久| 亚洲影视资源网| 精品在线亚洲视频| 精品电影一区二区| 成人黄色777网| 亚洲三级在线免费观看| 欧美日韩一区二区三区视频| 亚洲午夜免费视频| 日韩欧美国产电影| 丁香一区二区三区| 一级日本不卡的影视| 91精品国产综合久久小美女| 黑人精品欧美一区二区蜜桃 | 国产乱一区二区| 国产精品免费视频观看| 欧美性猛交xxxx乱大交退制版| 日韩精品1区2区3区| 国产欧美日韩综合| 欧美色老头old∨ideo| 国产精品12区| 午夜久久久影院| 国产拍欧美日韩视频二区| 色哟哟一区二区三区| 精品一区中文字幕| 一区二区三区不卡视频| 久久久久久久久久久久久久久99| 91成人国产精品| 国产v综合v亚洲欧| 裸体一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了| 欧美一区二区三区视频免费 | 免费观看久久久4p| 综合久久国产九一剧情麻豆| 久久久久成人黄色影片| 91精品国产综合久久福利| 91丝袜呻吟高潮美腿白嫩在线观看| 久久精品国产精品亚洲红杏| 香蕉久久一区二区不卡无毒影院| 国产精品麻豆欧美日韩ww| 久久久美女艺术照精彩视频福利播放 | 久久亚洲综合色| 91精品国产一区二区三区蜜臀| 91麻豆蜜桃一区二区三区| 国产麻豆精品久久一二三| 久久99精品国产.久久久久| 午夜精品一区二区三区免费视频| 亚洲乱码国产乱码精品精小说| 久久夜色精品国产欧美乱极品| 91精品国产综合久久精品性色| 在线免费观看一区| 色妞www精品视频| 99re热视频精品| 91久久奴性调教| 欧美日韩综合色| 欧美一区二区三区在线电影| 欧美精品欧美精品系列| 欧美日韩国产一级片| 制服丝袜日韩国产| 欧美一区二区三区白人| 日韩欧美精品三级| 一区二区三区蜜桃网| 亚洲视频小说图片| 一区二区三区欧美亚洲| 亚洲国产美国国产综合一区二区| 日日摸夜夜添夜夜添亚洲女人| 亚洲成a天堂v人片| 久久精品99国产精品| 风流少妇一区二区| 666欧美在线视频| 国产真实乱子伦精品视频| 亚洲亚洲精品在线观看| 天涯成人国产亚洲精品一区av| 麻豆精品久久久| aaa欧美大片| 4438x成人网最大色成网站| 久久九九久久九九| 一区二区三区在线视频观看58 | 精品捆绑美女sm三区| 国产精品不卡在线| 青青国产91久久久久久| 成人av资源站| 日韩欧美国产成人一区二区| 国产精品久久国产精麻豆99网站| 午夜影院久久久| 成人18视频日本| 欧美成人欧美edvon| 亚洲444eee在线观看| 91在线免费看| 欧美激情一区在线观看| 日本成人在线看| 91丨porny丨最新| 国产日产精品一区| 喷水一区二区三区| 91国产福利在线| 亚洲欧美在线观看| 国产精品18久久久久久久久久久久 | 亚洲乱码国产乱码精品精小说| 国产乱对白刺激视频不卡| 欧美日韩不卡视频| 亚洲视频电影在线| 成人小视频在线观看| 久久免费看少妇高潮| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美三级电影网站| 亚洲最新视频在线观看| 一本色道久久综合亚洲91| 成人欧美一区二区三区1314| 99麻豆久久久国产精品免费| 国产欧美日韩综合| 99久久综合狠狠综合久久| 国产精品卡一卡二| 色偷偷久久人人79超碰人人澡| 中文字幕综合网| 欧美最猛性xxxxx直播| 亚洲高清不卡在线观看| 正在播放一区二区| 久久99深爱久久99精品| 久久久国产一区二区三区四区小说| 国产精品资源网站| |精品福利一区二区三区| 色老汉一区二区三区| 午夜一区二区三区在线观看| 欧美日韩国产美女| 老色鬼精品视频在线观看播放| 2020国产精品自拍| 99久久夜色精品国产网站| 亚洲日本乱码在线观看| 欧美日韩精品一区视频| 青青草国产精品97视觉盛宴| 久久久91精品国产一区二区三区| 国产91对白在线观看九色| 夜夜嗨av一区二区三区中文字幕 | 国产精品丝袜91| 欧美在线你懂的| 韩国女主播一区| 亚洲精品国产a| 日韩午夜在线播放| 成人激情校园春色| 国产一区二区免费看| 成年人网站91| 国产成人综合精品三级| 丁香六月久久综合狠狠色| 国产精品系列在线播放| 高清在线观看日韩| 丰满岳乱妇一区二区三区| 国产精品一色哟哟哟| 国产成人精品aa毛片| 成人一道本在线| 99视频精品全部免费在线| www..com久久爱| 一本色道**综合亚洲精品蜜桃冫| 欧洲视频一区二区| 欧美美女激情18p| 蜜乳av一区二区三区| 蜜桃精品视频在线| 国产精品一区二区在线观看不卡| 粉嫩av亚洲一区二区图片| 丁香天五香天堂综合| 99久久久久久| 欧美日韩一卡二卡三卡| 日韩欧美电影在线| 久久久久综合网| 综合婷婷亚洲小说| 一区二区免费在线播放| 午夜伦欧美伦电影理论片| 久久国产精品99精品国产| 国产精品一二二区| 91在线一区二区三区| 欧美视频日韩视频在线观看| 日韩片之四级片| 国产欧美精品一区| 一区二区免费在线播放| 久久精品72免费观看| 懂色av一区二区三区蜜臀| 欧美在线观看视频一区二区三区| 日韩一级完整毛片| 国产精品久久久久久久久免费樱桃| 亚洲一区二区在线观看视频| 久久er99热精品一区二区|