Don't use multi-line strings.

This commit is contained in:
Andreas Jaeger 2001-03-05 09:49:34 +00:00
parent 2b43273381
commit 6150c20c68
1 changed files with 55 additions and 56 deletions

View File

@ -1,5 +1,5 @@
/* Tests for loading and unloading of iconv modules. /* Tests for loading and unloading of iconv modules.
Copyright (C) 2000 Free Software Foundation, Inc. Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000. Contributed by Ulrich Drepper <drepper@cygnus.com>, 2000.
@ -59,61 +59,60 @@ struct
/* The test data. */ /* The test data. */
static const char inbuf[] = "\ static const char inbuf[] =
The first step is the function to create a handle. "The first step is the function to create a handle.\n"
"\n"
- Function: iconv_t iconv_open (const char *TOCODE, const char " - Function: iconv_t iconv_open (const char *TOCODE, const char\n"
*FROMCODE) " *FROMCODE)\n"
The `iconv_open' function has to be used before starting a " The `iconv_open' function has to be used before starting a\n"
conversion. The two parameters this function takes determine the " conversion. The two parameters this function takes determine the\n"
source and destination character set for the conversion and if the " source and destination character set for the conversion and if the\n"
implementation has the possibility to perform such a conversion the " implementation has the possibility to perform such a conversion the\n"
function returns a handle. " function returns a handle.\n"
"\n"
If the wanted conversion is not available the function returns " If the wanted conversion is not available the function returns\n"
`(iconv_t) -1'. In this case the global variable `errno' can have " `(iconv_t) -1'. In this case the global variable `errno' can have\n"
the following values: " the following values:\n"
"\n"
`EMFILE' " `EMFILE'\n"
The process already has `OPEN_MAX' file descriptors open. " The process already has `OPEN_MAX' file descriptors open.\n"
"\n"
`ENFILE' " `ENFILE'\n"
The system limit of open file is reached. " The system limit of open file is reached.\n"
"\n"
`ENOMEM' " `ENOMEM'\n"
Not enough memory to carry out the operation. " Not enough memory to carry out the operation.\n"
"\n"
`EINVAL' " `EINVAL'\n"
The conversion from FROMCODE to TOCODE is not supported. " The conversion from FROMCODE to TOCODE is not supported.\n"
"\n"
It is not possible to use the same descriptor in different threads " It is not possible to use the same descriptor in different threads\n"
to perform independent conversions. Within the data structures " to perform independent conversions. Within the data structures\n"
associated with the descriptor there is information about the " associated with the descriptor there is information about the\n"
conversion state. This must not be messed up by using it in " conversion state. This must not be messed up by using it in\n"
different conversions. " different conversions.\n"
"\n"
An `iconv' descriptor is like a file descriptor as for every use a " An `iconv' descriptor is like a file descriptor as for every use a\n"
new descriptor must be created. The descriptor does not stand for " new descriptor must be created. The descriptor does not stand for\n"
all of the conversions from FROMSET to TOSET. " all of the conversions from FROMSET to TOSET.\n"
"\n"
The GNU C library implementation of `iconv_open' has one " The GNU C library implementation of `iconv_open' has one\n"
significant extension to other implementations. To ease the " significant extension to other implementations. To ease the\n"
extension of the set of available conversions the implementation " extension of the set of available conversions the implementation\n"
allows storing the necessary files with data and code in " allows storing the necessary files with data and code in\n"
arbitrarily many directories. How this extension has to be " arbitrarily many directories. How this extension has to be\n"
written will be explained below (*note glibc iconv " written will be explained below (*note glibc iconv\n"
Implementation::). Here it is only important to say that all " Implementation::). Here it is only important to say that all\n"
directories mentioned in the `GCONV_PATH' environment variable are " directories mentioned in the `GCONV_PATH' environment variable are\n"
considered if they contain a file `gconv-modules'. These " considered if they contain a file `gconv-modules'. These\n"
directories need not necessarily be created by the system " directories need not necessarily be created by the system\n"
administrator. In fact, this extension is introduced to help users " administrator. In fact, this extension is introduced to help users\n"
writing and using their own, new conversions. Of course this does " writing and using their own, new conversions. Of course this does\n"
not work for security reasons in SUID binaries; in this case only " not work for security reasons in SUID binaries; in this case only\n"
the system directory is considered and this normally is " the system directory is considered and this normally is\n"
`PREFIX/lib/gconv'. The `GCONV_PATH' environment variable is " `PREFIX/lib/gconv'. The `GCONV_PATH' environment variable is\n"
examined exactly once at the first call of the `iconv_open' " examined exactly once at the first call of the `iconv_open'\n"
function. Later modifications of the variable have no effect. " function. Later modifications of the variable have no effect.\n";
";
int int