aboutsummaryrefslogtreecommitdiffstats
path: root/symbol.c
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 /symbol.c
parent617f2d7fd96b2d8c7c4ffa1aa5dbf09abda9d641 (diff)
downloadsparse-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/symbol.c b/symbol.c
index cfb00e3b..67576fe7 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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;