summaryrefslogtreecommitdiff
path: root/gcc/line-map.h
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-30 06:43:33 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-30 06:43:33 +0000
commit748b50a38a7326a0c9a85c30524a01bdb0cb99cf (patch)
tree05c6ec2250febb5e831a84ba041cdadb3cc76e9d /gcc/line-map.h
parent8bcdc7f091ccdb092c26987a17a9c59b83c1a1b4 (diff)
downloadgcc-748b50a38a7326a0c9a85c30524a01bdb0cb99cf.tar.gz
* cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
* line-map.h (linemap_add): Update comments. * line-map.c (linemap_add): Update comments, interpret zero-length filename as "<stdin>". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/line-map.h')
-rw-r--r--gcc/line-map.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/line-map.h b/gcc/line-map.h
index 1176743eede..dcb6f7dca48 100644
--- a/gcc/line-map.h
+++ b/gcc/line-map.h
@@ -74,8 +74,11 @@ extern void linemap_init (struct line_maps *);
extern void linemap_free (struct line_maps *);
/* Add a mapping of logical source line to physical source file and
- line number. The text pointed to by TO_FILE must have a lifetime
- at least as long as the line maps. If reason is LC_LEAVE, and
+ line number.
+
+ The text pointed to by TO_FILE must have a lifetime
+ at least as long as the final call to lookup_line (). An empty
+ TO_FILE means standard input. If reason is LC_LEAVE, and
TO_FILE is NULL, then TO_FILE, TO_LINE and SYSP are given their
natural values considering the file we are returning to.