diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-22 02:28:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 02:28:44 -0500 |
| commit | 8470a48ef4c6ea4b16e9a764aaedc7158f9c37ed (patch) | |
| tree | 9c6e64d288199110887e599458b212a36183572f /dev/lib | |
| parent | 6f8c36c3e004b9dc6802128f1cae34812cb8287b (diff) | |
| parent | 32af6ab79fe52efa6fc773a672e2732388999692 (diff) | |
Merge pull request #16 from amlel-el-mahrouss/developv1.0.471
chore & fix: codebase improvements and repo maintenance.
Diffstat (limited to 'dev/lib')
| -rw-r--r-- | dev/lib/fix/fix.hpp | 6 | ||||
| -rw-r--r-- | dev/lib/io/print.hpp | 1 | ||||
| -rw-r--r-- | dev/lib/simd/simd.hpp | 12 | ||||
| -rw-r--r-- | dev/lib/utility/cgi.hpp (renamed from dev/lib/utility/cgi_writer.hpp) | 10 |
4 files changed, 13 insertions, 16 deletions
diff --git a/dev/lib/fix/fix.hpp b/dev/lib/fix/fix.hpp index 6f02fa1..4f02e28 100644 --- a/dev/lib/fix/fix.hpp +++ b/dev/lib/fix/fix.hpp @@ -158,9 +158,7 @@ namespace ocl::fix if (in.empty()) return ret; - static thread_local std::basic_string<char_type> in_tmp{}; - - in_tmp.reserve(in.size()); + std::basic_string<char_type> in_tmp{"", in.size()}; try { @@ -205,7 +203,7 @@ namespace ocl::fix { if (!basic_range.is_valid()) { - handler.template error<true>("Invalid FIX packet."); + handler.template error<true>("Invalid FIX Message."); } } diff --git a/dev/lib/io/print.hpp b/dev/lib/io/print.hpp index 466b698..c710156 100644 --- a/dev/lib/io/print.hpp +++ b/dev/lib/io/print.hpp @@ -9,7 +9,6 @@ #define _OCL_PRINT_HPP #include <iostream> -#include <ostream> namespace ocl::io { diff --git a/dev/lib/simd/simd.hpp b/dev/lib/simd/simd.hpp index 22650bb..7a40adc 100644 --- a/dev/lib/simd/simd.hpp +++ b/dev/lib/simd/simd.hpp @@ -18,7 +18,7 @@ namespace ocl::snu::simd class basic_simd_processor { private: - backend_type processor_; + backend_type backend_; enum opcode { @@ -41,21 +41,21 @@ namespace ocl::snu::simd switch (op) { case add: - return processor_.add(lhs, rhs); + return backend_.add(lhs, rhs); case mul: - return processor_.mul(lhs, rhs); + return backend_.mul(lhs, rhs); case div: - return processor_.div(lhs, rhs); + return backend_.div(lhs, rhs); default: break; } - return processor_.is_bad(); + return backend_.is_bad(); } std::basic_string<char> isa() { - return processor_.isa(); + return backend_.isa(); } }; } // namespace ocl::snu::simd diff --git a/dev/lib/utility/cgi_writer.hpp b/dev/lib/utility/cgi.hpp index 7b95b2e..fd00bbf 100644 --- a/dev/lib/utility/cgi_writer.hpp +++ b/dev/lib/utility/cgi.hpp @@ -1,11 +1,11 @@ /* - * File: cgi_writer.hpp + * File: cgi.hpp * Author: Amlal El Mahrouss, * Copyright 2023-2025, Amlal El Mahrouss, Licensed under the Boost Software License. */ -#ifndef _OCL_CGI_WRITER_HPP -#define _OCL_CGI_WRITER_HPP +#ifndef _OCL_CGI_HPP +#define _OCL_CGI_HPP #include <lib/io/print.hpp> #include <lib/core/chunk_string.hpp> @@ -26,7 +26,7 @@ namespace ocl std::basic_stringstream<char_type> ss_out; ss_out << std::format("Content-Type: {}\r\n", mime.str()); - ss_out << std::format("Server: {}\r\n", "OCL-CGI/1.0"); + ss_out << std::format("Server: {}\r\n", "OCL/1.0"); ss_out << std::format("Content-Length: {}\r\n\r\n", ss.str().size()); ss_out << ss.str(); @@ -76,4 +76,4 @@ namespace ocl } // namespace cgi } // namespace ocl -#endif // ifndef _OCL_CGI_WRITER_HPP +#endif // ifndef _OCL_CGI_HPP |
