No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / src / po-error.h
blob1703804f0c255ec5e1c3327196e99a1901798b9e
1 /* Error handling during reading and writing of PO files.
2 Copyright (C) 2004 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2004.
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19 #ifndef _PO_ERROR_H
20 #define _PO_ERROR_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
27 /* Both functions must work like the GNU error(), error_at_line() functions.
28 In particular,
29 - The functions must not return if the status code is nonzero.
30 - The functions must increment the error_message_count variable declared
31 in error.h. */
33 extern DLL_VARIABLE
34 void (*po_error) (int status, int errnum,
35 const char *format, ...);
36 extern DLL_VARIABLE
37 void (*po_error_at_line) (int status, int errnum,
38 const char *filename, unsigned int lineno,
39 const char *format, ...);
41 /* Both functions must work like the xerror.h multiline_warning(),
42 multiline_error() functions. In particular,
43 - multiline_error must increment the error_message_count variable declared
44 in error.h if prefix != NULL. */
46 extern DLL_VARIABLE
47 void (*po_multiline_warning) (char *prefix, char *message);
48 extern DLL_VARIABLE
49 void (*po_multiline_error) (char *prefix, char *message);
52 #ifdef __cplusplus
54 #endif
56 #endif /* _PO_ERROR_H */