mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
AK: Accept any number of l's as printf format qualifiers.
This isn't entirely correct and will catch a bunch of things it's not supposed to, but it works for now.
This commit is contained in:
parent
e421c10735
commit
711e2b2651
1 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,7 @@ template<typename PutChFunc>
|
||||||
bool leftPad = false;
|
bool leftPad = false;
|
||||||
bool zeroPad = false;
|
bool zeroPad = false;
|
||||||
unsigned fieldWidth = 0;
|
unsigned fieldWidth = 0;
|
||||||
|
unsigned long_qualifiers = 0;
|
||||||
if (*p == '%' && *(p + 1)) {
|
if (*p == '%' && *(p + 1)) {
|
||||||
one_more:
|
one_more:
|
||||||
++p;
|
++p;
|
||||||
|
@ -169,6 +170,10 @@ one_more:
|
||||||
if (*(p + 1))
|
if (*(p + 1))
|
||||||
goto one_more;
|
goto one_more;
|
||||||
}
|
}
|
||||||
|
if (*p == 'l') {
|
||||||
|
++long_qualifiers;
|
||||||
|
goto one_more;
|
||||||
|
}
|
||||||
switch( *p )
|
switch( *p )
|
||||||
{
|
{
|
||||||
case 's':
|
case 's':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue