Move definition of SCAN_XXX, enum scan_stat and typedef of scan_info
from expr.c into expr.h
Add some API to handle scan_info from outside expr.c
Merge pull request #109 from wanabe/scaninfo-api2

Add some API to handle scan_info from outside expr.c (substitute of #106)

Patch by wanabe. Thanks!!!