Add CHECK_FLAGS, a macro for (safely) checking if a particular flag is set.
This commit is contained in:
parent
badea70002
commit
1c2598aa2e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67887
@ -71,4 +71,9 @@ int _fetch_add_entry(struct url_ent **p, int *size, int *len,
|
||||
FILE *_http_request(struct url *URL, char *op, struct url_stat *us,
|
||||
struct url *purl, char *flags);
|
||||
|
||||
/*
|
||||
* Check whether a particular flag is set
|
||||
*/
|
||||
#define CHECK_FLAG(x) (flags && strchr(flags, (x)))
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user