1
0

refactor: cancel the namespace Rust.

- all sub-functions are put into respective position.
This commit is contained in:
2025-10-07 18:15:17 +08:00
parent eda801d3c7
commit c48e79753d
20 changed files with 89 additions and 80 deletions

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/constraint.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define CONSTRAINT ::yycc::constraint::Constraint

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/constraint/builder.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define BUILDER ::yycc::constraint::builder
using namespace std::literals::string_view_literals;

View File

@ -3,7 +3,7 @@
#include <yycc/flag_enum.hpp>
#include <cinttypes>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define FLAG_ENUM ::yycc::flag_enum

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/num/op.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define OP ::yycc::num::op

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/num/parse.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define PARSE ::yycc::num::parse

View File

@ -3,7 +3,7 @@
#include <yycc/num/safe_cast.hpp>
#include <yycc/macro/ptr_size_detector.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define CAST ::yycc::num::safe_cast

View File

@ -4,7 +4,7 @@
#include <cstdint>
#include <limits>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define OP ::yycc::num::safe_op

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/num/stringify.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define STRINGIFY ::yycc::num::stringify

View File

@ -2,7 +2,7 @@
#include <yycc.hpp>
#include <yycc/string/op.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define OP ::yycc::string::op
using namespace std::literals::string_view_literals;

View File

@ -3,7 +3,7 @@
#include <yycc.hpp>
#include <yycc/string/reinterpret.hpp>
#include <yycc/rust/prelude.hpp>
#include <yycc/prelude.hpp>
#define REINTERPRET ::yycc::string::reinterpret
#define AS_UINT8(p) static_cast<u8>(p)