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

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

?? dcgettext.c

?? 電話本和短信的演示程序
?? 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 alloca
char *alloca ();
#   endif
#  endif
# endif
#endif

#include <errno.h>
#ifndef errno
extern int errno;
#endif
#ifndef __set_errno
# define __set_errno(val) errno = (val)
#endif

#if defined STDC_HEADERS || defined _LIBC
# include <stdlib.h>
#else
char *getenv ();
# ifdef HAVE_MALLOC_H
#  include <malloc.h>
# else
void 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_GETCWD
char *getwd ();
#  define getcwd(buf, max) getwd (buf)
# else
char *getcwd ();
# endif
# ifndef HAVE_STPCPY
static 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 */
#else
struct 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久久久资源速度| 欧美偷拍一区二区| 欧美精品亚洲二区| 日韩一级大片在线观看| 欧美电视剧免费全集观看| 精品国产a毛片| 国产亚洲精品中文字幕| 国产精品无码永久免费888| 亚洲欧洲日韩在线| 一区二区三区在线免费播放| 亚洲a一区二区| 精品一区二区国语对白| 国产乱人伦精品一区二区在线观看 | 久久国产精品99精品国产| 久久99精品久久久久久动态图 | 久久精品99国产精品日本| 精品一区二区三区影院在线午夜| 91精品免费在线| 精品国精品国产尤物美女| 国产日韩欧美一区二区三区乱码| 中文字幕在线播放不卡一区| 亚洲国产精品一区二区www| 久久精品国产99| 不卡的av中国片| 欧美日韩电影一区| 久久免费精品国产久精品久久久久| 国产精品成人午夜| 亚洲一区二区美女| 国产九九视频一区二区三区| 91在线一区二区| 欧美一区二区三区免费大片 | 日韩美女视频一区| 亚洲国产精品天堂| 国产一区二区免费看| 91首页免费视频| 欧美日本乱大交xxxxx| 久久久影视传媒| 亚洲美女在线一区| 久久国产剧场电影| 91久久精品一区二区三区| 精品三级av在线| 亚洲黄色免费网站| 精东粉嫩av免费一区二区三区| 91麻豆国产香蕉久久精品| 欧美一级搡bbbb搡bbbb| 日韩码欧中文字| 精品一区二区久久久| 色欧美88888久久久久久影院| 精品美女在线播放| 夜夜嗨av一区二区三区中文字幕| 精品综合久久久久久8888| 日本精品裸体写真集在线观看| 精品国产青草久久久久福利| 亚洲一线二线三线久久久| 国产高清不卡二三区| 欧美日韩免费观看一区三区| 欧美韩国日本一区| 日本成人在线不卡视频| 欧洲av在线精品| 国产精品久久久久一区二区三区共| 美女性感视频久久| 欧美日韩久久久久久| 一区在线播放视频| 成人综合婷婷国产精品久久 | 亚洲大片精品永久免费| 国产精品一区二区你懂的| 51久久夜色精品国产麻豆| 亚洲精品日韩一| 99久久精品免费精品国产| 精品对白一区国产伦| 日韩精品三区四区| 欧美在线你懂得| 日韩一区在线播放| 大尺度一区二区| 久久精品亚洲精品国产欧美kt∨ | 日韩欧美一二三区| 亚洲丰满少妇videoshd| 色综合一区二区| 国产精品麻豆99久久久久久| 国产一二精品视频| 精品国产三级电影在线观看| 免费在线一区观看| 3d成人h动漫网站入口| 亚洲观看高清完整版在线观看| 91在线小视频| 亚洲免费观看高清| 色欧美日韩亚洲| 亚洲综合视频网| 欧美三级午夜理伦三级中视频| 亚洲男同1069视频| 日本丰满少妇一区二区三区| 一区二区在线电影| 91黄色免费网站| 亚洲影视资源网| 欧美久久婷婷综合色| 日日夜夜一区二区| 5858s免费视频成人| 免费在线看一区| 久久先锋影音av| 粉嫩一区二区三区在线看| 欧美国产精品久久| 成人app网站| 亚洲乱码国产乱码精品精98午夜| 色哟哟精品一区| 亚洲国产日韩精品| 欧美精品视频www在线观看| 日韩精品电影在线| 日韩欧美国产麻豆| 懂色av一区二区三区免费看| 国产精品天天看| 色88888久久久久久影院按摩| 亚洲成a人片在线观看中文| 欧美一级在线观看| 国产美女在线观看一区| 亚洲欧洲三级电影| 欧美精品一卡二卡| 久久9热精品视频| 中文字幕国产一区| 一本大道久久a久久综合| 亚洲国产精品麻豆| 日韩欧美成人一区二区| 国产·精品毛片| 一区二区三区产品免费精品久久75| 欧美日韩国产免费一区二区| 久久99深爱久久99精品| 中文字幕第一区第二区| 在线观看网站黄不卡| 久久精品国产色蜜蜜麻豆| 久久精品免视看| 在线视频综合导航| 美腿丝袜在线亚洲一区| 国产精品成人网| 欧美一级生活片| 波多野结衣中文字幕一区| 亚洲123区在线观看| 久久久99免费| 日本韩国欧美三级| 久久99国产精品久久99| 亚洲精品久久久蜜桃| 欧美岛国在线观看| 99re视频这里只有精品| 日日夜夜精品视频天天综合网| 国产色爱av资源综合区| 欧洲激情一区二区| 国产高清久久久| 日韩激情av在线| 97精品国产露脸对白| 日本视频免费一区| 亚洲欧美色一区| 久久精品视频一区二区三区| 欧美性猛片aaaaaaa做受| 国产精品系列在线播放| 午夜精品视频在线观看| 1000精品久久久久久久久| 日韩精品一区二区三区在线观看| 91一区一区三区| 国产在线精品一区二区三区不卡| 亚洲超碰精品一区二区| 国产精品美女视频| 欧美变态tickling挠脚心| 日本久久一区二区| 成人精品一区二区三区四区 | 麻豆视频一区二区| 夜夜揉揉日日人人青青一国产精品 | 日韩欧美亚洲国产另类| 91蜜桃免费观看视频| 国产一区 二区| 久久福利视频一区二区| 五月天婷婷综合| 亚洲夂夂婷婷色拍ww47| 亚洲图片你懂的| 欧美激情一区在线| 精品国精品自拍自在线| 91精品福利在线一区二区三区| 91激情在线视频| 97久久人人超碰| 成人国产亚洲欧美成人综合网 | 99在线精品视频| 国产精品资源网站| 精品一区二区日韩| 麻豆精品视频在线观看免费| 亚洲午夜久久久久| 一区二区三区蜜桃| 樱桃国产成人精品视频| 最近中文字幕一区二区三区| 国产精品毛片高清在线完整版| 国产日韩欧美麻豆| 国产午夜精品一区二区三区四区 | 亚洲精品视频在线看| 国产精品久久国产精麻豆99网站 | 精品一区二区三区在线视频|