checkout.c: introduce an *_INIT macro