Branch: Tag:

2016-01-12

2016-01-12 18:09:27 by Per Hedbor <ph@opera.com>

inline is part of c99

We do have.. excessive amounts of inline, incidentally. :)

117:    FREE_KEYPAIR(md, k);   }    - static INLINE int check_type_contains(TYPE_FIELD types, const struct svalue * s) { + static inline int check_type_contains(TYPE_FIELD types, const struct svalue * s) {    return (TYPEOF(*s) == PIKE_T_OBJECT || types & (BIT_OBJECT|(1 << TYPEOF(*s))));   }    - static INLINE int check_type_overlaps(TYPE_FIELD t1, TYPE_FIELD t2) { + static inline int check_type_overlaps(TYPE_FIELD t1, TYPE_FIELD t2) {    return (!t1 && !t2) || t1 & t2 || (t1|t2) & BIT_OBJECT;   }