instead of making these static, put them in an anonymous namespace at the top.

namespace {
   unsigned int getint(...) {...}
   unsigned int getshort(...) {...}
}