From 308f63490c9152abf5eda56c819468afabee4ecf Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 15 Mar 2023 21:49:41 +0100 Subject: [PATCH] Rename .h to .hpp These files are C++ only. They should either have no extension like standard C++ headers (which is cumbersome on Windows environments), or .hpp. .h is used for C and hybrid C/C++ headers. Signed-off-by: Simon Rozman --- UnitTests/pch.h | 26 +++++++++---------- include/stdex/{base64.h => base64.hpp} | 2 +- include/stdex/{errno.h => errno.hpp} | 2 +- include/stdex/{exception.h => exception.hpp} | 2 +- include/stdex/{hex.h => hex.hpp} | 2 +- include/stdex/{idrec.h => idrec.hpp} | 2 +- include/stdex/{interval.h => interval.hpp} | 2 +- include/stdex/{mapping.h => mapping.hpp} | 2 +- include/stdex/{memory.h => memory.hpp} | 0 include/stdex/{parser.h => parser.hpp} | 10 +++---- include/stdex/{progress.h => progress.hpp} | 4 +-- include/stdex/{sal.h => sal.hpp} | 0 include/stdex/{sgml.h => sgml.hpp} | 8 +++--- .../{sgml_unicode.h => sgml_unicode.hpp} | 0 include/stdex/{string.h => string.hpp} | 2 +- .../{vector_queue.h => vector_queue.hpp} | 2 +- 16 files changed, 33 insertions(+), 33 deletions(-) rename include/stdex/{base64.h => base64.hpp} (99%) rename include/stdex/{errno.h => errno.hpp} (98%) rename include/stdex/{exception.h => exception.hpp} (96%) rename include/stdex/{hex.h => hex.hpp} (99%) rename include/stdex/{idrec.h => idrec.hpp} (99%) rename include/stdex/{interval.h => interval.hpp} (98%) rename include/stdex/{mapping.h => mapping.hpp} (97%) rename include/stdex/{memory.h => memory.hpp} (100%) rename include/stdex/{parser.h => parser.hpp} (99%) rename include/stdex/{progress.h => progress.hpp} (99%) rename include/stdex/{sal.h => sal.hpp} (100%) rename include/stdex/{sgml.h => sgml.hpp} (99%) rename include/stdex/{sgml_unicode.h => sgml_unicode.hpp} (100%) rename include/stdex/{string.h => string.hpp} (99%) rename include/stdex/{vector_queue.h => vector_queue.hpp} (99%) diff --git a/UnitTests/pch.h b/UnitTests/pch.h index 63cd120af..2fc1d4d26 100644 --- a/UnitTests/pch.h +++ b/UnitTests/pch.h @@ -8,18 +8,18 @@ #define SECURITY_WIN32 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include diff --git a/include/stdex/base64.h b/include/stdex/base64.hpp similarity index 99% rename from include/stdex/base64.h rename to include/stdex/base64.hpp index 7a618471e..58e8b9089 100644 --- a/include/stdex/base64.h +++ b/include/stdex/base64.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include #include #include diff --git a/include/stdex/errno.h b/include/stdex/errno.hpp similarity index 98% rename from include/stdex/errno.h rename to include/stdex/errno.hpp index 571be4a9b..5a895051f 100644 --- a/include/stdex/errno.h +++ b/include/stdex/errno.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include #include diff --git a/include/stdex/exception.h b/include/stdex/exception.hpp similarity index 96% rename from include/stdex/exception.h rename to include/stdex/exception.hpp index 1f487cac6..f775582d8 100644 --- a/include/stdex/exception.h +++ b/include/stdex/exception.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include namespace stdex diff --git a/include/stdex/hex.h b/include/stdex/hex.hpp similarity index 99% rename from include/stdex/hex.h rename to include/stdex/hex.hpp index a67241afa..d9a11a8fd 100644 --- a/include/stdex/hex.h +++ b/include/stdex/hex.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include #include #include diff --git a/include/stdex/idrec.h b/include/stdex/idrec.hpp similarity index 99% rename from include/stdex/idrec.h rename to include/stdex/idrec.hpp index ddc655883..4373f78db 100644 --- a/include/stdex/idrec.h +++ b/include/stdex/idrec.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include #include #include diff --git a/include/stdex/interval.h b/include/stdex/interval.hpp similarity index 98% rename from include/stdex/interval.h rename to include/stdex/interval.hpp index d764ed345..b65189362 100644 --- a/include/stdex/interval.h +++ b/include/stdex/interval.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" namespace stdex { diff --git a/include/stdex/mapping.h b/include/stdex/mapping.hpp similarity index 97% rename from include/stdex/mapping.h rename to include/stdex/mapping.hpp index 7c6f1f283..ed6622bc0 100644 --- a/include/stdex/mapping.h +++ b/include/stdex/mapping.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include namespace stdex diff --git a/include/stdex/memory.h b/include/stdex/memory.hpp similarity index 100% rename from include/stdex/memory.h rename to include/stdex/memory.hpp diff --git a/include/stdex/parser.h b/include/stdex/parser.hpp similarity index 99% rename from include/stdex/parser.h rename to include/stdex/parser.hpp index 9e7e888ca..d9f47efdb 100644 --- a/include/stdex/parser.h +++ b/include/stdex/parser.hpp @@ -5,11 +5,11 @@ #pragma once -#include "interval.h" -#include "memory.h" -#include "sal.h" -#include "sgml.h" -#include "string.h" +#include "interval.hpp" +#include "memory.hpp" +#include "sal.hpp" +#include "sgml.hpp" +#include "string.hpp" #include #include #include diff --git a/include/stdex/progress.h b/include/stdex/progress.hpp similarity index 99% rename from include/stdex/progress.h rename to include/stdex/progress.hpp index c52004a46..6fd07b349 100644 --- a/include/stdex/progress.h +++ b/include/stdex/progress.hpp @@ -5,8 +5,8 @@ #pragma once -#include "sal.h" -#include "interval.h" +#include "sal.hpp" +#include "interval.hpp" #include namespace stdex diff --git a/include/stdex/sal.h b/include/stdex/sal.hpp similarity index 100% rename from include/stdex/sal.h rename to include/stdex/sal.hpp diff --git a/include/stdex/sgml.h b/include/stdex/sgml.hpp similarity index 99% rename from include/stdex/sgml.h rename to include/stdex/sgml.hpp index 121b341a7..8e2c727fc 100644 --- a/include/stdex/sgml.h +++ b/include/stdex/sgml.hpp @@ -5,10 +5,10 @@ #pragma once -#include "mapping.h" -#include "sal.h" -#include "sgml_unicode.h" -#include "string.h" +#include "mapping.hpp" +#include "sal.hpp" +#include "sgml_unicode.hpp" +#include "string.hpp" #include namespace stdex diff --git a/include/stdex/sgml_unicode.h b/include/stdex/sgml_unicode.hpp similarity index 100% rename from include/stdex/sgml_unicode.h rename to include/stdex/sgml_unicode.hpp diff --git a/include/stdex/string.h b/include/stdex/string.hpp similarity index 99% rename from include/stdex/string.h rename to include/stdex/string.hpp index 85d77a61a..039d95a39 100644 --- a/include/stdex/string.h +++ b/include/stdex/string.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" #include #include #include diff --git a/include/stdex/vector_queue.h b/include/stdex/vector_queue.hpp similarity index 99% rename from include/stdex/vector_queue.h rename to include/stdex/vector_queue.hpp index 8f8a22ba9..0d7d99e92 100644 --- a/include/stdex/vector_queue.h +++ b/include/stdex/vector_queue.hpp @@ -5,7 +5,7 @@ #pragma once -#include "sal.h" +#include "sal.hpp" namespace stdex {