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 /symbol.c | |
parent | 617f2d7fd96b2d8c7c4ffa1aa5dbf09abda9d641 (diff) | |
download | sparse-c0d6cdd45edfcef257bc70776167b51c0f8b53d2.tar.gz |
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 'symbol.c')
-rw-r--r-- | symbol.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -394,16 +394,16 @@ struct symbol *examine_symbol_type(struct symbol * sym) break; } case SYM_PREPROCESSOR: - error(sym->pos, "ctype on preprocessor command? (%s)", show_ident(sym->ident)); + sparse_error(sym->pos, "ctype on preprocessor command? (%s)", show_ident(sym->ident)); return NULL; case SYM_UNINITIALIZED: - error(sym->pos, "ctype on uninitialized symbol %p", sym); + sparse_error(sym->pos, "ctype on uninitialized symbol %p", sym); return NULL; case SYM_RESTRICT: examine_base_type(sym); return sym; default: - error(sym->pos, "Examining unknown symbol type %d", sym->type); + sparse_error(sym->pos, "Examining unknown symbol type %d", sym->type); break; } return sym; @@ -441,11 +441,11 @@ void bind_symbol(struct symbol *sym, struct ident *ident, enum namespace ns) { struct scope *scope; if (sym->id_list) { - error(sym->pos, "internal error: symbol type already bound"); + sparse_error(sym->pos, "internal error: symbol type already bound"); return; } if (ident->reserved && (ns & (NS_TYPEDEF | NS_STRUCT | NS_LABEL | NS_SYMBOL))) { - error(sym->pos, "Trying to use reserved word '%s' as identifier", show_ident(ident)); + sparse_error(sym->pos, "Trying to use reserved word '%s' as identifier", show_ident(ident)); return; } sym->namespace = ns; |