Add a new function to get the current bitinfo structure and store it in a unit-global variable.

Now get_bit_*() can have the same signature.