summaryrefslogtreecommitdiff
path: root/init/tokenizer.cpp
AgeCommit message (Collapse)Author
2018-09-19init: annotate intended fallthroughTom Cherry
Bug: 116020901 Test: treehugger Change-Id: I5f4a5ebf09572501f564dce506ee0978354fde67
2018-06-26init: fix the parse error when meeting escape charactersliwugang
After dealing with some specical escape characters('\n','\r','\t','\\',"\r\n") it doesn't goto the next position in the next loop, so it process the current character twice. For example, when parsing the string "test\ntoken" we expect the "test'\n'token" but actually we got the "test'\n'ntoken" Test: have espace characters in init .rc files Change-Id: I015c087a5c6e5ee9c490f29a83b15b89443f7f81 Signed-off-by: liwugang <liwugang@xiaomi.com>
2017-07-27init: remove Parser singleton and related cleanupTom Cherry
* Remove the Parser singleton (Hooray!) * Rename parser.* to tokenizer.* as this is actually a tokenizer * Rename init_parser.* to parser.* as this is a generic parser * Move contents of init_parser_test.cpp to service_test.cpp as this actually is a test of the parsing in MakeExecOneshotService() and nothing related to (init_)parser.cpp Test: boot bullhead Test: bool sailfish Test: init unit tests Change-Id: I4fe39e6483f58ebd3ce5ee715a45dbba0acf5d91