inline fixes.

This commit is contained in:
Vitor Santos Costa 2012-07-02 20:03:46 +01:00
parent 51c8142cb1
commit 5fb55b2535
2 changed files with 2 additions and 7 deletions

View File

@ -2,8 +2,8 @@
#define _YAP_INLINE_ONLY_H_
#ifdef __GNUC__
//#define INLINE_ONLY __attribute__((gnu_inline,always_inline))
#define INLINE_ONLY
#define INLINE_ONLY __attribute__((gnu_inline,always_inline))
//#define INLINE_ONLY
#else
#define INLINE_ONLY
#endif

View File

@ -327,13 +327,8 @@ extern int errno;
INLINE_ONLY EXTERN inline UInt STD_PROTO(HashFunction, (unsigned char *));
INLINE_ONLY EXTERN inline UInt STD_PROTO(WideHashFunction, (wchar_t *));
<<<<<<< HEAD
EXTERN inline UInt
HashFunction(unsigned char *CHP) INLINE_ONLY
=======
INLINE_ONLY EXTERN inline UInt
HashFunction(unsigned char *CHP)
>>>>>>> 97163fa150ba570e4ba2881646363e9877a07bcb
{
/* djb2 */
UInt hash = 5381;