mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Drop useless code for proc. instruction scanning
This commit is contained in:
parent
e8ff8bd5f0
commit
4e10bcf772
@ -399,16 +399,13 @@ static inline void
|
|||||||
scan_sgml_proc_inst_token(struct dom_scanner *scanner, struct dom_scanner_token *token)
|
scan_sgml_proc_inst_token(struct dom_scanner *scanner, struct dom_scanner_token *token)
|
||||||
{
|
{
|
||||||
unsigned char *string = scanner->position;
|
unsigned char *string = scanner->position;
|
||||||
size_t size;
|
|
||||||
|
|
||||||
token->string.string = string;
|
token->string.string = string;
|
||||||
|
|
||||||
/* Figure out where the processing instruction ends. This doesn't use
|
/* Figure out where the processing instruction ends. This doesn't use
|
||||||
* skip_sgml() since we MUST ignore precedence here to allow '<' inside
|
* skip_sgml() since we MUST ignore precedence here to allow '<' inside
|
||||||
* the data part to be skipped correctly. */
|
* the data part to be skipped correctly. */
|
||||||
for (size = scanner->end - string;
|
for ( ; (string = skip_sgml_chars(scanner, string, '>')); string++) {
|
||||||
size > 0 && (string = skip_sgml_chars(scanner, string, '>'));
|
|
||||||
string++) {
|
|
||||||
if (string[-1] == '?') {
|
if (string[-1] == '?') {
|
||||||
string++;
|
string++;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user