Common.cpp

everything except for struct functions