+2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * c-lang.c (language_defn::printchar): Call emitchar, not
+ LA_EMIT_CHAR.
+ * f-lang.h (f_language::printchar): Likewise.
+ * language.h (LA_EMIT_CHAR): Delete macro.
+ * rust-lang.c (rust_language::printchar): Call emitchar, not
+ LA_EMIT_CHAR.
+
2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
* c-lang.c (c_printchar): Rename to...
}
fputc_filtered ('\'', stream);
- LA_EMIT_CHAR (c, type, stream, '\'');
+ emitchar (c, type, stream, '\'');
fputc_filtered ('\'', stream);
}
struct ui_file *stream) const override
{
fputs_filtered ("'", stream);
- LA_EMIT_CHAR (ch, chtype, stream, '\'');
+ emitchar (ch, chtype, stream, '\'');
fputs_filtered ("'", stream);
}
#define LA_PRINT_STRING(stream, elttype, string, length, encoding, force_ellipses, options) \
(current_language->printstr (stream, elttype, string, length, \
encoding, force_ellipses,options))
-#define LA_EMIT_CHAR(ch, type, stream, quoter) \
- (current_language->emitchar (ch, type, stream, quoter))
/* Test a character to decide whether it can be printed in literal form
or needs to be printed in another representation. For example,
struct ui_file *stream) const override
{
fputs_filtered ("'", stream);
- LA_EMIT_CHAR (ch, chtype, stream, '\'');
+ emitchar (ch, chtype, stream, '\'');
fputs_filtered ("'", stream);
}