]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/m2/mc-boot/GmcPreprocess.h
Merge modula-2 front end onto gcc.
[thirdparty/gcc.git] / gcc / m2 / mc-boot / GmcPreprocess.h
1 /* do not edit automatically generated by mc from mcPreprocess. */
2 /* mcPreprocess.def provides a mechanism to invoke the C preprocessor.
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 (_mcPreprocess_H)
25 # define _mcPreprocess_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
40 # if defined (_mcPreprocess_C)
41 # define EXTERN
42 # else
43 # define EXTERN extern
44 # endif
45
46
47 /*
48 preprocessModule - preprocess a file, filename, returning the new filename
49 of the preprocessed file.
50 Preprocessing will only occur if requested by the user.
51 If no preprocessing was requested then filename is returned.
52 If preprocessing occurs then a temporary file is created
53 and its name is returned.
54 All temporary files will be deleted when the compiler exits.
55 */
56
57 EXTERN DynamicStrings_String mcPreprocess_preprocessModule (DynamicStrings_String filename);
58 # ifdef __cplusplus
59 }
60 # endif
61
62 # undef EXTERN
63 #endif