John Keeping <[email protected]> on Sat, 2018/06/09 12:16: > I think this would be nicer if we introduce a BIT macro like Linux has, > something like: > > #define BIT(x) (1U << (x))
Reasonable. ;)
> but even better, can't we have something like:
>
> static inline unsigned cgit_snapshot_bit(
> const struct cgit_snapshot_format *f)
> {
> return BIT(f - &cgit_snapshot_formats[0]);
> }
>
> and avoid needing the loop index completely?
Ok, finally got the idea. :-p
I will reply with an updated patch.
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];)
putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
pgpDfb_krtMba.pgp
Description: OpenPGP digital signature
_______________________________________________ CGit mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/cgit
