(STRVAL): Make it a macro instead of an inline function to avoid

warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2037 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-09 21:49:58 +00:00
parent 55bfffc819
commit ea4ac8b515

View file

@ -1,5 +1,5 @@
/* Interface for Objective C NeXT-compatible NXStringTable object
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1997 Free Software Foundation, Inc.
Written by: Adam Fedor <adam@bastille.rmnug.org>
@ -46,8 +46,12 @@
@end
#if 0
static inline const char *STRVAL(NXStringTable *table, const char *key) {
return [table valueForStringKey:key];
}
#else
#define STRVAL(TABLE,KEY) ([TABLE valueForStringKey: KEY])
#endif
#endif /* __NXStringTable_h_INCLUDE_GNU */