aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/compile.c
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-09 11:55:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:46 -0700
commitb4dcd7de02472d98ce22dd334b0a1bd5aa86717c (patch)
tree0135570cb2398e9ae8d6bbc069d891e50e55d5b2 /compile.c
parentfd46a87b9e1d032863c41f54009e5e6386862f8b (diff)
downloadsparse-dev-b4dcd7de02472d98ce22dd334b0a1bd5aa86717c.tar.gz
Add "stream_name()" helper function, and use it.
Much prettier than "input_streams[x].name", since most users really don't want to know about the internals of how the preprocessor lays out its stream tracking.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index f8fb6219..8dfe6f71 100644
--- a/compile.c
+++ b/compile.c
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
list = sparse(argc, argv);
- filename = input_streams[1].name;
+ filename = stream_name(1);
basename = strrchr(filename, '/');
if (basename)
filename = basename+1;