]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/mc-boot/GmcPrintf.h
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / mc-boot / GmcPrintf.h
CommitLineData
1eee94d3
GM
1/* do not edit automatically generated by mc from mcPrintf. */
2/* mcPrintf.def provides a poor mans printf capability.
3
83ffe9cd 4Copyright (C) 2015-2023 Free Software Foundation, Inc.
1eee94d3
GM
5Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6
7This file is part of GNU Modula-2.
8
9GNU Modula-2 is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 3, or (at your option)
12any later version.
13
14GNU Modula-2 is distributed in the hope that it will be useful, but
15WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along 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
30extern "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 "GSYSTEM.h"
39# include "GFIO.h"
40
41# if defined (_mcPrintf_C)
42# define EXTERN
43# else
44# define EXTERN extern
45# endif
46
47
48/*
49 printf0 - writes out an array to, StdOut, after the escape sequences have been
50 translated.
51*/
52
53EXTERN void mcPrintf_printf0 (const char *a_, unsigned int _a_high);
54
55/*
56 printf0 - writes out an array to, StdOut, after the escape sequences have been
57 translated.
58*/
59
60EXTERN void mcPrintf_printf1 (const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
61
62/*
63 printf0 - writes out an array to, StdOut, after the escape sequences have been
64 translated.
65*/
66
67EXTERN 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);
68
69/*
70 printf0 - writes out an array to, StdOut, after the escape sequences have been
71 translated.
72*/
73
74EXTERN 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);
75
76/*
77 printf0 - writes out an array to, StdOut, after the escape sequences have been
78 translated.
79*/
80
81EXTERN 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);
82
83/*
84 fprintf0 - writes out an array to, file, after the escape sequences have been
85 translated.
86*/
87
88EXTERN void mcPrintf_fprintf0 (FIO_File file, const char *a_, unsigned int _a_high);
89
90/*
91 fprintf0 - writes out an array to, file, after the escape sequences have been
92 translated.
93*/
94
95EXTERN void mcPrintf_fprintf1 (FIO_File file, const char *a_, unsigned int _a_high, const unsigned char *w_, unsigned int _w_high);
96
97/*
98 fprintf0 - writes out an array to, file, after the escape sequences have been
99 translated.
100*/
101
102EXTERN 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);
103
104/*
105 fprintf0 - writes out an array to, file, after the escape sequences have been
106 translated.
107*/
108
109EXTERN 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);
110
111/*
112 fprintf0 - writes out an array to, file, after the escape sequences have been
113 translated.
114*/
115
116EXTERN 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);
117# ifdef __cplusplus
118}
119# endif
120
121# undef EXTERN
122#endif