From 0b69623b32066b128de7ebb2343a4e8dc3aebe68 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Thu, 11 Mar 2021 08:35:56 +0200 Subject: [PATCH] Fix build --- source/m3_compile.c | 2 +- source/m3_env.c | 2 +- source/m3_exec.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/m3_compile.c b/source/m3_compile.c index 9202551..03dd6ff 100644 --- a/source/m3_compile.c +++ b/source/m3_compile.c @@ -2341,7 +2341,7 @@ M3Result Compile_Function (IM3Function io_function) IM3FuncType ft = io_function->funcType; M3Result result = m3Err_none; m3log (compile, "compiling: '%s'; wasm-size: %d; numArgs: %d; return: %s", - GetFunctionName(io_function), (u32) (io_function->wasmEnd - io_function->wasm), GetFunctionNumArgs (io_function), c_waTypes [GetSingleRetType(ft)]); + m3_GetFunctionName(io_function), (u32) (io_function->wasmEnd - io_function->wasm), GetFunctionNumArgs (io_function), c_waTypes [GetSingleRetType(ft)]); IM3Runtime runtime = io_function->module->runtime; IM3Compilation o = & runtime->compilation; diff --git a/source/m3_env.c b/source/m3_env.c index a3319c2..23af20a 100644 --- a/source/m3_env.c +++ b/source/m3_env.c @@ -656,7 +656,7 @@ _ (m3ReallocArray (& io_module->table0, IM3Function, endElement, io_mo u32 functionIndex; _ (ReadLEB_u32 (& functionIndex, & bytes, end)); _throwif ("function index out of range", functionIndex >= io_module->numFunctions); - IM3Function function = & io_module->functions [functionIndex]; d_m3Assert (function); //printf ("table: %s\n", GetFunctionName(function)); + IM3Function function = & io_module->functions [functionIndex]; d_m3Assert (function); //printf ("table: %s\n", m3_GetFunctionName(function)); io_module->table0 [e + offset] = function; } } diff --git a/source/m3_exec.h b/source/m3_exec.h index 0319630..2f48ae2 100644 --- a/source/m3_exec.h +++ b/source/m3_exec.h @@ -708,7 +708,7 @@ d_m3Op (Entry) if ((void *) ((m3slot_t *) _sp + function->maxStackSlots) < _mem->maxStack) #endif { - m3log (exec, " enter %p > %s %s", _pc - 2, GetFunctionName(function), SPrintFunctionArgList (function, _sp)); + m3log (exec, " enter %p > %s %s", _pc - 2, m3_GetFunctionName(function), SPrintFunctionArgList (function, _sp)); #if defined(DEBUG) function->hits++; @@ -733,10 +733,10 @@ d_m3Op (Entry) if (not r) SPrintArg (str, 99, _sp, GetSingleRetType(function->funcType)); - m3log (exec, " exit < %s %s %s %s", GetFunctionName(function), function->funcType->numRets ? "->" : "", str, r ? (cstr_t)r : ""); + m3log (exec, " exit < %s %s %s %s", m3_GetFunctionName(function), function->funcType->numRets ? "->" : "", str, r ? (cstr_t)r : ""); # elif d_m3LogStackTrace if (r) - printf (" ** %s %p\n", GetFunctionName(function), _sp); + printf (" ** %s %p\n", m3_GetFunctionName(function), _sp); # endif if (r) @@ -903,7 +903,7 @@ d_m3Op (DumpStack) u32 stackHeight = immediate (u32); IM3Function function = immediate (IM3Function); - cstr_t funcName = (function) ? GetFunctionName(function) : ""; + cstr_t funcName = (function) ? m3_GetFunctionName(function) : ""; printf (" %4d ", opcodeIndex); printf (" %-25s r0: 0x%016" PRIx64 " i:%" PRIi64 " u:%" PRIu64 "\n", funcName, _r0, _r0, _r0);