1 /* Checking of messages in PO files. 2 Copyright (C) 2005 Free Software Foundation, Inc. 3 Written by Bruno Haible <bruno@clisp.org>, 2005. 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 #ifndef _MSGL_CHECK_H 20 #define _MSGL_CHECK_H 1 21 22 #include "message.h" 23 #include "pos.h" 24 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 31 /* Perform all checks on a non-obsolete message. 32 PLURAL_DISTRIBUTION is either NULL or an array of nplurals elements, 33 PLURAL_DISTRIBUTION[j] being true if the value j appears to be assumed 34 infinitely often by the plural formula. 35 Return the number of errors that were seen. */ 36 extern int check_message (const message_ty *mp, 37 const lex_pos_ty *msgid_pos, 38 int check_newlines, 39 int check_format_strings, const unsigned char *plural_distribution, 40 int check_header, 41 int check_compatibility, 42 int check_accelerators, char accelerator_char); 43 44 /* Perform all checks on a message list. 45 Return the number of errors that were seen. */ 46 extern int check_message_list (message_list_ty *mlp, 47 int check_newlines, 48 int check_format_strings, 49 int check_header, 50 int check_compatibility, 51 int check_accelerators, char accelerator_char); 52 53 54 #ifdef __cplusplus 55 } 56 #endif 57 58 #endif /* _MSGL_CHECK_H */ 59