Lines Matching refs:removeflags
71 unsigned int oldflags, newflags = 0, addflags, removeflags, restrictflags; in cs_cmd_template() local
191 flags_make_bitmasks(flagstr, &addflags, &removeflags); in cs_cmd_template()
192 if (addflags == 0 && removeflags == 0) in cs_cmd_template()
207 removeflags = ca_all & ~addflags; in cs_cmd_template()
212 addflags |= CA_FLAGS, removeflags &= ~CA_FLAGS; in cs_cmd_template()
214 else if (removeflags & CA_FLAGS) in cs_cmd_template()
215 removeflags |= CA_FOUNDER, addflags &= ~CA_FOUNDER; in cs_cmd_template()
246 removeflags &= oldflags & ~addflags; in cs_cmd_template()
248 if ((addflags | removeflags) == 0) in cs_cmd_template()
254 ~restrictflags & removeflags || in cs_cmd_template()
260 newflags = (oldflags | addflags) & ~removeflags; in cs_cmd_template()
290 removeflags &= oldflags & ~addflags; in cs_cmd_template()
291 newflags = (oldflags | addflags) & ~removeflags; in cs_cmd_template()
293 removeflags = 0; in cs_cmd_template()
294 if ((addflags | removeflags) != 0) in cs_cmd_template()
299 removeflags = 0; in cs_cmd_template()
302 if ((addflags | removeflags) == 0) in cs_cmd_template()
305 ~restrictflags & removeflags || in cs_cmd_template()
318 if ((addflags | removeflags) == 0) in cs_cmd_template()
328 …et \2%s\2 on template \2%s\2 in \2%s\2."), bitmask_to_flags2(addflags, removeflags), target, mc->n… in cs_cmd_template()
366 flagstr = bitmask_to_flags2(addflags, removeflags); in cs_cmd_template()
379 if ((addflags | removeflags) & CA_FOUNDER) in cs_cmd_template()