~ubuntu-branches/debian/sid/git/sid

« back to all changes in this revision

Viewing changes to gettext.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Nieder
  • Date: 2013-06-12 07:50:53 UTC
  • mfrom: (1.2.19) (2.1.31 experimental)
  • Revision ID: package-import@ubuntu.com-20130612075053-uue9xe0dq0rvm44y
Tags: 1:1.8.3.1-1
* merge branch debian-experimental
* new upstream point release (see RelNotes/1.8.3.1.txt).
* debian/watch: use xz-compressed tarballs from kernel.org.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#ifndef NO_GETTEXT
32
32
extern void git_setup_gettext(void);
 
33
extern int gettext_width(const char *s);
33
34
#else
34
35
static inline void git_setup_gettext(void)
35
36
{
36
37
}
 
38
static inline int gettext_width(const char *s)
 
39
{
 
40
        return strlen(s);
 
41
}
37
42
#endif
38
43
 
39
44
#ifdef GETTEXT_POISON
44
49
 
45
50
static inline FORMAT_PRESERVING(1) const char *_(const char *msgid)
46
51
{
 
52
        if (!*msgid)
 
53
                return "";
47
54
        return use_gettext_poison() ? "# GETTEXT POISON #" : gettext(msgid);
48
55
}
49
56