diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-16 14:32:15 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-16 14:32:15 -0800 |
commit | c0d6cdd45edfcef257bc70776167b51c0f8b53d2 (patch) | |
tree | 9e957fd4960c86f7342a6a2214b86b2eab77fc74 /tokenize.c | |
parent | [PATCH] skip already evaluated symbols (diff) | |
download | sparse-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |