Home | History | Annotate | Line # | Download | only in src
      1 /* Error handling during reading and writing of PO files.
      2    Copyright (C) 2004 Free Software Foundation, Inc.
      3    Written by Bruno Haible <bruno (at) 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 2, or (at your option)
      8    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, write to the Free Software Foundation,
     17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
     18 
     19 
     20 #ifdef HAVE_CONFIG_H
     21 # include "config.h"
     22 #endif
     23 
     24 /* Specification.  */
     25 #include "po-error.h"
     26 
     27 #include "error.h"
     28 #include "xerror.h"
     29 
     30 
     31 void (*po_error) (int status, int errnum,
     32 		  const char *format, ...)
     33   = error;
     34 
     35 void (*po_error_at_line) (int status, int errnum,
     36 			  const char *filename, unsigned int lineno,
     37 			  const char *format, ...)
     38   = error_at_line;
     39 
     40 void (*po_multiline_warning) (char *prefix, char *message)
     41   = multiline_warning;
     42 void (*po_multiline_error) (char *prefix, char *message)
     43   = multiline_error;
     44