(root)/
gettext-0.22.4/
gettext-tools/
src/
po-error.c
       1  /* Error handling during reading and writing of PO files.
       2     Copyright (C) 2004, 2023 Free Software Foundation, Inc.
       3     Written by Bruno Haible <bruno@clisp.org>, 2004.
       4  
       5     This program is free software: you can redistribute it and/or modify
       6     it under the terms of the GNU General Public License as published by
       7     the Free Software Foundation; either version 3 of the License, or
       8     (at your option) any later version.
       9  
      10     This program is distributed in the hope that it will be useful,
      11     but WITHOUT ANY WARRANTY; without even the implied warranty of
      12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13     GNU General Public License for more details.
      14  
      15     You should have received a copy of the GNU General Public License
      16     along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
      17  
      18  
      19  #ifdef HAVE_CONFIG_H
      20  # include "config.h"
      21  #endif
      22  /* Avoid side effect of gnulib's error.h.  */
      23  #define _GL_NO_INLINE_ERROR
      24  
      25  /* Specification.  */
      26  #include "po-error.h"
      27  
      28  #include "error.h"
      29  #include "xerror.h"
      30  
      31  
      32  void (*po_error) (int status, int errnum,
      33                    const char *format, ...)
      34    = error;
      35  
      36  void (*po_error_at_line) (int status, int errnum,
      37                            const char *filename, unsigned int lineno,
      38                            const char *format, ...)
      39    = error_at_line;
      40  
      41  void (*po_multiline_warning) (char *prefix, char *message)
      42    = multiline_warning;
      43  void (*po_multiline_error) (char *prefix, char *message)
      44    = multiline_error;