GDB: Remove trailing spaces in tui-disasm.c
[deliverable/binutils-gdb.git] / binutils / windmc.h
CommitLineData
692ed3e7 1/* windmc.h -- header file for windmc program.
b3adc24a 2 Copyright (C) 2007-2020 Free Software Foundation, Inc.
692ed3e7
NC
3 Written by Kai Tietz, Onevision.
4
5 This file is part of GNU Binutils.
6
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
32866df7 9 the Free Software Foundation; either version 3 of the License, or
692ed3e7
NC
10 (at your option) any later version.
11
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.
16
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
20 02110-1301, USA. */
21
22#include "ansidecl.h"
23
24/* This is the header file for the windmc program. It defines
25 structures and declares functions used within the program. */
26
27#include "winduni.h"
28
29#ifndef WINDMC_HXX
30#define WINDMC_HXX
31
32/* Global flag variables (set by windmc.c file. */
33extern int mcset_custom_bit;
34extern int mcset_out_values_are_decimal;
35extern rc_uint_type mcset_max_message_length;
36extern unichar *mcset_msg_id_typedef;
37
38/* Lexer keyword definition and internal memory structures. */
39
40typedef struct mc_keyword
41{
42 struct mc_keyword *next;
43 const char *group_name;
44 size_t len;
45 unichar *usz;
46 int rid;
47 rc_uint_type nval;
48 unichar *sval;
49 wind_language_t lang_info;
50} mc_keyword;
51
52typedef struct mc_node_lang
53{
54 struct mc_node_lang *next;
55 rc_uint_type vid;
56 const mc_keyword *lang;
57 unichar *message;
58} mc_node_lang;
59
60typedef struct mc_node
61{
62 struct mc_node *next;
63 unichar *user_text;
64 const mc_keyword *facility;
65 const mc_keyword *severity;
66 unichar *symbol;
67 rc_uint_type id;
68 rc_uint_type vid;
69 mc_node_lang *sub;
70} mc_node;
71
72extern mc_node *mc_nodes;
73
74void mc_add_keyword (unichar *, int, const char *, rc_uint_type, unichar *);
75const mc_keyword *enum_facility (int);
76const mc_keyword *enum_severity (int);
77
78mc_node_lang *mc_add_node_lang (mc_node *, const mc_keyword *, rc_uint_type);
79mc_node *mc_add_node (void);
80
81/* Standard yacc/flex stuff. */
82int yyerror (const char *, ...);
83int yylex (void);
84int yyparse (void);
85
86/* mclex.c */
87void mc_set_inputfile (const char *);
88void mc_set_content (const unichar *);
89
90/* Lexer control variables. Used by mcparser.y file. */
91extern bfd_boolean mclex_want_nl;
92extern bfd_boolean mclex_want_line;
93extern bfd_boolean mclex_want_filename;
94
95void mc_fatal (const char *, ...);
96void mc_warn (const char *, ...);
97
98#endif
This page took 0.518844 seconds and 4 git commands to generate.