~ubuntu-branches/ubuntu/hardy/gnupg2/hardy-proposed

« back to all changes in this revision

Viewing changes to intl/printf-parse.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-05-15 13:54:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070515135455-89qfyalmgjy6gcqw
Tags: 2.0.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
  - Include /doc files as done with gnupg
  - debian/rules: add doc/com-certs.pem to the docs for gpgsm
  - debian/copyright: update download url
  - debian/README.Debian: remove note the gnupg2 isn't released yet.
  - debian/control: Change Maintainer/XSBC-Original-Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Formatted output to strings.
2
 
   Copyright (C) 1999-2000, 2002-2003 Free Software Foundation, Inc.
 
2
   Copyright (C) 1999-2000, 2002-2003, 2006 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software; you can redistribute it and/or modify it
5
5
   under the terms of the GNU Library General Public License as published
16
16
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17
17
   USA.  */
18
18
 
19
 
#ifdef HAVE_CONFIG_H
20
 
# include <config.h>
21
 
#endif
 
19
#include <config.h>
22
20
 
23
21
/* Specification.  */
24
22
#if WIDE_CHAR_VERSION
385
383
              switch (c)
386
384
                {
387
385
                case 'd': case 'i':
388
 
#ifdef HAVE_LONG_LONG
 
386
#ifdef HAVE_LONG_LONG_INT
 
387
                  /* If 'long long' exists and is larger than 'long':  */
389
388
                  if (flags >= 16 || (flags & 4))
390
389
                    type = TYPE_LONGLONGINT;
391
390
                  else
392
391
#endif
 
392
                  /* If 'long long' exists and is the same as 'long', we parse
 
393
                     "lld" into TYPE_LONGINT.  */
393
394
                  if (flags >= 8)
394
395
                    type = TYPE_LONGINT;
395
396
                  else if (flags & 2)
400
401
                    type = TYPE_INT;
401
402
                  break;
402
403
                case 'o': case 'u': case 'x': case 'X':
403
 
#ifdef HAVE_LONG_LONG
 
404
#ifdef HAVE_LONG_LONG_INT
 
405
                  /* If 'long long' exists and is larger than 'long':  */
404
406
                  if (flags >= 16 || (flags & 4))
405
407
                    type = TYPE_ULONGLONGINT;
406
408
                  else
407
409
#endif
 
410
                  /* If 'unsigned long long' exists and is the same as
 
411
                     'unsigned long', we parse "llu" into TYPE_ULONGINT.  */
408
412
                  if (flags >= 8)
409
413
                    type = TYPE_ULONGINT;
410
414
                  else if (flags & 2)
459
463
                  type = TYPE_POINTER;
460
464
                  break;
461
465
                case 'n':
462
 
#ifdef HAVE_LONG_LONG
 
466
#ifdef HAVE_LONG_LONG_INT
 
467
                  /* If 'long long' exists and is larger than 'long':  */
463
468
                  if (flags >= 16 || (flags & 4))
464
469
                    type = TYPE_COUNT_LONGLONGINT_POINTER;
465
470
                  else
466
471
#endif
 
472
                  /* If 'long long' exists and is the same as 'long', we parse
 
473
                     "lln" into TYPE_COUNT_LONGINT_POINTER.  */
467
474
                  if (flags >= 8)
468
475
                    type = TYPE_COUNT_LONGINT_POINTER;
469
476
                  else if (flags & 2)