mirror of
https://github.com/linux-msm/qmic.git
synced 2026-02-25 13:11:34 -08:00
c172d15f2b38916d2abe4443bdca81f3b7266b1c
Refine the definition of the symbol structure with an anonymous union to make it a little clearer whether a token describes a message or a type. In symbol_add(), be more explicit about the type of additional arguments expected to be seen. Add a name to the enumerated type representing the defined "type" type values (U8, STRUCT, etc.). And change the type of the type field in the symbol structure to have that enumerated type. Specifically, if the symbol being added is a message, the argument that follows should be one of the message types (request, response, or indication). And if the symbol being added is a type, the next argument is expected to be one of the "type" types. This makes it a little easier to understand what the code is doing. Signed-off-by: Alex Elder <elder@linaro.org> Message-Id: <20211001232338.769309-20-elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Description
Languages
C
99.4%
Makefile
0.6%