]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/m2/mc-boot/GmcPrintf.h
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / mc-boot / GmcPrintf.h
1 /* do not edit automatically generated by mc from mcPrintf. */
2 /* mcPrintf.def provides a poor mans printf capability.
3
4 Copyright (C) 2015-2024 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 (_mcPrintf_H)
25 # define _mcPrintf_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 "GSYSTEM.h"
40 # include "GFIO.h"
41
42 # if defined (_mcPrintf_C)
43 # define EXTERN
44 # else
45 # define EXTERN extern
46 # endif
47
48
49 /*
50 printf0 - writes out an array to, StdOut, after the escape sequences have been
51 translated.
52 */
53
54 EXTERN void mcPrintf_printf0 (const char *a_, unsigned int _a_high);
55
56 /*
57 printf0 - writes out an array to, StdOut, after the escape sequences have been
58 translated.
59 */
60
61 EXTERN void mcPrintf_printf1 (const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
62
63 /*
64 printf0 - writes out an array to, StdOut, after the escape sequences have been
65 translated.
66 */
67
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);
69
70 /*
71 printf0 - writes out an array to, StdOut, after the escape sequences have been
72 translated.
73 */
74
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);
76
77 /*
78 printf0 - writes out an array to, StdOut, after the escape sequences have been
79 translated.
80 */
81
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);
83
84 /*
85 fprintf0 - writes out an array to, file, after the escape sequences have been
86 translated.
87 */
88
89 EXTERN void mcPrintf_fprintf0 (FIO_File file, const char *a_, unsigned int _a_high);
90
91 /*
92 fprintf0 - writes out an array to, file, after the escape sequences have been
93 translated.
94 */
95
96 EXTERN void mcPrintf_fprintf1 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
97
98 /*
99 fprintf0 - writes out an array to, file, after the escape sequences have been
100 translated.
101 */
102
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);
104
105 /*
106 fprintf0 - writes out an array to, file, after the escape sequences have been
107 translated.
108 */
109
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);
111
112 /*
113 fprintf0 - writes out an array to, file, after the escape sequences have been
114 translated.
115 */
116
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
119 }
120 # endif
121
122 # undef EXTERN
123 #endif