(root)/
gcc-13.2.0/
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-2023 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  #include <stdbool.h>
      33  #   if !defined (PROC_D)
      34  #      define PROC_D
      35         typedef void (*PROC_t) (void);
      36         typedef struct { PROC_t proc; } PROC;
      37  #   endif
      38  
      39  #   include "GDynamicStrings.h"
      40  #   include "GFIO.h"
      41  
      42  #   if defined (_mcOptions_C)
      43  #      define EXTERN
      44  #   else
      45  #      define EXTERN extern
      46  #   endif
      47  
      48  
      49  /*
      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.
      53  */
      54  
      55  EXTERN DynamicStrings_String mcOptions_handleOptions (void);
      56  
      57  /*
      58     getQuiet - return the value of quiet.
      59  */
      60  
      61  EXTERN bool mcOptions_getQuiet (void);
      62  
      63  /*
      64     getVerbose - return the value of verbose.
      65  */
      66  
      67  EXTERN bool mcOptions_getVerbose (void);
      68  
      69  /*
      70     getInternalDebugging - return the value of internalDebugging.
      71  */
      72  
      73  EXTERN bool mcOptions_getInternalDebugging (void);
      74  EXTERN DynamicStrings_String mcOptions_getCppCommandLine (void);
      75  
      76  /*
      77     getOutputFile - sets the output filename to output.
      78  */
      79  
      80  EXTERN DynamicStrings_String mcOptions_getOutputFile (void);
      81  
      82  /*
      83     getExtendedOpaque - return the extendedOpaque value.
      84  */
      85  
      86  EXTERN bool mcOptions_getExtendedOpaque (void);
      87  
      88  /*
      89     setDebugTopological - sets the flag debugTopological to value.
      90  */
      91  
      92  EXTERN void mcOptions_setDebugTopological (bool value);
      93  
      94  /*
      95     getDebugTopological - returns the flag value of the command
      96                           line option --debug-top.
      97  */
      98  
      99  EXTERN bool mcOptions_getDebugTopological (void);
     100  
     101  /*
     102     getHPrefix - saves the H file prefix.
     103  */
     104  
     105  EXTERN DynamicStrings_String mcOptions_getHPrefix (void);
     106  
     107  /*
     108     getIgnoreFQ - returns the ignorefq flag.
     109  */
     110  
     111  EXTERN bool mcOptions_getIgnoreFQ (void);
     112  
     113  /*
     114     getGccConfigSystem - return the value of the gccConfigSystem flag.
     115  */
     116  
     117  EXTERN bool mcOptions_getGccConfigSystem (void);
     118  
     119  /*
     120     getScaffoldDynamic - return true if the --scaffold-dynamic option was present.
     121  */
     122  
     123  EXTERN bool mcOptions_getScaffoldDynamic (void);
     124  
     125  /*
     126     getScaffoldMain - return true if the --scaffold-main option was present.
     127  */
     128  
     129  EXTERN bool mcOptions_getScaffoldMain (void);
     130  
     131  /*
     132     writeGPLheader - writes out the GPL or the GLPL as a comment.
     133  */
     134  
     135  EXTERN void mcOptions_writeGPLheader (FIO_File f);
     136  
     137  /*
     138     setSuppressNoReturn - set suppressNoReturn to value.
     139  */
     140  
     141  EXTERN void mcOptions_setSuppressNoReturn (bool value);
     142  
     143  /*
     144     getSuppressNoReturn - return the suppressNoReturn value.
     145  */
     146  
     147  EXTERN bool mcOptions_getSuppressNoReturn (void);
     148  
     149  /*
     150     useBool - should mc use the bool type instead of int.
     151  */
     152  
     153  EXTERN bool mcOptions_useBool (void);
     154  #   ifdef __cplusplus
     155  }
     156  #   endif
     157  
     158  #   undef EXTERN
     159  #endif