diff options
author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch) | |
tree | cc63639f8e502db19a82c20e2861c6d1edbf9fea /contrib/libs/libidn/strerror-pr29.c | |
parent | 464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/libidn/strerror-pr29.c')
-rw-r--r-- | contrib/libs/libidn/strerror-pr29.c | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/contrib/libs/libidn/strerror-pr29.c b/contrib/libs/libidn/strerror-pr29.c index 6aca028359b..8c72c9b71aa 100644 --- a/contrib/libs/libidn/strerror-pr29.c +++ b/contrib/libs/libidn/strerror-pr29.c @@ -1,75 +1,75 @@ -/* strerror-pr29.c --- Convert PR29 errors into text. - * Copyright (C) 2004, 2005, 2006, 2007, 2008 Simon Josefsson - * - * This file is part of GNU Libidn. - * - * GNU Libidn is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * GNU Libidn is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with GNU Libidn; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - * - */ - -#ifdef HAVE_CONFIG_H +/* strerror-pr29.c --- Convert PR29 errors into text. + * Copyright (C) 2004, 2005, 2006, 2007, 2008 Simon Josefsson + * + * This file is part of GNU Libidn. + * + * GNU Libidn is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * GNU Libidn is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with GNU Libidn; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + +#ifdef HAVE_CONFIG_H # include "idn_config.h" -#endif - -#include "pr29.h" - -#include "gettext.h" -#define _(String) dgettext (PACKAGE, String) - -/** - * pr29_strerror - return string describing pr29 error code - * @rc: an #Pr29_rc return code. - * - * Convert a return code integer to a text string. This string can be - * used to output a diagnostic message to the user. - * - * PR29_SUCCESS: Successful operation. This value is guaranteed to - * always be zero, the remaining ones are only guaranteed to hold - * non-zero values, for logical comparison purposes. - * PR29_PROBLEM: A problem sequence was encountered. - * PR29_STRINGPREP_ERROR: The character set conversion failed (only - * for pr29_8() and pr29_8z()). - * - * Return value: Returns a pointer to a statically allocated string - * containing a description of the error with the return code @rc. - **/ -const char * -pr29_strerror (Pr29_rc rc) -{ - const char *p; - - bindtextdomain (PACKAGE, LOCALEDIR); - - switch (rc) - { - case PR29_SUCCESS: - p = _("Success"); - break; - - case PR29_PROBLEM: - p = _("String not idempotent under Unicode NFKC normalization"); - break; - - case PR29_STRINGPREP_ERROR: - p = _("String preparation failed"); - break; - - default: - p = _("Unknown error"); - break; - } - - return p; -} +#endif + +#include "pr29.h" + +#include "gettext.h" +#define _(String) dgettext (PACKAGE, String) + +/** + * pr29_strerror - return string describing pr29 error code + * @rc: an #Pr29_rc return code. + * + * Convert a return code integer to a text string. This string can be + * used to output a diagnostic message to the user. + * + * PR29_SUCCESS: Successful operation. This value is guaranteed to + * always be zero, the remaining ones are only guaranteed to hold + * non-zero values, for logical comparison purposes. + * PR29_PROBLEM: A problem sequence was encountered. + * PR29_STRINGPREP_ERROR: The character set conversion failed (only + * for pr29_8() and pr29_8z()). + * + * Return value: Returns a pointer to a statically allocated string + * containing a description of the error with the return code @rc. + **/ +const char * +pr29_strerror (Pr29_rc rc) +{ + const char *p; + + bindtextdomain (PACKAGE, LOCALEDIR); + + switch (rc) + { + case PR29_SUCCESS: + p = _("Success"); + break; + + case PR29_PROBLEM: + p = _("String not idempotent under Unicode NFKC normalization"); + break; + + case PR29_STRINGPREP_ERROR: + p = _("String preparation failed"); + break; + + default: + p = _("Unknown error"); + break; + } + + return p; +} |