summaryrefslogtreecommitdiff
path: root/zen
diff options
context:
space:
mode:
Diffstat (limited to 'zen')
-rw-r--r--zen/file_traverser.cpp2
-rw-r--r--zen/legacy_compiler.h1
-rw-r--r--zen/shutdown.cpp2
-rw-r--r--zen/thread.cpp2
4 files changed, 3 insertions, 4 deletions
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 <span> //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<volatile int*>(0) = 0; //crude but at least we'll get crash dumps if it happens
+ *reinterpret_cast<volatile int*>(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<std::string>(__LINE__) + "] Failed to get thread ID.");
static_assert(sizeof(uint64_t) >= sizeof(tid));
bgstack15