#include "main_globals.h" // vex_traceflags
#include "host_s390_disasm.h"
-/* The format that is used to write out a mnemonic.
- These should be declared as 'const HChar' but vex_printf needs
- to be changed for that first */
-static HChar s390_mnm_fmt[] = "%-8s";
+/* The format that is used to write out a mnemonic. */
+static const HChar s390_mnm_fmt[] = "%-8s";
/* Return the name of a general purpose register for dis-assembly purposes. */
}
__attribute__ ((noreturn))
-void vpanic ( HChar* str )
+void vpanic ( const HChar* str )
{
vex_printf("\nvex: the `impossible' happened:\n %s\n", str);
(*vex_failure_exit)();
printf. */
static
UInt vprintf_wrk ( void(*sink)(HChar),
- HChar* format,
+ const HChar* format,
va_list ap )
{
# define PUT(_ch) \
do { HChar* _qq = _str; for (; *_qq; _qq++) PUT(*_qq); } \
while (0)
- HChar* saved_format;
+ const HChar* saved_format;
Bool longlong, ljustify;
HChar padchar;
Int fwidth, nout, len1, len2, len3;
}
}
-UInt vex_printf ( HChar* format, ... )
+UInt vex_printf ( const HChar* format, ... )
{
UInt ret;
va_list vargs;
*vg_sprintf_ptr++ = c;
}
-UInt vex_sprintf ( HChar* buf, HChar *format, ... )
+UInt vex_sprintf ( HChar* buf, const HChar *format, ... )
{
Int ret;
va_list vargs;
extern void vex_assert_fail ( const HChar* expr, const HChar* file,
Int line, const HChar* fn );
__attribute__ ((__noreturn__))
-extern void vpanic ( HChar* str );
+extern void vpanic ( const HChar* str );
/* Printing */
__attribute__ ((format (printf, 1, 2)))
-extern UInt vex_printf ( HChar *format, ... );
+extern UInt vex_printf ( const HChar *format, ... );
__attribute__ ((format (printf, 2, 3)))
-extern UInt vex_sprintf ( HChar* buf, HChar *format, ... );
+extern UInt vex_sprintf ( HChar* buf, const HChar *format, ... );
/* String ops */