comparison libcpp/symtab.c @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents a06113de4d67
children 04ced10e8804
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
161 HT_LEN (node) = (unsigned int) len; 161 HT_LEN (node) = (unsigned int) len;
162 node->hash_value = hash; 162 node->hash_value = hash;
163 163
164 if (table->alloc_subobject) 164 if (table->alloc_subobject)
165 { 165 {
166 char *chars = table->alloc_subobject (len + 1); 166 char *chars = (char *) table->alloc_subobject (len + 1);
167 memcpy (chars, str, len); 167 memcpy (chars, str, len);
168 chars[len] = '\0'; 168 chars[len] = '\0';
169 HT_STR (node) = (const unsigned char *) chars; 169 HT_STR (node) = (const unsigned char *) chars;
170 } 170 }
171 else 171 else