[BACK]Return to textdomain.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libintl

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libintl/textdomain.c between version 1.11 and 1.12

version 1.11, 2004/09/23 16:44:26 version 1.12, 2007/09/25 08:19:09
Line 44  static struct domainbinding __default_bi
Line 44  static struct domainbinding __default_bi
 struct domainbinding *__bindings = &__default_binding;  struct domainbinding *__bindings = &__default_binding;
 char __current_domainname[PATH_MAX] = DEFAULT_DOMAINNAME;  char __current_domainname[PATH_MAX] = DEFAULT_DOMAINNAME;
   
 static struct domainbinding *domainbinding_lookup __P((const char *, int));  static struct domainbinding *domainbinding_lookup(const char *, int);
   
 /*  /*
  * set the default domainname for dcngettext() and friends.   * set the default domainname for dcngettext() and friends.
  */   */
 char *  char *
 textdomain(domainname)  textdomain(const char *domainname)
         const char *domainname;  
 {  {
   
         /* NULL pointer gives the current setting */          /* NULL pointer gives the current setting */
Line 70  textdomain(domainname)
Line 69  textdomain(domainname)
 }  }
   
 char *  char *
 bindtextdomain(domainname, dirname)  bindtextdomain(const char *domainname, const char *dirname)
         const char *domainname;  
         const char *dirname;  
 {  {
         struct domainbinding *p;          struct domainbinding *p;
   
Line 108  bindtextdomain(domainname, dirname)
Line 105  bindtextdomain(domainname, dirname)
 }  }
   
 char *  char *
 bind_textdomain_codeset(domainname, codeset)  bind_textdomain_codeset(const char *domainname, const char *codeset)
         const char *domainname;  
         const char *codeset;  
 {  {
         struct domainbinding *p;          struct domainbinding *p;
   
Line 131  bind_textdomain_codeset(domainname, code
Line 126  bind_textdomain_codeset(domainname, code
  * lookup binding for the domainname   * lookup binding for the domainname
  */   */
 static struct domainbinding *  static struct domainbinding *
 domainbinding_lookup(domainname, alloc)  domainbinding_lookup(const char *domainname, int alloc)
         const char *domainname;  
         int alloc;  
 {  {
         struct domainbinding *p;          struct domainbinding *p;
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

CVSweb <webmaster@jp.NetBSD.org>