~ubuntu-branches/ubuntu/trusty/gettext/trusty

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-lib/unistr/u8-prev.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-10-21 19:12:18 UTC
  • mfrom: (2.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20131021191218-5t1ixdaae0dbc1l3
Tags: 0.18.3.1-1ubuntu1
* Merge with Debian; remaining changes:
  - Allow the package to cross-build.
  - Define a stage1 profile to build without java and git.
  - Throw away /usr/lib/gettext/gnu.gettext*; we don't need them.
  - Explicitly configure with --disable-csharp.
  - Keep gettext.jar in /usr/share/gettext instead of moving it to
    /usr/share/java.
  - Drop autopoint recommends of gettext. It pulls in git and
    other sizable packages which make the CDs explode.
* gettext-el: Add an alternative dependency on emacs24.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Iterate over previous character in UTF-8 string.
2
 
   Copyright (C) 2002, 2006-2007, 2009-2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 2002, 2006-2007, 2009-2013 Free Software Foundation, Inc.
3
3
   Written by Bruno Haible <bruno@clisp.org>, 2002.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify it
10
10
   This program is distributed in the hope that it will be useful,
11
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
   Lesser General Public License for more details.
 
13
   General Public License for more details.
14
14
 
15
15
   You should have received a copy of the GNU General Public License
16
16
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
23
23
const uint8_t *
24
24
u8_prev (ucs4_t *puc, const uint8_t *s, const uint8_t *start)
25
25
{
26
 
  /* Keep in sync with unistr.h and utf8-ucs4.c.  */
 
26
  /* Keep in sync with unistr.h and u8-mbtouc-aux.c.  */
27
27
  if (s != start)
28
28
    {
29
29
      uint8_t c_1 = s[-1];