~ubuntu-branches/debian/squeeze/lftp/squeeze

« back to all changes in this revision

Viewing changes to lib/strings.in.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2010-04-09 23:45:53 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409234553-7ay83rk2aas3r7g3
Tags: 4.0.6-1
* new upstream release from 2010-03-25
  - fixes proftp problem. closes: Bug#570861
* switched to to dpkg-source 3.0 (quilt)
* pget help and lftp -h mentions -c since some time
  closes: Bug#377043
* lftp -c exists.:) closes: Bug#401572

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A substitute <strings.h>.
2
2
 
3
 
   Copyright (C) 2007-2009 Free Software Foundation, Inc.
 
3
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
29
29
#define _GL_STRINGS_H
30
30
 
31
31
 
32
 
/* The definition of GL_LINK_WARNING is copied here.  */
33
 
 
34
32
/* The definition of _GL_ARG_NONNULL is copied here.  */
35
33
 
 
34
/* The definition of _GL_WARN_ON_USE is copied here.  */
36
35
 
37
36
#ifdef __cplusplus
38
37
extern "C" {
52
51
   POSIX says that it operates on "strings", and "string" in POSIX is defined
53
52
   as a sequence of bytes, not of characters.   */
54
53
# undef strcasecmp
55
 
# define strcasecmp(a,b) \
56
 
    (GL_LINK_WARNING ("strcasecmp cannot work correctly on character strings " \
57
 
                      "in multibyte locales - " \
58
 
                      "use mbscasecmp if you care about " \
59
 
                      "internationalization, or use c_strcasecmp (from " \
60
 
                      "gnulib module c-strcase) if you want a locale " \
61
 
                      "independent function"), \
62
 
     strcasecmp (a, b))
 
54
# if HAVE_RAW_DECL_STRCASECMP
 
55
_GL_WARN_ON_USE (strcasecmp, "strcasecmp cannot work correctly on character "
 
56
                 "strings in multibyte locales - "
 
57
                 "use mbscasecmp if you care about "
 
58
                 "internationalization, or use c_strcasecmp , "
 
59
                 "gnulib module c-strcase) if you want a locale "
 
60
                 "independent function");
 
61
# endif
63
62
#endif
64
63
 
65
64
/* Compare no more than N bytes of strings S1 and S2, ignoring case,
75
74
   POSIX says that it operates on "strings", and "string" in POSIX is defined
76
75
   as a sequence of bytes, not of characters.  */
77
76
# undef strncasecmp
78
 
# define strncasecmp(a,b,n) \
79
 
    (GL_LINK_WARNING ("strncasecmp cannot work correctly on character " \
80
 
                      "strings in multibyte locales - " \
81
 
                      "use mbsncasecmp or mbspcasecmp if you care about " \
82
 
                      "internationalization, or use c_strncasecmp (from " \
83
 
                      "gnulib module c-strcase) if you want a locale " \
84
 
                      "independent function"), \
85
 
     strncasecmp (a, b, n))
 
77
# if HAVE_RAW_DECL_STRNCASECMP
 
78
_GL_WARN_ON_USE (strncasecmp, "strncasecmp cannot work correctly on character "
 
79
                 "strings in multibyte locales - "
 
80
                 "use mbsncasecmp or mbspcasecmp if you care about "
 
81
                 "internationalization, or use c_strncasecmp , "
 
82
                 "gnulib module c-strcase) if you want a locale "
 
83
                 "independent function");
 
84
# endif
86
85
#endif
87
86
 
88
87