projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed doxygen docu
[libfirm]
/
ir
/
ident
/
ident.c
diff --git
a/ir/ident/ident.c
b/ir/ident/ident.c
index
e0c97cc
..
8d4dd1d
100644
(file)
--- a/
ir/ident/ident.c
+++ b/
ir/ident/ident.c
@@
-11,7
+11,7
@@
*/
#ifdef HAVE_CONFIG_H
*/
#ifdef HAVE_CONFIG_H
-# include
<config.h>
+# include
"config.h"
#endif
#include <assert.h>
#endif
#include <assert.h>
@@
-33,6
+33,7
@@
static ident_if_t impl;
*
* @param handle the handle for the set
* @param str the string which shall be stored
*
* @param handle the handle for the set
* @param str the string which shall be stored
+ * @param len lenght of str in bytes
*
* @return id - a handle for the generated ident
*
*
* @return id - a handle for the generated ident
*
@@
-42,7
+43,8
@@
static ident *set_new_id_from_chars(void *handle, const char *str, int len)
{
set *id_set = handle;
{
set *id_set = handle;
- assert(len > 0);
+ /* GL: Who added this assert? And why? */
+ //assert(len > 0);
return (ident *)set_hinsert0(id_set, str, len, ID_HASH(str, len));
}
return (ident *)set_hinsert0(id_set, str, len, ID_HASH(str, len));
}
@@
-51,7
+53,6
@@
static ident *set_new_id_from_chars(void *handle, const char *str, int len)
*
* @param handle the handle for the set
* @param str the string (or whatever) which shall be stored
*
* @param handle the handle for the set
* @param str the string (or whatever) which shall be stored
- * @param len the length of the data in bytes
*
* Default implementation using libfirm sets.
*/
*
* Default implementation using libfirm sets.
*/