annotate lib/wcsxfrm.c @ 17334:bb52d9cece01

unsetenv etc.: port to Solaris 11 + GNU Emacs * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c: * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c: * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>. GNU Emacs's <config.h> includes <stdlib.h> (which is not a great idea but is too painful to fix right now), and without this gnulib change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when compiling unsetenv.c on Solaris 11. Fix the problem for unsetenv.c, and fix other similar occurrences.
author Paul Eggert <eggert@cs.ucla.edu>
date Mon, 11 Feb 2013 14:58:56 -0800
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14294
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Transform wide string for comparison using the current locale.
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
2 Copyright (C) 2011-2013 Free Software Foundation, Inc.
14294
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <bruno@clisp.org>, 2011.
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software: you can redistribute it and/or modify
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 3 of the License, or
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 (at your option) any later version.
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #include <config.h>
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 /* Specification. */
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <wchar.h>
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #include <errno.h>
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 #include <stdlib.h>
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #include <string.h>
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
b19db9397852 New module 'wcsxfrm'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #include "wcsxfrm-impl.h"