summaryrefslogtreecommitdiffhomepage
path: root/lib/stdx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-03-31 12:46:24 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-03-31 12:46:24 +0200
commit7bc56921bb59fe4159bccff45f567f989cf3c999 (patch)
tree6b65bd0acf8729780afaf40168a92f1f22653cc7 /lib/stdx
parent7be6771d2fe24d53524ea17aec139d547a63a3c0 (diff)
meta: rename to astdx, to avoid future confusions.
Diffstat (limited to 'lib/stdx')
-rw-r--r--lib/stdx/cgi.hpp6
-rw-r--r--lib/stdx/crc32.hpp4
-rw-r--r--lib/stdx/embdfs.hpp4
-rw-r--r--lib/stdx/opt.hpp8
4 files changed, 11 insertions, 11 deletions
diff --git a/lib/stdx/cgi.hpp b/lib/stdx/cgi.hpp
index 5213c15..ae2b650 100644
--- a/lib/stdx/cgi.hpp
+++ b/lib/stdx/cgi.hpp
@@ -11,7 +11,7 @@
#include <string>
#include <sstream>
-namespace stdx
+namespace astdx
{
namespace web
{
@@ -21,7 +21,7 @@ namespace stdx
cgi_writer& eval_(const std::string& mime, const std::stringstream& ss) noexcept
{
std::printf("Content-Type: %s\r\n", mime.c_str());
- std::printf("Server: %s\r\n", "stdx-cpp-library");
+ std::printf("Server: %s\r\n", "astdx-cpp-library");
std::printf("Content-Length: %ld\r\n\r\n", ss.str().size());
std::printf("%s", ss.str().c_str());
@@ -57,6 +57,6 @@ namespace stdx
}
};
} // namespace web
-} // namespace stdx
+} // namespace astdx
#endif // ifndef _STDX_CGI_HPP \ No newline at end of file
diff --git a/lib/stdx/crc32.hpp b/lib/stdx/crc32.hpp
index d41e251..b559aa9 100644
--- a/lib/stdx/crc32.hpp
+++ b/lib/stdx/crc32.hpp
@@ -13,7 +13,7 @@
/// @brief Crc32 implementation in C++
/// @author Amlal EL Mahrouss (amlal@nekernel.org)
-namespace stdx
+namespace astdx
{
namespace details
{
@@ -68,6 +68,6 @@ namespace stdx
return ~crc;
}
} // namespace details
-} // namespace stdx
+} // namespace astdx
#endif // !_STDX_CRC32_HPP \ No newline at end of file
diff --git a/lib/stdx/embdfs.hpp b/lib/stdx/embdfs.hpp
index baca491..f873b7d 100644
--- a/lib/stdx/embdfs.hpp
+++ b/lib/stdx/embdfs.hpp
@@ -15,7 +15,7 @@
/// @brief A Filesystem designed for tiny storage medias.
/// @author Amlal EL Mahrouss (amlal@nekernel.org)
-namespace stdx::freestanding
+namespace astdx::freestanding
{
namespace details
{
@@ -44,6 +44,6 @@ namespace stdx::freestanding
/// @brief Destroys the library context.
/// @return Whether it suceeded or not.
int32_t embdfs_destroy_context();
-} // namespace stdx::freestanding
+} // namespace astdx::freestanding
#endif // ifndef _STDX_EMBDFS_HPP \ No newline at end of file
diff --git a/lib/stdx/opt.hpp b/lib/stdx/opt.hpp
index 5624c0a..e8772c9 100644
--- a/lib/stdx/opt.hpp
+++ b/lib/stdx/opt.hpp
@@ -10,7 +10,7 @@
#include <stdexcept>
#include <utility>
-namespace stdx
+namespace astdx
{
enum class ret
{
@@ -40,9 +40,9 @@ namespace stdx
};
template <typename Teller, typename... Lst>
- inline stdx::ret eval(Teller tell, Lst&&... arg)
+ inline astdx::ret eval(Teller tell, Lst&&... arg)
{
- return tell(std::forward<Lst>(arg)...) ? stdx::ret::okay : stdx::ret::err;
+ return tell(std::forward<Lst>(arg)...) ? astdx::ret::okay : astdx::ret::err;
}
namespace traits
@@ -105,6 +105,6 @@ namespace stdx
return greater_than(std::forward<Lst>(arg)...) ? ret::okay : ret::err;
}
-} /* namespace stdx */
+} /* namespace astdx */
#endif /* ifndef _STDX_OPT_HPP */