}
static void
-wr_verror (struct where *wh, const char *format, va_list ap)
+wr_verror (const struct where *wh, const char *format, va_list ap)
{
printf ("error: %s", where_fmt (wh, NULL));
vprintf (format, ap);
}
static void
-wr_vwarning (struct where *wh, const char *format, va_list ap)
+wr_vwarning (const struct where *wh, const char *format, va_list ap)
{
printf ("warning: %s", where_fmt (wh, NULL));
vprintf (format, ap);
}
void
-wr_error (struct where *wh, const char *format, ...)
+wr_error (const struct where *wh, const char *format, ...)
{
va_list ap;
va_start (ap, format);
}
void
-wr_warning (struct where *wh, const char *format, ...)
+wr_warning (const struct where *wh, const char *format, ...)
{
va_list ap;
va_start (ap, format);
}
void
-wr_message (enum message_category category, struct where *wh,
- const char *format, ...)
+wr_message (enum message_category category, const struct where *wh,
+ const char *format, ...)
{
va_list ap;
va_start (ap, format);
const char *
-where_fmt (struct where *wh, char *ptr)
+where_fmt (const struct where *wh, char *ptr)
{
if (wh == NULL)
return "";
}
void
-where_fmt_chain (struct where *wh, const char *severity)
+where_fmt_chain (const struct where *wh, const char *severity)
{
if (wh != NULL)
for (struct where *it = wh->next; it != NULL; it = it->next)
((struct where) \
{(SECTION), (uint64_t)-1, (uint64_t)-1, (uint64_t)-1, NULL, NEXT})
- extern const char *where_fmt (struct where *wh, char *ptr);
- extern void where_fmt_chain (struct where *wh, const char *severity);
+ extern const char *where_fmt (const struct where *wh, char *ptr);
+ extern void where_fmt_chain (const struct where *wh, const char *severity);
extern void where_reset_1 (struct where *wh, uint64_t addr);
extern void where_reset_2 (struct where *wh, uint64_t addr);
extern void where_reset_3 (struct where *wh, uint64_t addr);
mc_all = 0xffffff00, // all areas
};
- extern void wr_error (struct where *wh, const char *format, ...)
+ extern void wr_error (const struct where *wh, const char *format, ...)
__attribute__ ((format (printf, 2, 3)));
- extern void wr_warning (struct where *wh, const char *format, ...)
+ extern void wr_warning (const struct where *wh, const char *format, ...)
__attribute__ ((format (printf, 2, 3)));
- extern void wr_message (enum message_category category, struct where *wh,
+ extern void wr_message (enum message_category category, const struct where *wh,
const char *format, ...)
__attribute__ ((format (printf, 3, 4)));