aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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-i386.c
parentRemove stat-based file identity tests. (diff)
downloadsparse-b4dcd7de02472d98ce22dd334b0a1bd5aa86717c.tar.gz
sparse-b4dcd7de02472d98ce22dd334b0a1bd5aa86717c.tar.bz2
sparse-b4dcd7de02472d98ce22dd334b0a1bd5aa86717c.zip
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-i386.c')
-rw-r--r--compile-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile-i386.c b/compile-i386.c
index 9e72a54..f740005 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -2317,7 +2317,7 @@ static struct storage *x86_expression(struct expression *expr)
if (!expr->ctype) {
struct position *pos = &expr->pos;
printf("\tno type at %s:%d:%d\n",
- input_streams[pos->stream].name,
+ stream_name(pos->stream),
pos->line, pos->pos);
return NULL;
}