Cleaned up some whitespace added a couple new macros

I added macros to allocate and set a pointer to a struct, so rather than
doing

type *name = xmalloc(sizeof type);
*name = (type) value

I can do
type *name = make_struct_ptr(type, value);

Concidering I do that A lot saving one line will actually make a
difference
and it makes the code a lot cleaner not having explicit casts all over
the place.

I can set a struct by doing set_struct_ptr(name, value);
this just removes the explicit cast, which is still nicer

I think I'm going to move all my c macro from types.h/common.h/env.h/etc
into one file just for c macros. and since defining macros doesn't
actually do anything I can just include this in common.h and be fine