Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
extern_inline bool __bit_set_p(int number, char bit);
extern_inline char __nbits_right_of(int number, char bit);
extern_inline bool __bit_set_p(int number, char bit);
extern_inline char __nbits_right_of(int number, char bit);
-extern_inline void *cat_morphism(const void*, cat_morphism_kind_t);
-extern_inline void *const*cat_morphisms(const void*);
extern cat_morphism_t morphisms;
\f
extern cat_morphism_t morphisms;
\f
#endif
#if 1 /* using the global shit */
#endif
#if 1 /* using the global shit */
-extern_inline void*const*
+static inline void*const*
cat_morphisms(const void *obj)
{
/* returns a pointer to the array of implementations or
cat_morphisms(const void *obj)
{
/* returns a pointer to the array of implementations or
cat_morphism(const void *obj, cat_morphism_kind_t kind)
{
unsigned int flags = ((const struct lrecord_header*)obj)->morphisms;
cat_morphism(const void *obj, cat_morphism_kind_t kind)
{
unsigned int flags = ((const struct lrecord_header*)obj)->morphisms;
return mph[__nbits_right_of(flags, kind)-(flags&1)];
}
}
return mph[__nbits_right_of(flags, kind)-(flags&1)];
}
}
+#else /* use definition in category.c */
+extern void *cat_morphism(const void*, cat_morphism_kind_t);
+extern void *const*cat_morphisms(const void*);
#endif
#endif /* INCLUDED_category_h_ */
#endif
#endif /* INCLUDED_category_h_ */