summaryrefslogtreecommitdiffhomepage
path: root/ir/ident
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-02-05 23:28:10 +0100
committerMatthias Braun <matze@braunis.de>2010-02-05 23:28:10 +0100
commit9892d7b1232ce0a8129228bd088fef4ac0121dc2 (patch)
tree01df9ec709ad5d08bbf0c219835d3e018bc20182 /ir/ident
parentd435972c84230e2c9b1730d094587b21b68b414d (diff)
constructors/destructors must not have a name
[r27077]
Diffstat (limited to 'ir/ident')
-rw-r--r--ir/ident/ident.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/ident/ident.c b/ir/ident/ident.c
index 38e37a4..f129eb5 100644
--- a/ir/ident/ident.c
+++ b/ir/ident/ident.c
@@ -60,8 +60,6 @@ static ident *set_new_id_from_chars(void *handle, const char *str, int len)
{
set *id_set = handle;
- /* GL: Who added this assert? And why? */
- //assert(len > 0);
return (ident *)set_hinsert0(id_set, str, len, ID_HASH(unsigned char, str, len));
}
@@ -160,13 +158,12 @@ void init_ident(ident_if_t *id_if, int initial_n_idents)
ident *new_id_from_str(const char *str)
{
- assert(str);
+ assert(str != NULL);
return impl.new_id_from_str(impl.handle, str);
}
ident *new_id_from_chars(const char *str, int len)
{
- assert(len > 0);
return impl.new_id_from_chars(impl.handle, str, len);
}