cw.c: unpack global structs into global scalars.