diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-08 15:27:54 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-06-10 15:54:40 +0200 |
commit | cfc025ce9f94a729e8fe9cc16466db288cd201da (patch) | |
tree | 88eca62421373acc0fabf66632bfdf34cb48515d /main.c | |
parent | c758a54f7dc56875eb95e410d6695e76aab6fa29 (diff) |
Print parser position on error
Most parser functions take a **endp argument to indicate the caller
where parsing has stopped. This is currently only used after parsing
something successfully. This patch sets **endp to the erroneous
position in the error case and prints its position after an error
has occured.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
[Remove endp NULL checks spread around the code]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions