1 /* do not edit automatically generated by mc from mcOptions. */
2 /* mcOptions.def handles the options for mc.
4 Copyright (C) 2015-2024 Free Software Foundation, Inc.
5 Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
7 This file is part of GNU Modula-2.
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)
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.
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/>. */
24 #if !defined (_mcOptions_H)
33 # if !defined (PROC_D)
35 typedef void (*PROC_t
) (void);
36 typedef struct { PROC_t proc
; } PROC
;
39 # include "GDynamicStrings.h"
42 # if defined (_mcOptions_C)
45 # define EXTERN extern
50 handleOptions - iterates over all options setting appropriate
51 values and returns the single source file
52 if found at the end of the arguments.
55 EXTERN DynamicStrings_String
mcOptions_handleOptions (void);
58 getQuiet - return the value of quiet.
61 EXTERN
bool mcOptions_getQuiet (void);
64 getVerbose - return the value of verbose.
67 EXTERN
bool mcOptions_getVerbose (void);
70 getInternalDebugging - return the value of internalDebugging.
73 EXTERN
bool mcOptions_getInternalDebugging (void);
74 EXTERN DynamicStrings_String
mcOptions_getCppCommandLine (void);
77 getOutputFile - sets the output filename to output.
80 EXTERN DynamicStrings_String
mcOptions_getOutputFile (void);
83 getExtendedOpaque - return the extendedOpaque value.
86 EXTERN
bool mcOptions_getExtendedOpaque (void);
89 setDebugTopological - sets the flag debugTopological to value.
92 EXTERN
void mcOptions_setDebugTopological (bool value
);
95 getDebugTopological - returns the flag value of the command
96 line option --debug-top.
99 EXTERN
bool mcOptions_getDebugTopological (void);
102 getHPrefix - saves the H file prefix.
105 EXTERN DynamicStrings_String
mcOptions_getHPrefix (void);
108 getIgnoreFQ - returns the ignorefq flag.
111 EXTERN
bool mcOptions_getIgnoreFQ (void);
114 getGccConfigSystem - return the value of the gccConfigSystem flag.
117 EXTERN
bool mcOptions_getGccConfigSystem (void);
120 getScaffoldDynamic - return true if the --scaffold-dynamic option was present.
123 EXTERN
bool mcOptions_getScaffoldDynamic (void);
126 getScaffoldMain - return true if the --scaffold-main option was present.
129 EXTERN
bool mcOptions_getScaffoldMain (void);
132 writeGPLheader - writes out the GPL or the GLPL as a comment.
135 EXTERN
void mcOptions_writeGPLheader (FIO_File f
);
138 setSuppressNoReturn - set suppressNoReturn to value.
141 EXTERN
void mcOptions_setSuppressNoReturn (bool value
);
144 getSuppressNoReturn - return the suppressNoReturn value.
147 EXTERN
bool mcOptions_getSuppressNoReturn (void);
150 useBool - should mc use the bool type instead of int.
153 EXTERN
bool mcOptions_useBool (void);
156 getCRealType - returns the string representing the REAL type
157 used by C. By default this is "double".
160 EXTERN DynamicStrings_String
mcOptions_getCRealType (void);
163 getCLongRealType - returns the string representing the REAL type
164 used by C. By default this is "long double".
167 EXTERN DynamicStrings_String
mcOptions_getCLongRealType (void);
170 getCShortRealType - returns the string representing the REAL type
171 used by C. By default this is "float".
174 EXTERN DynamicStrings_String
mcOptions_getCShortRealType (void);