Now that everything is converted to the C code, nanomips.cpp file is
renamed to "nanomips.c". Therefore, meson.build file is also changed.
The explicit cast after the call to g_malloc() is no longer needed
because the file now compiles as a C code.
Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
---
disas/meson.build | 2 +-
disas/{nanomips.cpp => nanomips.c} | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
rename disas/{nanomips.cpp => nanomips.c} (99%)
@@ -525,11 +525,7 @@ static const char *GPR(uint64 reg, struct Dis_info *info)
static char *save_restore_list(uint64 rt, uint64 count, uint64 gp,
struct Dis_info *info)
{
- /*
- * Currently, this file compiles as a cpp file, so the explicit cast here
- * is necessary. Later, the cast will be removed.
- */
- char *str = (char *)g_malloc(200);
+ char *str = g_malloc(200);