remove 'typedef char* String', 'STRINGequal' macro
This commit is contained in:
parent
1481950409
commit
7a6ba24f81
3 changed files with 3 additions and 10 deletions
|
|
@ -152,11 +152,6 @@ typedef int ( *intFuncptr )();
|
|||
#define _POSIX_SOURCE
|
||||
#endif
|
||||
|
||||
/* backward compatibility */
|
||||
typedef char * String;
|
||||
#define STRINGequal(x,y) (0 == strcmp((x),(y)))
|
||||
|
||||
|
||||
#endif /* */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -521,13 +521,11 @@ ENTITYget_attribute_offset( Entity entity, Variable attribute ) {
|
|||
** Notes: If the entity has no attribute with the given name,
|
||||
** -1 is returned.
|
||||
*/
|
||||
|
||||
int
|
||||
ENTITYget_named_attribute_offset( Entity entity, String name ) {
|
||||
int ENTITYget_named_attribute_offset( Entity entity, char * name ) {
|
||||
int offset, value;
|
||||
|
||||
LISTdo( entity->u.entity->attributes, attr, Variable )
|
||||
if( STRINGequal( VARget_simple_name( attr ), name ) )
|
||||
if( streq( VARget_simple_name( attr ), name ) )
|
||||
return entity->u.entity->inheritance +
|
||||
/* VARget_offset(SCOPElookup(entity, name, False));*/
|
||||
VARget_offset( ENTITY_find_inherited_attribute( entity, name, 0, 0 ) );
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ char * generate_dict_attr_name( Variable a, char * out ) {
|
|||
** Side Effects:
|
||||
** Status: new 1/24/91
|
||||
******************************************************************/
|
||||
String TYPEget_express_type( const Type t ) {
|
||||
char * TYPEget_express_type( const Type t ) {
|
||||
Class_Of_Type class;
|
||||
Type bt;
|
||||
char retval [BUFSIZ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue