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

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

?? dcgettext.c

?? 對各種手機進行編程的工具包源碼gsmlib 1.9版本。
?? 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 <gsm_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一区二区三区免费野_久草精品视频
91精品国产色综合久久不卡电影| 91在线无精精品入口| 韩国av一区二区三区在线观看| 成人精品国产免费网站| 欧美精品丝袜中出| 中文字幕成人在线观看| 日本成人在线看| 色婷婷综合久久久久中文一区二区| 欧美一区二区三区播放老司机| 亚洲色欲色欲www| 国产一区二区在线看| 亚洲成人第一页| 日韩欧美亚洲另类制服综合在线| 久久久国产精品麻豆| 日韩极品在线观看| 欧美在线观看禁18| 日韩毛片精品高清免费| 国产精品乡下勾搭老头1| 欧美疯狂做受xxxx富婆| 亚洲精品videosex极品| av中文字幕亚洲| 久久精品男人的天堂| 蜜臀久久久久久久| 欧美日韩中文字幕一区二区| 亚洲男同性视频| 91网上在线视频| 国产精品成人免费精品自在线观看| 国产精品系列在线播放| 久久久久99精品国产片| 国产精品白丝jk黑袜喷水| 欧美精品一区二区三区视频| 国精产品一区一区三区mba视频 | 欧美色大人视频| 国产精品女同一区二区三区| 国产一区二区在线影院| 亚洲精品在线一区二区| 久久精品国产99| 精品日韩欧美一区二区| 精品一区二区三区香蕉蜜桃| 日韩免费一区二区| 精品一区二区三区在线观看| 精品美女一区二区| 国产999精品久久| 欧美国产欧美亚州国产日韩mv天天看完整| 国产一区二区三区av电影| 久久久影视传媒| 欧美日韩亚洲国产综合| 亚洲一区av在线| 欧美一区二区不卡视频| 久久99国产精品久久99果冻传媒| 色婷婷亚洲一区二区三区| 一区二区三区中文字幕精品精品 | 国产精品久久久久三级| 99视频超级精品| 亚洲成va人在线观看| 777a∨成人精品桃花网| 黄色日韩三级电影| 国产精品三级视频| 欧美主播一区二区三区| 蜜臀久久99精品久久久画质超高清 | 日韩三级伦理片妻子的秘密按摩| 韩国成人福利片在线播放| 中文字幕电影一区| 日本二三区不卡| 奇米影视在线99精品| 亚洲国产精品精华液ab| 国产精品久久久久久亚洲伦| 日韩欧美国产小视频| 国产永久精品大片wwwapp| 国产精品免费av| 欧美三级视频在线| 韩国一区二区在线观看| 亚洲色大成网站www久久九九| 欧美日韩高清影院| 国产成人自拍在线| 天天综合色天天综合色h| 久久噜噜亚洲综合| 欧美日韩免费观看一区二区三区| 国内外成人在线| 亚洲激情图片qvod| 久久久99久久精品欧美| 欧美日韩国产综合视频在线观看| 国产成人综合视频| 日本美女一区二区| 亚洲欧美日韩电影| 国产精品网站一区| 91在线国产福利| 久久精品国产一区二区| 一区二区三区小说| 国产欧美一区视频| 日韩欧美国产麻豆| 欧洲一区在线观看| 成人高清伦理免费影院在线观看| 日韩av高清在线观看| 亚洲精品菠萝久久久久久久| 国产亚洲精品aa| 欧美mv日韩mv国产| 欧美中文字幕一二三区视频| 懂色av中文一区二区三区| 奇米888四色在线精品| 亚洲精品日日夜夜| 中文字幕一区二区三区四区| 国产亚洲成aⅴ人片在线观看 | 日本不卡视频一二三区| 亚洲黄色小说网站| 亚洲欧美在线高清| 国产欧美一区二区精品性| 日韩一区二区三区免费看| 免费在线观看不卡| 亚洲综合一二三区| 日韩毛片在线免费观看| 中文字幕一区二区三区av| 国产日韩av一区| 亚洲国产精品t66y| 国产精品午夜在线观看| 国产精品―色哟哟| 亚洲图片另类小说| 午夜激情久久久| 一个色综合av| 午夜精品一区二区三区电影天堂| 亚洲国产精品久久久久婷婷884 | 日韩av电影天堂| 免费在线观看一区二区三区| 日韩av一级电影| 国产一区二区三区四| 中文字幕av不卡| 国产精品视频看| 欧美精品一二三| 中文字幕在线不卡| 日本一区二区三区免费乱视频| 久久亚洲精华国产精华液 | 欧美一区二区性放荡片| 欧美日韩国产片| 日韩视频一区二区| 久久久亚洲午夜电影| 中文字幕永久在线不卡| 亚洲精品成a人| 琪琪一区二区三区| 国产酒店精品激情| 92精品国产成人观看免费 | 久久综合九色欧美综合狠狠| 国产亚洲美州欧州综合国| 综合网在线视频| 丝袜脚交一区二区| 国产精品主播直播| 色网综合在线观看| 日韩精品自拍偷拍| 国产精品久久99| 丝袜a∨在线一区二区三区不卡| 久久欧美一区二区| 国产二区国产一区在线观看| 成人深夜视频在线观看| 91精品91久久久中77777| 555夜色666亚洲国产免| 国产三级三级三级精品8ⅰ区| 亚洲欧美日韩人成在线播放| 日本中文字幕不卡| 国产suv精品一区二区三区| 欧美最新大片在线看| 久久久久久久久久久99999| 亚洲欧美日韩国产手机在线| 精品一区二区免费| 色婷婷精品大视频在线蜜桃视频| 日韩一卡二卡三卡| 亚洲欧美激情一区二区| 久国产精品韩国三级视频| 色综合久久88色综合天天免费| 日韩欧美一区二区在线视频| 一区二区三区国产| 国产成人免费在线视频| 欧美精品乱码久久久久久| 亚洲欧洲性图库| 国产一区不卡视频| 欧美理论在线播放| 亚洲免费视频中文字幕| 国产传媒一区在线| www久久精品| 色就色 综合激情| 日韩视频免费观看高清完整版在线观看 | 欧美大度的电影原声| 一区二区三区产品免费精品久久75| 国产乱淫av一区二区三区 | 国产亚洲午夜高清国产拍精品| 午夜精品久久久久久久久 | 国产久卡久卡久卡久卡视频精品| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲少妇屁股交4| 成人激情av网| 欧美激情在线免费观看| 国产在线精品一区二区三区不卡| 成人欧美一区二区三区黑人麻豆 | 中文一区一区三区高中清不卡| 裸体一区二区三区| 欧美日韩你懂得| 亚洲午夜视频在线观看| 91色porny| 亚洲欧美日韩综合aⅴ视频| 99久久精品情趣| 国产精品成人免费精品自在线观看| 国产精一区二区三区|