Alex Elder 624dcc7cc6 parser: refactor token_accept()
Invert the test at the top of token_accept(), to return immediatly
if the next token doesn't match the requested token id.

Change the type of the function to Boolean, and add a comment to
explain why we're freeing the token string (if present).

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-33-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-04 14:18:49 -05:00
2021-10-04 12:35:07 -05:00
2016-06-02 10:27:42 -07:00
2016-06-02 10:26:43 -07:00
2018-01-30 15:55:49 -08:00
2021-10-04 14:18:49 -05:00
2016-02-07 09:27:50 -08:00
2021-10-04 12:29:38 -05:00
2021-10-04 12:29:38 -05:00
Description
No description provided
BSD-3-Clause 96 KiB
Languages
C 99.4%
Makefile 0.6%