From 3a66f25c648c798d472f0de3b40c36a64fe75252 Mon Sep 17 00:00:00 2001 From: B Stack Date: Fri, 12 Apr 2019 08:05:57 -0400 Subject: 10.11 --- zen/file_traverser.cpp | 2 +- zen/legacy_compiler.h | 1 - zen/shutdown.cpp | 2 +- zen/thread.cpp | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) (limited to 'zen') diff --git a/zen/file_traverser.cpp b/zen/file_traverser.cpp index cc6e0c0b..2d2a0cce 100644 --- a/zen/file_traverser.cpp +++ b/zen/file_traverser.cpp @@ -39,7 +39,7 @@ void zen::traverseFolder(const Zstring& dirPath, return; THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot read directory %x."), L"%x", fmtPath(dirPath)), L"readdir"); - //don't retry but restart dir traversal on error! https://blogs.msdn.microsoft.com/oldnewthing/20140612-00/?p=753/ + //don't retry but restart dir traversal on error! https://devblogs.microsoft.com/oldnewthing/20140612-00/?p=753/ } //don't return "." and ".." diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h index 54605945..5b69ed94 100644 --- a/zen/legacy_compiler.h +++ b/zen/legacy_compiler.h @@ -7,7 +7,6 @@ #ifndef LEGACY_COMPILER_H_839567308565656789 #define LEGACY_COMPILER_H_839567308565656789 -//#include //requires C++20 namespace std diff --git a/zen/shutdown.cpp b/zen/shutdown.cpp index cd37d57c..aecd4121 100644 --- a/zen/shutdown.cpp +++ b/zen/shutdown.cpp @@ -36,7 +36,7 @@ void zen::terminateProcess(int exitCode) std::exit(exitCode); //[[noreturn]]; "Stack is not unwound: destructors of variables with automatic storage duration are not called." => perfect //don't use std::abort() => crashes process with "EXC_CRASH (SIGABRT)" on macOS for (;;) //why still here?? => crash deliberately! - *reinterpret_cast(0) = 0; //crude but at least we'll get crash dumps if it happens + *reinterpret_cast(0) = 0; //crude but at least we'll get crash dumps if it ever happens } diff --git a/zen/thread.cpp b/zen/thread.cpp index 08bfaa25..49c6d9b3 100644 --- a/zen/thread.cpp +++ b/zen/thread.cpp @@ -26,7 +26,7 @@ namespace uint64_t getThreadIdNative() { const pid_t tid = ::syscall(SYS_gettid); //no-fail - //"Invalid thread and process IDs": https://blogs.msdn.microsoft.com/oldnewthing/20040223-00/?p=40503 + //"Invalid thread and process IDs": https://devblogs.microsoft.com/oldnewthing/20040223-00/?p=40503 //if (tid == 0) -> not sure this holds on Linux, too! // throw std::runtime_error(std::string(__FILE__) + "[" + numberTo(__LINE__) + "] Failed to get thread ID."); static_assert(sizeof(uint64_t) >= sizeof(tid)); -- cgit