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)
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)
33 # if !defined (PROC_D)
35 typedef void (*PROC_t
) (void);
36 typedef struct { PROC_t proc
; } PROC
;
42 # if defined (_mcPrintf_C)
45 # define EXTERN extern
50 printf0 - writes out an array to, StdOut, after the escape sequences have been
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
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
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
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
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
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
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
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
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
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
);