libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / m2 / mc-boot / GmcPrintf.h
blob46aeaacf888d6d906debc924dd9ac5227feed5b8
1 /* do not edit automatically generated by mc from mcPrintf. */
2 /* mcPrintf.def provides a poor mans printf capability.
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)
12 any later version.
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 (_mcPrintf_H)
25 # define _mcPrintf_H
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
39 # include "GSYSTEM.h"
40 # include "GFIO.h"
42 # if defined (_mcPrintf_C)
43 # define EXTERN
44 # else
45 # define EXTERN extern
46 # endif
50 printf0 - writes out an array to, StdOut, after the escape sequences have been
51 translated.
54 EXTERN void mcPrintf_printf0 (const char *a_, unsigned int _a_high);
57 printf0 - writes out an array to, StdOut, after the escape sequences have been
58 translated.
61 EXTERN void mcPrintf_printf1 (const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
64 printf0 - writes out an array to, StdOut, after the escape sequences have been
65 translated.
68 EXTERN void mcPrintf_printf2 (const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high);
71 printf0 - writes out an array to, StdOut, after the escape sequences have been
72 translated.
75 EXTERN void mcPrintf_printf3 (const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high, const unsigned char *w3_, unsigned int _w3_high);
78 printf0 - writes out an array to, StdOut, after the escape sequences have been
79 translated.
82 EXTERN void mcPrintf_printf4 (const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high, const unsigned char *w3_, unsigned int _w3_high, const unsigned char *w4_, unsigned int _w4_high);
85 fprintf0 - writes out an array to, file, after the escape sequences have been
86 translated.
89 EXTERN void mcPrintf_fprintf0 (FIO_File file, const char *a_, unsigned int _a_high);
92 fprintf0 - writes out an array to, file, after the escape sequences have been
93 translated.
96 EXTERN void mcPrintf_fprintf1 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
99 fprintf0 - writes out an array to, file, after the escape sequences have been
100 translated.
103 EXTERN void mcPrintf_fprintf2 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high);
106 fprintf0 - writes out an array to, file, after the escape sequences have been
107 translated.
110 EXTERN void mcPrintf_fprintf3 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high, const unsigned char *w3_, unsigned int _w3_high);
113 fprintf0 - writes out an array to, file, after the escape sequences have been
114 translated.
117 EXTERN void mcPrintf_fprintf4 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w1_, unsigned int _w1_high, const unsigned char *w2_, unsigned int _w2_high, const unsigned char *w3_, unsigned int _w3_high, const unsigned char *w4_, unsigned int _w4_high);
118 # ifdef __cplusplus
120 # endif
122 # undef EXTERN
123 #endif