implement diffsw.c
implement diffsw.h