@@ -146,7 +146,7 @@ static Entity ENTITY_find_inherited_entity( Entity entity, char * name, int down
146146 entity -> search_id = __SCOPE_search_id ;
147147
148148 LISTdo ( entity -> u .entity -> supertypes , super , Entity )
149- if ( streq ( super -> symbol .name , name ) ) {
149+ if ( ! strcmp ( super -> symbol .name , name ) ) {
150150 return super ;
151151 }
152152 LISTod
@@ -160,7 +160,7 @@ static Entity ENTITY_find_inherited_entity( Entity entity, char * name, int down
160160
161161 if ( down ) {
162162 LISTdo ( entity -> u .entity -> subtypes , sub , Entity )
163- if ( streq ( sub -> symbol .name , name ) ) {
163+ if ( ! strcmp ( sub -> symbol .name , name ) ) {
164164 return sub ;
165165 }
166166 LISTod ;
@@ -177,7 +177,7 @@ static Entity ENTITY_find_inherited_entity( Entity entity, char * name, int down
177177}
178178
179179struct Scope_ * ENTITYfind_inherited_entity ( struct Scope_ * entity , char * name , int down ) {
180- if ( streq ( name , entity -> symbol .name ) ) {
180+ if ( ! strcmp ( name , entity -> symbol .name ) ) {
181181 return ( entity );
182182 }
183183
@@ -437,7 +437,7 @@ Variable ENTITYget_named_attribute( Entity entity, char * name ) {
437437 Variable attribute ;
438438
439439 LISTdo ( entity -> u .entity -> attributes , attr , Variable )
440- if ( streq ( VARget_simple_name ( attr ), name ) ) {
440+ if ( ! strcmp ( VARget_simple_name ( attr ), name ) ) {
441441 return attr ;
442442 }
443443 LISTod ;
@@ -495,7 +495,7 @@ int ENTITYget_named_attribute_offset( Entity entity, char * name ) {
495495 int value ;
496496
497497 LISTdo ( entity -> u .entity -> attributes , attr , Variable )
498- if ( streq ( VARget_simple_name ( attr ), name ) )
498+ if ( ! strcmp ( VARget_simple_name ( attr ), name ) )
499499 return entity -> u .entity -> inheritance +
500500 VARget_offset ( ENTITY_find_inherited_attribute ( entity , name , 0 , 0 ) );
501501 LISTod ;
0 commit comments