mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -53,14 +53,14 @@ static bool pre_interpret_hook(Wasm::Configuration& config, Wasm::InstructionPoi
|
|||
if (always_print_stack)
|
||||
config.dump_stack();
|
||||
if (always_print_instruction) {
|
||||
g_stdout.write(String::formatted("{:0>4} ", ip.value()).bytes());
|
||||
g_stdout.write(DeprecatedString::formatted("{:0>4} ", ip.value()).bytes());
|
||||
g_printer.print(instr);
|
||||
}
|
||||
if (g_continue)
|
||||
return true;
|
||||
g_stdout.write(String::formatted("{:0>4} ", ip.value()).bytes());
|
||||
g_stdout.write(DeprecatedString::formatted("{:0>4} ", ip.value()).bytes());
|
||||
g_printer.print(instr);
|
||||
String last_command = "";
|
||||
DeprecatedString last_command = "";
|
||||
for (;;) {
|
||||
auto result = g_line_editor->get_line("> ");
|
||||
if (result.is_error()) {
|
||||
|
@ -276,9 +276,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
bool debug = false;
|
||||
bool export_all_imports = false;
|
||||
bool shell_mode = false;
|
||||
String exported_function_to_execute;
|
||||
DeprecatedString exported_function_to_execute;
|
||||
Vector<u64> values_to_push;
|
||||
Vector<String> modules_to_link_in;
|
||||
Vector<DeprecatedString> modules_to_link_in;
|
||||
|
||||
Core::ArgsParser parser;
|
||||
parser.add_positional_argument(filename, "File name to parse", "file");
|
||||
|
@ -450,9 +450,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto stream = Core::OutputFileStream::standard_output();
|
||||
auto print_func = [&](auto const& address) {
|
||||
Wasm::FunctionInstance* fn = machine.store().get(address);
|
||||
stream.write(String::formatted("- Function with address {}, ptr = {}\n", address.value(), fn).bytes());
|
||||
stream.write(DeprecatedString::formatted("- Function with address {}, ptr = {}\n", address.value(), fn).bytes());
|
||||
if (fn) {
|
||||
stream.write(String::formatted(" wasm function? {}\n", fn->has<Wasm::WasmFunction>()).bytes());
|
||||
stream.write(DeprecatedString::formatted(" wasm function? {}\n", fn->has<Wasm::WasmFunction>()).bytes());
|
||||
fn->visit(
|
||||
[&](Wasm::WasmFunction const& func) {
|
||||
Wasm::Printer printer { stream, 3 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue