1 /* do not edit automatically generated by mc from mcOptions. */
2 /* mcOptions.def handles the options for mc.
4 Copyright (C) 2015-2022 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)
32 # if !defined (PROC_D)
34 typedef void (*PROC_t
) (void);
35 typedef struct { PROC_t proc
; } PROC
;
38 # include "GDynamicStrings.h"
41 # if defined (_mcOptions_C)
44 # define EXTERN extern
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.
54 EXTERN DynamicStrings_String
mcOptions_handleOptions (void);
57 getQuiet - return the value of quiet.
60 EXTERN
unsigned int mcOptions_getQuiet (void);
63 getVerbose - return the value of verbose.
66 EXTERN
unsigned int mcOptions_getVerbose (void);
69 getInternalDebugging - return the value of internalDebugging.
72 EXTERN
unsigned int mcOptions_getInternalDebugging (void);
73 EXTERN DynamicStrings_String
mcOptions_getCppCommandLine (void);
76 getOutputFile - sets the output filename to output.
79 EXTERN DynamicStrings_String
mcOptions_getOutputFile (void);
82 getExtendedOpaque - return the extendedOpaque value.
85 EXTERN
unsigned int mcOptions_getExtendedOpaque (void);
88 setDebugTopological - sets the flag debugTopological to value.
91 EXTERN
void mcOptions_setDebugTopological (unsigned int value
);
94 getDebugTopological - returns the flag value of the command
95 line option --debug-top.
98 EXTERN
unsigned int mcOptions_getDebugTopological (void);
101 getHPrefix - saves the H file prefix.
104 EXTERN DynamicStrings_String
mcOptions_getHPrefix (void);
107 getIgnoreFQ - returns the ignorefq flag.
110 EXTERN
unsigned int mcOptions_getIgnoreFQ (void);
113 getGccConfigSystem - return the value of the gccConfigSystem flag.
116 EXTERN
unsigned int mcOptions_getGccConfigSystem (void);
119 getScaffoldDynamic - return true if the --scaffold-dynamic option was present.
122 EXTERN
unsigned int mcOptions_getScaffoldDynamic (void);
125 getScaffoldMain - return true if the --scaffold-main option was present.
128 EXTERN
unsigned int mcOptions_getScaffoldMain (void);
131 writeGPLheader - writes out the GPL or the GLPL as a comment.
134 EXTERN
void mcOptions_writeGPLheader (FIO_File f
);