google / gumbo-parser

An HTML5 parsing library in pure C99
Apache License 2.0
5.16k stars 660 forks source link

Dead code #406

Closed QiAnXinCodeSafe closed 1 year ago

QiAnXinCodeSafe commented 6 years ago

src/tokenizer.c in line 1124

static StateResult handle_rcdata_end_tag_open_state(GumboParser parser, GumboTokenizerState tokenizer, int c, GumboToken* output) { assert(temporary_buffer_equals(parser, "</")); if (is_alpha(c)) { gumbo_tokenizer_set_state(parser, GUMBO_LEX_RCDATA_END_TAG_NAME); start_new_tag(parser, false); append_char_to_temporary_buffer(parser, c); return NEXT_CHAR; } else { gumbo_tokenizer_set_state(parser, GUMBO_LEX_RCDATA); return emit_temporary_buffer(parser, output); } return true; //Dead code }