1 /* do not edit automatically generated by mc from mcPreprocess. */
2 /* mcPreprocess.def provides a mechanism to invoke the C preprocessor.
4 Copyright (C) 2015-2025 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 (_mcPreprocess_H)
25 # define _mcPreprocess_H
33 # if !defined (PROC_D)
35 typedef void (*PROC_t
) (void);
36 typedef struct { PROC_t proc
; } PROC
;
39 # include "GDynamicStrings.h"
41 # if defined (_mcPreprocess_C)
44 # define EXTERN extern
49 preprocessModule - preprocess a file, filename, returning the new filename
50 of the preprocessed file.
51 Preprocessing will only occur if requested by the user.
52 If no preprocessing was requested then filename is returned.
53 If preprocessing occurs then a temporary file is created
54 and its name is returned.
55 All temporary files will be deleted when the compiler exits.
58 EXTERN DynamicStrings_String
mcPreprocess_preprocessModule (DynamicStrings_String filename
);