mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
fix morkParser::ReadValue() so it will notice '$' when reading values,
This commit is contained in:
parent
2ec4376228
commit
7f60bdbf15
@ -828,6 +828,22 @@ morkBuf* morkParser::ReadValue(morkEnv* ev)
|
||||
if ( (c = s->Getc(ev)) == EOF || ev->Bad() )
|
||||
break; // end while loop
|
||||
}
|
||||
else if ( c == '$' ) // "$" escapes next two hex digits?
|
||||
{
|
||||
if ( (c = s->Getc(ev)) != EOF && ev->Good() )
|
||||
{
|
||||
mork_ch first = (mork_ch) c; // first hex digit
|
||||
if ( (c = s->Getc(ev)) != EOF && ev->Good() )
|
||||
{
|
||||
mork_ch second = (mork_ch) c; // second hex digit
|
||||
c = ev->HexToByte(first, second);
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
spool->Putc(ev, c);
|
||||
}
|
||||
|
||||
|
@ -828,6 +828,22 @@ morkBuf* morkParser::ReadValue(morkEnv* ev)
|
||||
if ( (c = s->Getc(ev)) == EOF || ev->Bad() )
|
||||
break; // end while loop
|
||||
}
|
||||
else if ( c == '$' ) // "$" escapes next two hex digits?
|
||||
{
|
||||
if ( (c = s->Getc(ev)) != EOF && ev->Good() )
|
||||
{
|
||||
mork_ch first = (mork_ch) c; // first hex digit
|
||||
if ( (c = s->Getc(ev)) != EOF && ev->Good() )
|
||||
{
|
||||
mork_ch second = (mork_ch) c; // second hex digit
|
||||
c = ev->HexToByte(first, second);
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
else
|
||||
break;
|
||||
}
|
||||
spool->Putc(ev, c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user