(root)/
gettext-0.22.4/
gettext-tools/
src/
msgfmt.h
       1  /* msgfmt specifics
       2     Copyright (C) 1995-1998, 2000-2001, 2009, 2015 Free Software
       3     Foundation, Inc.
       4     Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
       5  
       6     This program is free software: you can redistribute it and/or modify
       7     it under the terms of the GNU General Public License as published by
       8     the Free Software Foundation; either version 3 of the License, or
       9     (at your option) any later version.
      10  
      11     This program is distributed in the hope that it will be useful,
      12     but WITHOUT ANY WARRANTY; without even the implied warranty of
      13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14     GNU General Public License for more details.
      15  
      16     You should have received a copy of the GNU General Public License
      17     along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
      18  
      19  #ifndef _MSGFMT_H
      20  #define _MSGFMT_H
      21  
      22  #include "message.h"
      23  
      24  #ifdef __cplusplus
      25  extern "C" {
      26  #endif
      27  
      28  /* Be more verbose.  Use only 'fprintf' and 'multiline_warning' but not
      29     'error' or 'multiline_error' to emit verbosity messages, because 'error'
      30     and 'multiline_error' during PO file parsing cause the program to exit
      31     with EXIT_FAILURE.  See function lex_end().  */
      32  extern int verbose;
      33  
      34  /* Data types for bulk operation mode.  */
      35  typedef struct msgfmt_operand_ty msgfmt_operand_ty;
      36  struct msgfmt_operand_ty
      37  {
      38    char *language;
      39    message_list_ty *mlp;
      40  };
      41  
      42  typedef struct msgfmt_operand_list_ty msgfmt_operand_list_ty;
      43  struct msgfmt_operand_list_ty
      44  {
      45    msgfmt_operand_ty *items;
      46    size_t nitems;
      47    size_t nitems_max;
      48  };
      49  
      50  #ifdef __cplusplus
      51  }
      52  #endif
      53  
      54  #endif /* _MSGFMT_H */