On Sun, Jan 21, 2018 at 09:41:25PM -0800, Randy Dunlap wrote: > Hi, > > What is the purpose/meaning of these inline + extern in symbol.h? > > static inline int is_ptr_type(struct symbol *type) > { > if (type->type == SYM_NODE) > type = type->ctype.base_type; > return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; > } > > ///later: > > extern int is_ptr_type(struct symbol *); > It takes a symbol pointer and tells you if the symbol represents a pointer (or array or a function since those are basically pointers too). regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html