make source file pure c style
improved performance
no comment.