[#2080] merge functions.hpp functions.cpp