sane.ds: Move a few static functions so they can be shared.
3 files changed