mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: cpp co-existence: add support for #line directives
Line control directives of the following formats are supported: #line LINE "FILE" # LINE "FILE" [FLAGS] This allows dtc to consume the output of pre-processors, and to provide error messages that refer to the original filename, including taking into account any #include directives that the pre-processor may have performed. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
1ff3d3f8de
commit
1b6d1941dc
5 changed files with 42 additions and 0 deletions
2
srcpos.h
2
srcpos.h
|
@ -113,4 +113,6 @@ extern void srcpos_error(struct srcpos *pos, char const *, ...)
|
|||
extern void srcpos_warn(struct srcpos *pos, char const *, ...)
|
||||
__attribute__((format(printf, 2, 3)));
|
||||
|
||||
extern void srcpos_set_line(char *f, int l);
|
||||
|
||||
#endif /* _SRCPOS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue