linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* symbol.h question
@ 2018-01-22  5:41 Randy Dunlap
  2018-01-22  5:56 ` Luc Van Oostenryck
  2018-01-22  9:15 ` Dan Carpenter
  0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2018-01-22  5:41 UTC (permalink / raw)
  To: Linux-Sparse

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 *);

thanks,
-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-22  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22  5:41 symbol.h question Randy Dunlap
2018-01-22  5:56 ` Luc Van Oostenryck
2018-01-22  9:15 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).