Add CHECK_FLAGS, a macro for (safely) checking if a particular flag is set.

This commit is contained in:
Dag-Erling Smørgrav 2000-10-29 15:45:31 +00:00
parent badea70002
commit 1c2598aa2e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67887

View File

@ -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