mirror of
https://github.com/linux-msm/qmic.git
synced 2024-11-23 09:44:06 +08:00
69f032f380
Add the ability for input files to have comments in them. A comment begins with a '#' character and continues through the end of the line. Signed-off-by: Alex Elder <elder@linaro.org> Message-Id: <20211001232338.769309-21-elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
29 lines
516 B
Plaintext
29 lines
516 B
Plaintext
# This is a comment at the beginning of the file
|
|
#
|
|
#############
|
|
package test;
|
|
#############
|
|
|
|
const TEST_REQUEST_RESPONSE = 35; # Skip me!!! # Skip me!!!
|
|
|
|
struct qmi_result {
|
|
u16 result;
|
|
# No limit on
|
|
u16# where comments
|
|
# can go
|
|
error;
|
|
};
|
|
|
|
request test_request {
|
|
required u8 test_number = 0x12;
|
|
} = 0x23; # Skip me!!! # Skip me!!!
|
|
|
|
response test_response {
|
|
required qmi_result r = 2;
|
|
} = 043;
|
|
|
|
indication test_indication {
|
|
optional u64 value = 0x99;
|
|
} = 0x7;
|
|
######## End the file with a comment
|