1 /* windmc.h -- header file for windmc program.
2 Copyright (C) 2007-2019 Free Software Foundation, Inc.
3 Written by Kai Tietz, Onevision.
5 This file is part of GNU Binutils.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
24 /* This is the header file for the windmc program. It defines
25 structures and declares functions used within the program. */
32 /* Global flag variables (set by windmc.c file. */
33 extern int mcset_custom_bit
;
34 extern int mcset_out_values_are_decimal
;
35 extern rc_uint_type mcset_max_message_length
;
36 extern unichar
*mcset_msg_id_typedef
;
38 /* Lexer keyword definition and internal memory structures. */
40 typedef struct mc_keyword
42 struct mc_keyword
*next
;
43 const char *group_name
;
49 wind_language_t lang_info
;
52 typedef struct mc_node_lang
54 struct mc_node_lang
*next
;
56 const mc_keyword
*lang
;
60 typedef struct mc_node
64 const mc_keyword
*facility
;
65 const mc_keyword
*severity
;
72 extern mc_node
*mc_nodes
;
74 void mc_add_keyword (unichar
*, int, const char *, rc_uint_type
, unichar
*);
75 const mc_keyword
*enum_facility (int);
76 const mc_keyword
*enum_severity (int);
78 mc_node_lang
*mc_add_node_lang (mc_node
*, const mc_keyword
*, rc_uint_type
);
79 mc_node
*mc_add_node (void);
81 /* Standard yacc/flex stuff. */
82 int yyerror (const char *, ...);
87 void mc_set_inputfile (const char *);
88 void mc_set_content (const unichar
*);
90 /* Lexer control variables. Used by mcparser.y file. */
91 extern bfd_boolean mclex_want_nl
;
92 extern bfd_boolean mclex_want_line
;
93 extern bfd_boolean mclex_want_filename
;
95 void mc_fatal (const char *, ...);
96 void mc_warn (const char *, ...);