1 /* Message list test for equality. 2 Copyright (C) 2001-2003 Free Software Foundation, Inc. 3 Written by Bruno Haible <haible@clisp.cons.org>, 2001. 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 #ifndef _MSGL_EQUAL_H 19 #define _MSGL_EQUAL_H 20 21 #include <stdbool.h> 22 23 #include "message.h" 24 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 30 31 extern bool 32 string_list_equal (const string_list_ty *slp1, 33 const string_list_ty *slp2); 34 35 /* Test whether the written representation of two messages / message lists 36 would be the same. */ 37 38 extern bool 39 message_equal (const message_ty *mp1, const message_ty *mp2, 40 bool ignore_potcdate); 41 extern bool 42 message_list_equal (const message_list_ty *mlp1, 43 const message_list_ty *mlp2, 44 bool ignore_potcdate); 45 extern bool 46 msgdomain_list_equal (const msgdomain_list_ty *mdlp1, 47 const msgdomain_list_ty *mdlp2, 48 bool ignore_potcdate); 49 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 56 #endif /* _MSGL_EQUAL_H */ 57