]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/m2/mc-boot/GmcOptions.h
Merge modula-2 front end onto gcc.
[thirdparty/gcc.git] / gcc / m2 / mc-boot / GmcOptions.h
1 /* do not edit automatically generated by mc from mcOptions. */
2 /* mcOptions.def handles the options for mc.
3
4 Copyright (C) 2015-2022 Free Software Foundation, Inc.
5 Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6
7 This file is part of GNU Modula-2.
8
9 GNU Modula-2 is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
13
14 GNU Modula-2 is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GNU Modula-2; see the file COPYING3. If not see
21 <http://www.gnu.org/licenses/>. */
22
23
24 #if !defined (_mcOptions_H)
25 # define _mcOptions_H
26
27 #include "config.h"
28 #include "system.h"
29 # ifdef __cplusplus
30 extern "C" {
31 # endif
32 # if !defined (PROC_D)
33 # define PROC_D
34 typedef void (*PROC_t) (void);
35 typedef struct { PROC_t proc; } PROC;
36 # endif
37
38 # include "GDynamicStrings.h"
39 # include "GFIO.h"
40
41 # if defined (_mcOptions_C)
42 # define EXTERN
43 # else
44 # define EXTERN extern
45 # endif
46
47
48 /*
49 handleOptions - iterates over all options setting appropriate
50 values and returns the single source file
51 if found at the end of the arguments.
52 */
53
54 EXTERN DynamicStrings_String mcOptions_handleOptions (void);
55
56 /*
57 getQuiet - return the value of quiet.
58 */
59
60 EXTERN unsigned int mcOptions_getQuiet (void);
61
62 /*
63 getVerbose - return the value of verbose.
64 */
65
66 EXTERN unsigned int mcOptions_getVerbose (void);
67
68 /*
69 getInternalDebugging - return the value of internalDebugging.
70 */
71
72 EXTERN unsigned int mcOptions_getInternalDebugging (void);
73 EXTERN DynamicStrings_String mcOptions_getCppCommandLine (void);
74
75 /*
76 getOutputFile - sets the output filename to output.
77 */
78
79 EXTERN DynamicStrings_String mcOptions_getOutputFile (void);
80
81 /*
82 getExtendedOpaque - return the extendedOpaque value.
83 */
84
85 EXTERN unsigned int mcOptions_getExtendedOpaque (void);
86
87 /*
88 setDebugTopological - sets the flag debugTopological to value.
89 */
90
91 EXTERN void mcOptions_setDebugTopological (unsigned int value);
92
93 /*
94 getDebugTopological - returns the flag value of the command
95 line option --debug-top.
96 */
97
98 EXTERN unsigned int mcOptions_getDebugTopological (void);
99
100 /*
101 getHPrefix - saves the H file prefix.
102 */
103
104 EXTERN DynamicStrings_String mcOptions_getHPrefix (void);
105
106 /*
107 getIgnoreFQ - returns the ignorefq flag.
108 */
109
110 EXTERN unsigned int mcOptions_getIgnoreFQ (void);
111
112 /*
113 getGccConfigSystem - return the value of the gccConfigSystem flag.
114 */
115
116 EXTERN unsigned int mcOptions_getGccConfigSystem (void);
117
118 /*
119 getScaffoldDynamic - return true if the --scaffold-dynamic option was present.
120 */
121
122 EXTERN unsigned int mcOptions_getScaffoldDynamic (void);
123
124 /*
125 getScaffoldMain - return true if the --scaffold-main option was present.
126 */
127
128 EXTERN unsigned int mcOptions_getScaffoldMain (void);
129
130 /*
131 writeGPLheader - writes out the GPL or the GLPL as a comment.
132 */
133
134 EXTERN void mcOptions_writeGPLheader (FIO_File f);
135 # ifdef __cplusplus
136 }
137 # endif
138
139 # undef EXTERN
140 #endif