调整函数命名和python 内部函数名冲突问题
This commit is contained in:
parent
00c8df8edf
commit
4ce22545e1
|
@ -20,5 +20,5 @@ EXPORTS
|
||||||
hg_scanner_err_description
|
hg_scanner_err_description
|
||||||
hg_scanner_log_is_enable
|
hg_scanner_log_is_enable
|
||||||
hg_scanner_log
|
hg_scanner_log
|
||||||
get_current_time
|
hg_get_current_time
|
||||||
get_current_time_w
|
hg_get_current_time_w
|
|
@ -2950,7 +2950,7 @@ void init_log(void)
|
||||||
|
|
||||||
wchar_t ts[128] = { 0 }, now[40] = { 0 };
|
wchar_t ts[128] = { 0 }, now[40] = { 0 };
|
||||||
|
|
||||||
get_current_time_w(now);
|
hg_get_current_time_w(now);
|
||||||
swprintf_s(ts, _countof(ts) - 1, L"==================%s==================\r\n", now);
|
swprintf_s(ts, _countof(ts) - 1, L"==================%s==================\r\n", now);
|
||||||
fwrite(ts, 2, lstrlenW(ts), g_file_);
|
fwrite(ts, 2, lstrlenW(ts), g_file_);
|
||||||
}
|
}
|
||||||
|
@ -2979,7 +2979,7 @@ void log(const wchar_t* info)
|
||||||
unsigned short bom = 0x0feff;
|
unsigned short bom = 0x0feff;
|
||||||
wchar_t ts[128] = { 0 }, now[40] = { 0 };
|
wchar_t ts[128] = { 0 }, now[40] = { 0 };
|
||||||
|
|
||||||
get_current_time_w(now);
|
hg_get_current_time_w(now);
|
||||||
swprintf_s(ts, _countof(ts) - 1, L"==================%s (Truncated when size > 10MB) ==================\r\n", now);
|
swprintf_s(ts, _countof(ts) - 1, L"==================%s (Truncated when size > 10MB) ==================\r\n", now);
|
||||||
fwrite(&bom, sizeof(bom), 1, g_file_);
|
fwrite(&bom, sizeof(bom), 1, g_file_);
|
||||||
fwrite(ts, 2, lstrlenW(ts), g_file_);
|
fwrite(ts, 2, lstrlenW(ts), g_file_);
|
||||||
|
|
Loading…
Reference in New Issue