scanner.c

update scanner.c by james