Linus Groh
024fd9b957
LibWeb: Fix HTML injection on FrameLoader error page
...
Small regression introduced by 3857148
, we still have to escape HTML
entities.
2021-04-22 10:17:00 +02:00
Linus Groh
696f23d7a0
Meta: Add basic Zsh completions for serenity.sh
...
This patch adds a basic Zsh completion script for the commands and
targets provided by Meta/serenity.sh. There's some room for improvement
here, e.g. we could provide completion for available CMake targets -
currently completion stops after serenity.sh <command> <target>.
You can enable it by adding this to your .zshrc before completions are
loaded:
fpath=($SERENITY_SOURCE_DIR/Meta/ShellCompletions/zsh $fpath)
2021-04-22 09:55:48 +02:00
Andreas Kling
a5625686cb
WidgetGallery: Fix bogus return type from FileIconsModel::create()
2021-04-22 09:35:15 +02:00
Andreas Kling
de7062af9c
LibRegex: Unbreak the ALL_DEBUG build
2021-04-22 09:23:28 +02:00
Gunnar Beutner
232e64c10a
Meta: Add GDB pretty printers
2021-04-22 00:45:43 +02:00
Ali Mohammad Pur
ba261aba72
AK: Reenable the IntrusiveList<...NonnullRefPtr, ...> tests
2021-04-22 00:20:51 +02:00
Ali Mohammad Pur
88b97f5367
AK: Make IntrusiveList work with NonnullRefPtr's
2021-04-22 00:20:51 +02:00
Andreas Kling
3857148028
LibWeb+Base: Use AK::SourceGenerator for error pages
...
Instead of storing a format string in a file, let's be reasonable
and use SourceGenerator's template functionality. :^)
2021-04-22 00:00:59 +02:00
Andreas Kling
edf0b14e23
AK: Remove String::format()
...
There are no more clients of this function, everyone has been converted
to String::formatted().
2021-04-21 23:49:03 +02:00
Andreas Kling
0005fa0e2b
LibELF: Convert String::format() => String::formatted()
2021-04-21 23:49:03 +02:00
Andreas Kling
7254d4c4b8
LibCoreDump: Convert String::format() => String::formatted()
2021-04-21 23:49:03 +02:00
Andreas Kling
f4a15c8d42
LibCore: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
3a891abc37
FontEditor: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
9db2036437
LibGUI: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
9a8dd38493
LibWeb+Base: Convert String::format() to String::formatted()
...
This error page template is slightly hilarious and should probably
be replaced with AK::SourceGenerator or some such, but for now let's
just get rid of the call to String::format().
2021-04-21 23:49:02 +02:00
Andreas Kling
e924da6c73
TelnetServer: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
83d3003208
LibDebug: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
f4eff7df8f
Kernel: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
0058a1173e
UserspaceEmulator: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
c68dcf45b6
LibRegex: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
46209ee9d0
readelf: Remove an unnecessary String::format()
2021-04-21 23:49:02 +02:00
Andreas Kling
09cb8aded6
test-web: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
931f3c03d0
useradd: Convert String::format() => String::formatted()
...
Also make more use of warnln().
2021-04-21 23:49:02 +02:00
Andreas Kling
90ee84621f
LibLine: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
4e6d2374b6
LibVT: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
01f6d6c9fa
gron: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
3df0ecead8
lspci: Convert String::format() => String::formatted()
2021-04-21 23:49:02 +02:00
Andreas Kling
7747bfe5c0
HackStudio: Convert String::format() => String::formatted()
2021-04-21 23:49:01 +02:00
Andreas Kling
2a6a54dea5
Userland: Use Core::DirIterator::next_full_path()
...
Simplify some code by using this instead of concatenating the full path
ourselves at the call site.
2021-04-21 23:49:01 +02:00
Andreas Kling
b41b6dd279
Shell: Convert String::format() => String::formatted()
2021-04-21 23:49:01 +02:00
Andreas Kling
f8dfc74f8b
AK: Decorate most of ByteBuffer with [[nodiscard]]
2021-04-21 23:49:01 +02:00
Andreas Kling
b0ccb5ba9d
AK: Decorate most of String's API's with [[nodiscard]]
2021-04-21 23:49:01 +02:00
Andreas Kling
dba58ad9ec
LibX86: Convert String::format() => String::formatted()
2021-04-21 23:49:01 +02:00
Andreas Kling
e875d4e044
LibGfx: Convert String::format() => String::formatted()
2021-04-21 23:49:01 +02:00
Andreas Kling
d996e43df6
LibGfx: Minor clean-ups in Gfx::FontDatabase
...
Use Core::DirIterator::next_full_path() instead of manually building
each path.
Also convert a fprintf(stderr, ...) to warnln()
2021-04-21 23:49:01 +02:00
Andreas Kling
d342e9608c
WindowServer: Add missing <AK/Debug.h> include and use dbgln_if()
2021-04-21 23:49:01 +02:00
Andreas Kling
2e6de99f1e
ImageDecoder: Add missing <AK/Debug.h> include and use dbgln_if()
2021-04-21 23:49:01 +02:00
Andreas Kling
e5318d51e6
LibCore: Remove the barely-used Core::safe_syscall()
...
This was a helper that would call a syscall repeatedly until it either
succeeded or failed with a non-EINTR error.
It was only used in two places, so I don't think we need this helper.
2021-04-21 23:49:01 +02:00
Rafał
c41c41cc0f
LibGUI: Prevent selecting empty line in TextEditor on double click ( #6537 )
2021-04-21 23:48:26 +02:00
Gunnar Beutner
4115fcc933
Ports: Build ports only once when running build_all.sh
...
Previously we'd end up building some ports multiple times, e.g.
as a dependency for another port. This changes the build_all.sh
script so that it builds ports only once.
2021-04-21 23:41:48 +02:00
Gunnar Beutner
8a95408673
Ports: Rename dirname to port to clarify its meaning
2021-04-21 23:41:48 +02:00
Gunnar Beutner
e9604f1bd6
Ports: Add missing dependency for libgcrypt
2021-04-21 23:41:48 +02:00
Linus Groh
b06f68c3d2
Ports: Fix Python _crypt module linkage error
...
we need to link against LibCrypt and subsubsequently LibCore (which
LibCrypt does not link against itself due to a circular dependency
issue).
Not sure why this broke, it worked when I last updated the port.
2021-04-21 23:35:35 +02:00
Lenny Maiorani
e117756d9f
AK/Format: Compute TypeErasedParameter type and size at compile-time
...
Problem:
- Type and size information is known at compile-time, but computations
are being performed using run-time parameters.
Solution:
- Move function arguments to be template arguments.
- Convert to `consteval` where possible.
- Decorate functions with `constexpr` which are used in both run-time
and compile-time contexts.
2021-04-21 23:26:16 +02:00
Timothy Flynn
6cbf88ad4c
LibSQL: Rename TestSqlParser -> TestSqlStatementParser
...
A little bit clearer what is being tested now, since the expression
parser also lives in its own file.
2021-04-21 21:37:55 +02:00
Timothy Flynn
733806b6a1
LibSQL: Parse DELETE statement
2021-04-21 21:37:55 +02:00
Timothy Flynn
ce6c7ae18a
LibSQL: Parse most language expressions
...
https://sqlite.org/lang_expr.html
The entry point to using expressions, parse_expression(), is not used
by SQL::Parser in this commit. But there's so much here that it's easier
to grok as its own commit.
2021-04-21 21:37:55 +02:00
Timothy Flynn
8c8d611fb3
LibSQL: Add forwarding header
...
SQL AST nodes will need to have other node types forward declared before
using them.
2021-04-21 21:37:55 +02:00
Timothy Flynn
a11f49f627
LibSQL: Add Parser::consume_if helper
...
The following is a common (and soon to be *very* common) expression:
if (match(token_type))
consume();
Using consume_if() makes this a bit simpler and makes it less likely to
forget to invoke consume() after the match().
2021-04-21 21:37:55 +02:00
Timothy Flynn
912c9c93e9
Userland: Syntax highlighting of SQL strings and blobs
2021-04-21 21:37:55 +02:00