improved HashTest.cpp

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-07-21 19:46:38 +08:00
parent 4d40490d43
commit d09e0e91ff

View File

@ -8,11 +8,7 @@ using namespace std;
using namespace hgl;
using namespace hgl::util;
#if HGL_OS == HGL_OS_Windows
int wmain(int argc,wchar_t **argv)
#else
int main(int argc,char **argv)
#endif//HGL_OS == HGL_OS_Windows
int os_main(int argc,os_char **argv)
{
if(argc<2)
{
@ -20,11 +16,7 @@ int main(int argc,char **argv)
return(0);
}
#if HGL_OS == HGL_OS_Windows
wcout<<L"CountHash \""<<argv[1]<<L'"'<<endl;
#else
cout<<"CountHash \""<<argv[1]<<'"'<<endl;
#endif//HGL_OS == HGL_OS_Windows
os_out<<OS_TEXT("CountHash \"")<<argv[1]<<OS_TEXT('"')<<endl;
void *file_data;
int64 file_length;