-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.c
84 lines (53 loc) · 2.34 KB
/
common.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
FILE NAME: common.c
Copyright (C) 1997-2016 Vladimir Makarov.
Written by Vladimir Makarov <[email protected]>
This file is part of the tool NONA.
This is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
TITLE: Common variables for all NONA (code selector
description translator)
DESCRIPTION: This file contains declarations of external variables
common for all NONA (code selector description translator). */
#include "ird.h"
#include "common.h"
/* Flag of generation of C++ code (`-c++'). */
int cpp_flag;
/* Flag of output of verbose warning information (`-v'). */
int v_flag;
/* Output of debugging information during execution of generated code
(`-debug'). */
int debug_flag;
/* Generation of macros defining identifiers of terminals (`-export'). */
int export_flag;
/* Value of this variable is prefix of names of generated machine
description objects. This value is defined by argument of option
`-p...' or by standard prefix. */
char *prefix;
/* Value of this variable is name of description. The value is
defined by file name (without suffix) given as operand of the NONA
command line. */
char *description_name;
/* Interface file of code selector. The value is NULL if the file is
not created. */
FILE *output_interface_file;
/* Code selector interface file name. */
char *output_interface_file_name;
/* Implementation file of code selector. The value is NULL if the
file is not created. */
FILE *output_implementation_file;
/* Code selector implementation file name. */
char *output_implementation_file_name;
/* Value of the following variable is node representing description
being processed. */
IR_node_t description;