Loading lib_debug/wmc_auto.c +4 −5 Original line number Diff line number Diff line Loading @@ -1063,20 +1063,19 @@ static unsigned long malloc_hash(const char* func_name, int func_lineno, char* s { unsigned long hash = 5381; const char* ptr_str; int c; ptr_str = func_name; while (c = *ptr_str++) while ( ptr_str != NULL && *ptr_str != '\0' ) { hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ hash = ((hash << 5) + hash) + *ptr_str++; /* hash * 33 + char */ } hash = ((hash << 5) + hash) + func_lineno; /* hash * 33 + func_lineno */ ptr_str = size_str; while (c = *ptr_str++) while ( ptr_str != NULL && *ptr_str != '\0' ) { hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ hash = ( ( hash << 5 ) + hash ) + *ptr_str++; /* hash * 33 + char */ } return hash; Loading scripts/tools/Linux/wmc_tool (199 KiB) File changed.No diff preview for this file type. View original file View changed file scripts/tools/Win32/wmc_tool.exe LFS (131 B) File changed.No diff preview for this file type. View original file View changed file Loading
lib_debug/wmc_auto.c +4 −5 Original line number Diff line number Diff line Loading @@ -1063,20 +1063,19 @@ static unsigned long malloc_hash(const char* func_name, int func_lineno, char* s { unsigned long hash = 5381; const char* ptr_str; int c; ptr_str = func_name; while (c = *ptr_str++) while ( ptr_str != NULL && *ptr_str != '\0' ) { hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ hash = ((hash << 5) + hash) + *ptr_str++; /* hash * 33 + char */ } hash = ((hash << 5) + hash) + func_lineno; /* hash * 33 + func_lineno */ ptr_str = size_str; while (c = *ptr_str++) while ( ptr_str != NULL && *ptr_str != '\0' ) { hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ hash = ( ( hash << 5 ) + hash ) + *ptr_str++; /* hash * 33 + char */ } return hash; Loading
scripts/tools/Linux/wmc_tool (199 KiB) File changed.No diff preview for this file type. View original file View changed file
scripts/tools/Win32/wmc_tool.exe LFS (131 B) File changed.No diff preview for this file type. View original file View changed file