Hi Henrik,
Il 14.56 15/12/2002 Henrik Nordstrom ha scritto:
>And the real problem is what should be addressed there.
>
>......
>Unless someone has an objection like compiler issues with the method
>of inline etc I'll commit this to HEAD in a few days.
No problem here, but I suggest only a minor change because Microsoft C
Compiler uses __inline instead of inline, on C++ inline is OK.
config.h:
+#if defined(_MSC_VER) && !defined(__cplusplus) /* Microsoft C Compiler
use __inline */
+#define SQUID_INLINE __inline
+#else
+#define SQUID_INLINE inline
+#endif
util.h:
+#ifndef SQUID_UTIL_C
+#define SQUID_UTIL_INLINE SQUIDCEXTERN SQUID_INLINE
+#else
+#define SQUID_UTIL_INLINE SQUID_INLINE
+#endif
This is useful for profiling code too.
Regards
Guido
-
=======================================================
Serassio Guido
Via Albenga, 11/4 10134 - Torino - ITALY
E-mail: guido.serassio@serassio.it
WWW: http://www.serassio.it
Received on Sun Dec 15 2002 - 07:40:34 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:01 MST