1 /* do not edit automatically generated by mc from mcQuiet. */
2 /* This file is part of GNU Modula-2.
4 GNU Modula-2 is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 3, or (at your option) any later
9 GNU Modula-2 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License
15 along with GCC; see the file COPYING3. If not see
16 <http://www.gnu.org/licenses/>. */
21 # if !defined (PROC_D)
23 typedef void (*PROC_t
) (void);
24 typedef struct { PROC_t proc
; } PROC
;
30 # include "GmcOptions.h"
31 # include "GmcPrintf.h"
33 extern "C" void mcQuiet_qprintf0 (const char *a_
, unsigned int _a_high
);
34 extern "C" void mcQuiet_qprintf1 (const char *a_
, unsigned int _a_high
, const unsigned char *w_
, unsigned int _w_high
);
35 extern "C" void mcQuiet_qprintf2 (const char *a_
, unsigned int _a_high
, const unsigned char *w1_
, unsigned int _w1_high
, const unsigned char *w2_
, unsigned int _w2_high
);
36 extern "C" void mcQuiet_qprintf3 (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
);
37 extern "C" void mcQuiet_qprintf4 (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
);
39 extern "C" void mcQuiet_qprintf0 (const char *a_
, unsigned int _a_high
)
43 /* make a local copy of each unbounded array. */
44 memcpy (a
, a_
, _a_high
+1);
46 if (! (mcOptions_getQuiet ()))
48 mcPrintf_printf0 ((const char *) a
, _a_high
);
52 extern "C" void mcQuiet_qprintf1 (const char *a_
, unsigned int _a_high
, const unsigned char *w_
, unsigned int _w_high
)
55 unsigned char w
[_w_high
+1];
57 /* make a local copy of each unbounded array. */
58 memcpy (a
, a_
, _a_high
+1);
59 memcpy (w
, w_
, _w_high
+1);
61 if (! (mcOptions_getQuiet ()))
63 mcPrintf_printf1 ((const char *) a
, _a_high
, (const unsigned char *) w
, _w_high
);
67 extern "C" void mcQuiet_qprintf2 (const char *a_
, unsigned int _a_high
, const unsigned char *w1_
, unsigned int _w1_high
, const unsigned char *w2_
, unsigned int _w2_high
)
70 unsigned char w1
[_w1_high
+1];
71 unsigned char w2
[_w2_high
+1];
73 /* make a local copy of each unbounded array. */
74 memcpy (a
, a_
, _a_high
+1);
75 memcpy (w1
, w1_
, _w1_high
+1);
76 memcpy (w2
, w2_
, _w2_high
+1);
78 if (! (mcOptions_getQuiet ()))
80 mcPrintf_printf2 ((const char *) a
, _a_high
, (const unsigned char *) w1
, _w1_high
, (const unsigned char *) w2
, _w2_high
);
84 extern "C" void mcQuiet_qprintf3 (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
)
87 unsigned char w1
[_w1_high
+1];
88 unsigned char w2
[_w2_high
+1];
89 unsigned char w3
[_w3_high
+1];
91 /* make a local copy of each unbounded array. */
92 memcpy (a
, a_
, _a_high
+1);
93 memcpy (w1
, w1_
, _w1_high
+1);
94 memcpy (w2
, w2_
, _w2_high
+1);
95 memcpy (w3
, w3_
, _w3_high
+1);
97 if (! (mcOptions_getQuiet ()))
99 mcPrintf_printf3 ((const char *) a
, _a_high
, (const unsigned char *) w1
, _w1_high
, (const unsigned char *) w2
, _w2_high
, (const unsigned char *) w3
, _w3_high
);
103 extern "C" void mcQuiet_qprintf4 (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
)
106 unsigned char w1
[_w1_high
+1];
107 unsigned char w2
[_w2_high
+1];
108 unsigned char w3
[_w3_high
+1];
109 unsigned char w4
[_w4_high
+1];
111 /* make a local copy of each unbounded array. */
112 memcpy (a
, a_
, _a_high
+1);
113 memcpy (w1
, w1_
, _w1_high
+1);
114 memcpy (w2
, w2_
, _w2_high
+1);
115 memcpy (w3
, w3_
, _w3_high
+1);
116 memcpy (w4
, w4_
, _w4_high
+1);
118 if (! (mcOptions_getQuiet ()))
120 mcPrintf_printf4 ((const char *) a
, _a_high
, (const unsigned char *) w1
, _w1_high
, (const unsigned char *) w2
, _w2_high
, (const unsigned char *) w3
, _w3_high
, (const unsigned char *) w4
, _w4_high
);
124 extern "C" void _M2_mcQuiet_init (__attribute__((unused
)) int argc
, __attribute__((unused
)) char *argv
[], __attribute__((unused
)) char *envp
[])
128 extern "C" void _M2_mcQuiet_fini (__attribute__((unused
)) int argc
, __attribute__((unused
)) char *argv
[], __attribute__((unused
)) char *envp
[])