1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 05:07:45 +00:00

AK: Rename new_out to out and new_warn to warn.

This commit is contained in:
asynts 2020-11-09 10:47:19 +01:00 committed by Andreas Kling
parent 74438e6fdc
commit 3b3edbc4d2
10 changed files with 38 additions and 41 deletions

View file

@ -47,9 +47,9 @@ Print the value of EXPRESSION to standard output.)");
template<typename... Args>
[[noreturn]] void fail(Args&&... args)
{
new_warn("ERROR: \e[31m");
warn("ERROR: \e[31m");
warnln(args...);
new_warn("\e[0m");
warn("\e[0m");
exit(1);
}

View file

@ -61,7 +61,7 @@ static void handle_sigint(int)
static void print_function_call(String function_name, size_t depth)
{
for (size_t i = 0; i < depth; ++i) {
new_out(" ");
out(" ");
}
outln("=> {}", function_name);
}

View file

@ -50,7 +50,7 @@ int main(int argc, char** argv)
for (size_t i = 0; i < NSIG; ++i) {
if (i && !(i % 5))
outln("");
new_out("{:2}) {:10}", i, getsignalname(i));
out("{:2}) {:10}", i, getsignalname(i));
}
outln("");
return 0;

View file

@ -51,11 +51,11 @@ static void print_directory_tree(const String& root_path, int depth, const Strin
} else {
root_indent_string = "";
}
new_out("{}|-- ", root_indent_string);
out("{}|-- ", root_indent_string);
}
String root_dir_name = AK::LexicalPath(root_path).basename();
new_out("\033[34;1m{}\033[0m\n", root_dir_name);
out("\033[34;1m{}\033[0m\n", root_dir_name);
if (depth >= max_depth) {
return;