pike.git
/
src
/
global.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/global.h:533:
#else #define DO_IF_DEBUG_OR_CLEANUP(X) #endif #ifdef INTERNAL_PROFILING #define DO_IF_INTERNAL_PROFILING(X) X #else #define DO_IF_INTERNAL_PROFILING(X) #endif
-
#ifndef INLINE
-
#if defined(__GNUC__) && !defined(PIKE_DEBUG) && !defined(lint)
-
#define INLINE inline
-
#else
-
#define INLINE
-
#endif
-
#endif
-
+
/* Suppress compiler warnings for unused parameters if possible. The mangling of argument name is required to catch when an unused argument later is used without removing the annotation. */ #ifndef PIKE_UNUSED_ATTRIBUTE # ifdef __GNUC__ # define PIKE_UNUSED_ATTRIBUTE __attribute__((unused)) # if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # define PIKE_WARN_UNUSED_RESULT_ATTRIBUTE __attribute__((warn_unused_result)) # else /* GCC < 3.4 */ # define PIKE_WARN_UNUSED_RESULT_ATTRIBUTE
pike.git/src/global.h:613:
#endif #ifndef DO_PIKE_CLEANUP #if defined(PURIFY) || defined(__CHECKER__) || defined(DEBUG_MALLOC) #define DO_PIKE_CLEANUP #endif #endif /* Some functions/macros used to avoid loss of precision warnings. */ #ifdef __ECL
-
static
INLINE
long PTRDIFF_T_TO_LONG(ptrdiff_t x)
+
static
inline
long PTRDIFF_T_TO_LONG(ptrdiff_t x)
{ return (long)x; } #else /* !__ECL */ #define PTRDIFF_T_TO_LONG(x) ((long)(x)) #endif /* __ECL */ #ifndef HAVE_STRUCT_IOVEC #define HAVE_STRUCT_IOVEC struct iovec {