diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:19:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-07-23 11:19:00 +0000 |
commit | f1775381f91f1250b20f1949dfd0364ddb0ee9fc (patch) | |
tree | 1326bd7f4dfd8c57f89c4d6b2f13d4f22f578abf /extra/config | |
parent | d35b0bc119816825a657f7c9c2a1f062e7048c39 (diff) |
- fix inline keyword
Diffstat (limited to 'extra/config')
-rw-r--r-- | extra/config/expr.h | 4 | ||||
-rw-r--r-- | extra/config/lkc.h | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/extra/config/expr.h b/extra/config/expr.h index 9d4cba1c0..9d60dd330 100644 --- a/extra/config/expr.h +++ b/extra/config/expr.h @@ -184,12 +184,12 @@ void expr_fprint(struct expr *e, FILE *out); struct gstr; /* forward */ void expr_gstr_print(struct expr *e, struct gstr *gs); -static inline int expr_is_yes(struct expr *e) +static __inline__ int expr_is_yes(struct expr *e) { return !e || (e->type == E_SYMBOL && e->left.sym == &symbol_yes); } -static inline int expr_is_no(struct expr *e) +static __inline__ int expr_is_no(struct expr *e) { return e && (e->type == E_SYMBOL && e->left.sym == &symbol_no); } diff --git a/extra/config/lkc.h b/extra/config/lkc.h index 4bc68f20a..c55c2fbd7 100644 --- a/extra/config/lkc.h +++ b/extra/config/lkc.h @@ -116,38 +116,38 @@ struct property *prop_alloc(enum prop_type type, struct symbol *sym); struct symbol *prop_get_symbol(struct property *prop); struct property *sym_get_env_prop(struct symbol *sym); -static inline tristate sym_get_tristate_value(struct symbol *sym) +static __inline__ tristate sym_get_tristate_value(struct symbol *sym) { return sym->curr.tri; } -static inline struct symbol *sym_get_choice_value(struct symbol *sym) +static __inline__ struct symbol *sym_get_choice_value(struct symbol *sym) { return (struct symbol *)sym->curr.val; } -static inline bool sym_set_choice_value(struct symbol *ch, struct symbol *chval) +static __inline__ bool sym_set_choice_value(struct symbol *ch, struct symbol *chval) { return sym_set_tristate_value(chval, yes); } -static inline bool sym_is_choice(struct symbol *sym) +static __inline__ bool sym_is_choice(struct symbol *sym) { return sym->flags & SYMBOL_CHOICE ? true : false; } -static inline bool sym_is_choice_value(struct symbol *sym) +static __inline__ bool sym_is_choice_value(struct symbol *sym) { return sym->flags & SYMBOL_CHOICEVAL ? true : false; } -static inline bool sym_is_optional(struct symbol *sym) +static __inline__ bool sym_is_optional(struct symbol *sym) { return sym->flags & SYMBOL_OPTIONAL ? true : false; } -static inline bool sym_has_value(struct symbol *sym) +static __inline__ bool sym_has_value(struct symbol *sym) { return sym->flags & SYMBOL_DEF_USER ? true : false; } |