BAN: Rename StringView suffix from _sv to sv
This commit is contained in:
		
							parent
							
								
									8b8e3cbbf0
								
							
						
					
					
						commit
						c012822d49
					
				|  | @ -12,7 +12,7 @@ namespace BAN | |||
| 
 | ||||
| 	String::String() | ||||
| 	{ | ||||
| 		MUST(copy_impl(""_sv)); | ||||
| 		MUST(copy_impl(""sv)); | ||||
| 	} | ||||
| 
 | ||||
| 	String::String(const String& other) | ||||
|  |  | |||
|  | @ -44,7 +44,7 @@ namespace BAN | |||
| 
 | ||||
| } | ||||
| 
 | ||||
| inline BAN::StringView operator""_sv(const char* str, BAN::StringView::size_type len) { return BAN::StringView(str, len); } | ||||
| inline BAN::StringView operator""sv(const char* str, BAN::StringView::size_type len) { return BAN::StringView(str, len); } | ||||
| 
 | ||||
| namespace BAN::Formatter | ||||
| { | ||||
|  |  | |||
|  | @ -16,9 +16,9 @@ export LIBDIR=$EXEC_PREFIX/lib | |||
| export INCLUDEDIR=$PREFIX/include | ||||
|   | ||||
| export CFLAGS='-O2 -g' | ||||
| export CPPFLAGS='--std=c++20' | ||||
| export CPPFLAGS='--std=c++20 -Wno-literal-suffix' | ||||
|   | ||||
| export UBSAN=1 | ||||
| export UBSAN=0 | ||||
| 
 | ||||
| # Configure the cross-compiler to use the desired system root. | ||||
| export SYSROOT="$(pwd)/sysroot" | ||||
|  |  | |||
|  | @ -91,7 +91,7 @@ namespace Kernel | |||
| 				 | ||||
| 				for (auto& partition : device->partitions()) | ||||
| 				{ | ||||
| 					if (partition.name() == "banan-root"_sv) | ||||
| 					if (partition.name() == "banan-root"sv) | ||||
| 					{ | ||||
| 						if (m_root_inode) | ||||
| 							dwarnln("multiple root partitions found"); | ||||
|  |  | |||
|  | @ -20,14 +20,14 @@ namespace Kernel | |||
| { | ||||
| 	using namespace BAN; | ||||
| 
 | ||||
| 	static auto s_default_prompt = "\\[\e[32m\\]user\\[\e[m\\]# "_sv; | ||||
| 	static auto s_default_prompt = "\\[\e[32m\\]user\\[\e[m\\]# "sv; | ||||
| 
 | ||||
| 	Shell::Shell(TTY* tty) | ||||
| 		: m_tty(tty) | ||||
| 	{ | ||||
| 		Input::register_key_event_callback({ &Shell::key_event_callback, this }); | ||||
| 		set_prompt(s_default_prompt); | ||||
| 		MUST(m_buffer.push_back(""_sv)); | ||||
| 		MUST(m_buffer.push_back(""sv)); | ||||
| 	} | ||||
| 
 | ||||
| 	void Shell::set_prompt(StringView prompt) | ||||
|  | @ -76,7 +76,7 @@ namespace Kernel | |||
| 			if (command.empty()) | ||||
| 				break; | ||||
| 
 | ||||
| 			MUST(result.push_back(""_sv)); | ||||
| 			MUST(result.push_back(""sv)); | ||||
| 
 | ||||
| 			char quoted = '\0'; | ||||
| 			bool escape = false; | ||||
|  | @ -399,7 +399,7 @@ argument_done: | |||
| 						TTY_PRINTLN("{}", res.error()); | ||||
| 					MUST(m_old_buffer.push_back(current_buffer)); | ||||
| 					m_buffer = m_old_buffer; | ||||
| 					MUST(m_buffer.push_back(""_sv)); | ||||
| 					MUST(m_buffer.push_back(""sv)); | ||||
| 					m_cursor_pos.line = m_buffer.size() - 1; | ||||
| 				} | ||||
| 				m_cursor_pos.col = 0; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue