Revert "ungetc and Error line."

This reverts commit 0f0676f2f023c1eaf9181f194641c6e8b56231a7.