Avoid passing char* directly and use built-in function

Clean up old commented out code
This commit is contained in:
Victor Fernandes 2017-03-19 15:52:41 -04:00
parent 32464b6bc2
commit d498a87856
1 changed files with 1 additions and 8 deletions

View File

@ -210,14 +210,7 @@ Token malar_next_token(Buffer * sc_buf)
if (i < (ERR_LEN) || c != 255) if (i < (ERR_LEN) || c != 255)
b_addc(err_lex_buf, c); b_addc(err_lex_buf, c);
} }
t = aa_table[ES](err_lex_buf->cb_head); t = aa_table[ES](b_setmark(err_lex_buf, 0));
/* t.attribute.err_lex[ERR_LEN - 1] = '.';
t.attribute.err_lex[ERR_LEN - 2] = '.';
t.attribute.err_lex[ERR_LEN - 3] = '.';
if ((lexend - lexstart) < ERR_LEN)
t.attribute.err_lex[i] = '\0';
else
t.attribute.err_lex[ERR_LEN] = '\0';*/
b_free(err_lex_buf); b_free(err_lex_buf);
return t; return t;
} }