#define TOGGLEFLAG(v,n) ( (v)[(n)/FLAGTYPEBITS((v)[0])] ^= 1 << ( (n) & FLAGROUND((v)[0]) ))
sack_types.h
reverse a flag from 1 to 0 and vice versa
Macros