mirror of
https://github.com/linux-msm/qmic.git
synced 2024-11-23 09:44:06 +08:00
QMI IDL compiler
32c0632957
Create a new macro that allocates and zeroes a block of memory, which guarantees that the allocation will succeed. Use this in two spots where calloc() is already assumed not to fail, and use it in other places where memory is dynamically allocated. If the malloc() call in the macro fails, memalloc() will call errx() to print an error message to stderr and exit with status 1. In addition, check for a null pointer returned by strdup() in yylex(), and report a similar error if that occurs. Signed-off-by: Alex Elder <elder@linaro.org> Message-Id: <20211001232338.769309-17-elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> |
||
---|---|---|
.gitignore | ||
accessor.c | ||
kernel.c | ||
LICENSE | ||
list.h | ||
Makefile | ||
parser.c | ||
qmi_tlv.c | ||
qmic.c | ||
qmic.h |