+/* options is inlined with inline.c */
+
+#if defined(_INLINE_C_) && !defined(_OPTIONS_C_) && (OPTIONS_INLINE & INCLUDE_MODULE)
+# if (OPTIONS_INLINE & INLINE_MODULE)
+# define INLINE_OPTIONS(TYPE) static INLINE TYPE UNUSED
+# define EXTERN_OPTIONS(TYPE) static TYPE UNUSED
+#else
+# define INLINE_OPTIONS(TYPE) static TYPE UNUSED
+# define EXTERN_OPTIONS(TYPE) static TYPE UNUSED
+#endif
+#else
+# define INLINE_OPTIONS(TYPE) TYPE
+# define EXTERN_OPTIONS(TYPE) TYPE
+#endif
+
+#if (OPTIONS_INLINE & PSIM_INLINE_LOCALS)
+# define STATIC_INLINE_OPTIONS(TYPE) static INLINE TYPE
+#else
+# define STATIC_INLINE_OPTIONS(TYPE) static TYPE
+#endif
+
+
+/* os_emul is inlined with inline.c */
+
+#if defined(_INLINE_C_) && !defined(_OS_EMUL_C_) && (OS_EMUL_INLINE & INCLUDE_MODULE)
+# if (OS_EMUL_INLINE & INLINE_MODULE)
+# define INLINE_OS_EMUL(TYPE) static INLINE TYPE UNUSED
+# define EXTERN_OS_EMUL(TYPE) static TYPE UNUSED
+#else
+# define INLINE_OS_EMUL(TYPE) static TYPE UNUSED
+# define EXTERN_OS_EMUL(TYPE) static TYPE UNUSED
+#endif
+#else
+# define INLINE_OS_EMUL(TYPE) TYPE
+# define EXTERN_OS_EMUL(TYPE) TYPE
+#endif
+
+#if (OS_EMUL_INLINE & PSIM_INLINE_LOCALS)
+# define STATIC_INLINE_OS_EMUL(TYPE) static INLINE TYPE
+#else
+# define STATIC_INLINE_OS_EMUL(TYPE) static TYPE
+#endif
+
+
+/* psim is actually not inlined */
+
+#if defined(_INLINE_C_) && !defined(_PSIM_C_) && (PSIM_INLINE & INCLUDE_MODULE)
+# if (PSIM_INLINE & INLINE_MODULE)
+# define INLINE_PSIM(TYPE) static INLINE TYPE UNUSED
+# define EXTERN_PSIM(TYPE) static TYPE UNUSED
+#else
+# define INLINE_PSIM(TYPE) static TYPE UNUSED
+# define EXTERN_PSIM(TYPE) static TYPE UNUSED
+#endif
+#else
+# define INLINE_PSIM(TYPE) TYPE
+# define EXTERN_PSIM(TYPE) TYPE
+#endif
+
+#if (PSIM_INLINE & PSIM_INLINE_LOCALS)
+# define STATIC_INLINE_PSIM(TYPE) static INLINE TYPE
+#else
+# define STATIC_INLINE_PSIM(TYPE) static TYPE
+#endif
+
+
+/* cap is inlined with inline.c */
+
+#if defined(_INLINE_C_) && !defined(_CAP_C_) && (CAP_INLINE & INCLUDE_MODULE)
+# if (CAP_INLINE & INLINE_MODULE)
+# define INLINE_CAP(TYPE) static INLINE TYPE UNUSED
+# define EXTERN_CAP(TYPE) static TYPE UNUSED
+#else
+# define INLINE_CAP(TYPE) static TYPE UNUSED
+# define EXTERN_CAP(TYPE) static TYPE UNUSED
+#endif
+#else
+# define INLINE_CAP(TYPE) TYPE
+# define EXTERN_CAP(TYPE) TYPE
+#endif
+
+#if (CAP_INLINE & PSIM_INLINE_LOCALS)
+# define STATIC_INLINE_CAP(TYPE) static INLINE TYPE
+#else
+# define STATIC_INLINE_CAP(TYPE) static TYPE
+#endif
+