aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-11-16 14:32:15 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-16 14:32:15 -0800
commitc0d6cdd45edfcef257bc70776167b51c0f8b53d2 (patch)
tree9e957fd4960c86f7342a6a2214b86b2eab77fc74 /tokenize.c
parent[PATCH] skip already evaluated symbols (diff)
downloadsparse-c0d6cdd45edfcef257bc70776167b51c0f8b53d2.tar.gz
sparse-c0d6cdd45edfcef257bc70776167b51c0f8b53d2.tar.bz2
sparse-c0d6cdd45edfcef257bc70776167b51c0f8b53d2.zip
Re-name "error()" function to "sparse_error()"
Mitesh Shah (and others) report that broken libc's will have their own "error()" that the sparse naming clashes with. So use a sed-script to rewrite all the occurrences. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'tokenize.c')
-rw-r--r--tokenize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokenize.c b/tokenize.c
index 78ba4e3..497da13 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -410,7 +410,7 @@ static int get_one_number(int c, int next, stream_t *stream)
}
if (p == buffer_end) {
- error(stream_pos(stream), "number token exceeds %td characters",
+ sparse_error(stream_pos(stream), "number token exceeds %td characters",
buffer_end - buffer);
// Pretend we saw just "1".
buffer[0] = '1';
@@ -522,7 +522,7 @@ static int get_char_token(int next, stream_t *stream)
next = escapechar(next, '\'', stream, &value);
if (value == '\'' || next != '\'') {
- error(stream_pos(stream), "Bad character constant");
+ sparse_error(stream_pos(stream), "Bad character constant");
drop_token(stream);
return next;
}