qmic/tests
Alex Elder 83931b750f parser: introduce qmi_package_parse()
Rename parse_package() to be qmi_package_parse(), and have it assign
the qmi_package pointer internally rather returning it.  This makes
the function name match the pattern used for all other production
rules.

The one caller of qmi_package_parse() assumes the package name has
been specified.  When parsing has completed, check to ensure the
package is specified, and only allow it to be specified once.

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-26-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2021-10-04 12:32:25 -05:00
..
bad_decimal.qmi parser: be more restrictive when parsing numbers 2021-10-04 12:32:01 -05:00
bad_hex.qmi parser: be more restrictive when parsing numbers 2021-10-04 12:32:01 -05:00
bad_octal.qmi parser: be more restrictive when parsing numbers 2021-10-04 12:32:01 -05:00
bad_X.qmi parser: be more restrictive when parsing numbers 2021-10-04 12:32:01 -05:00
comments.qmi parser: add support for comments 2021-10-04 12:28:05 -05:00
fixed.qmi parser: reset fixed flag each for each array 2021-10-04 12:28:56 -05:00
hexdigits.qmi parser: properly support hexadecimal numbers 2021-10-04 12:30:21 -05:00
no_package.qmi parser: introduce qmi_package_parse() 2021-10-04 12:32:25 -05:00
num_large.qmi parser: properly support 64-bit numbers 2021-10-04 12:29:38 -05:00
num_too_big.qmi parser: properly support 64-bit numbers 2021-10-04 12:29:38 -05:00
two_packages.qmi parser: introduce qmi_package_parse() 2021-10-04 12:32:25 -05:00