Re: symbol.h question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
> }

It's now a misnomer. It's purpose now is to check if the type
is a pointer or can degenerate to a pointer.
A better name should be used.
 
> ///later:
> 
> extern int is_ptr_type(struct symbol *);

This must be removed (cfr. https://github.com/lucvoo/sparse/commit/46047a0706e5 )

Regards,
-- Luc 
--
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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux